<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://cve.radiocsirt.org</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Sat, 10 Oct 2026 20:32:44 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-49547 — btrfs: fix deadlock between concurrent dio writes when low on free data space</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2022-49547</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;btrfs: fix deadlock between concurrent dio writes when low on free data space&lt;/p&gt;
&lt;p&gt;When reserving data space for a direct IO write we can end up deadlocking
if we have multiple tasks attempting a write to the same file range, there
are multiple extents covered by that file range, we are low on available
space for data and the writes don&amp;#39;t expand the inode&amp;#39;s i_size.&lt;/p&gt;
&lt;p&gt;The deadlock can happen like this:&lt;/p&gt;
&lt;p&gt;1) We have a file with an i_size of 1M, at offset 0 it has an extent with
   a size of 128K and at offset 128K it has another extent also with a
   size of 128K;&lt;/p&gt;
&lt;p&gt;2) Task A does a direct IO write against file range [0, 256K), and because
   the write is within the i_size boundary, it takes the inode&amp;#39;s lock (VFS
   level) in shared mode;&lt;/p&gt;
&lt;p&gt;3) Task A locks the file range [0, 256K) at btrfs_dio_iomap_begin(), and
   then gets the extent map for the extent covering the range [0, 128K).
   At btrfs_get_blocks_direct_write(), it creates an ordered extent for
   that file range ([0, 128K));&lt;/p&gt;
&lt;p&gt;4) Before returning from btrfs_dio_iomap_begin(), it unlocks the file
   range [0, 256K);&lt;/p&gt;
&lt;p&gt;5) Task A executes btrfs_dio_iomap_begin() again, this time for the file
   range [128K, 256K), and locks the file range [128K, 256K);&lt;/p&gt;
&lt;p&gt;6) Task B starts a direct IO write against file range [0, 256K) as well.
   It also locks the inode in shared mode, as it&amp;#39;s within the i_size limit,
   and then tries to lock file range [0, 256K). It is able to…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;btrfs: fix deadlock between concurrent dio writes when low on free data space&lt;/p&gt;
&lt;p&gt;When reserving data space for a direct IO write we can end up deadlocking
if we have multiple tasks attempting a write to the same file range, there
are multiple extents covered by that file range, we are low on available
space for data and the writes don&amp;#39;t expand the inode&amp;#39;s i_size.&lt;/p&gt;
&lt;p&gt;The deadlock can happen like this:&lt;/p&gt;
&lt;p&gt;1) We have a file with an i_size of 1M, at offset 0 it has an extent with
   a size of 128K and at offset 128K it has another extent also with a
   size of 128K;&lt;/p&gt;
&lt;p&gt;2) Task A does a direct IO write against file range [0, 256K), and because
   the write is within the i_size boundary, it takes the inode&amp;#39;s lock (VFS
   level) in shared mode;&lt;/p&gt;
&lt;p&gt;3) Task A locks the file range [0, 256K) at btrfs_dio_iomap_begin(), and
   then gets the extent map for the extent covering the range [0, 128K).
   At btrfs_get_blocks_direct_write(), it creates an ordered extent for
   that file range ([0, 128K));&lt;/p&gt;
&lt;p&gt;4) Before returning from btrfs_dio_iomap_begin(), it unlocks the file
   range [0, 256K);&lt;/p&gt;
&lt;p&gt;5) Task A executes btrfs_dio_iomap_begin() again, this time for the file
   range [128K, 256K), and locks the file range [128K, 256K);&lt;/p&gt;
&lt;p&gt;6) Task B starts a direct IO write against file range [0, 256K) as well.
   It also locks the inode in shared mode, as it&amp;#39;s within the i_size limit,
   and then tries to lock file range [0, 256K). It is able to…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2022-49547</guid>
    </item>
  </channel>
</rss>
