<?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://vulnerability.circl.lu</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>Sun, 04 Oct 2026 00:20:56 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-43118 — btrfs: fix zero size inode with non-zero size after log replay</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-43118</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 zero size inode with non-zero size after log replay&lt;/p&gt;
&lt;p&gt;When logging that an inode exists, as part of logging a new name or
logging new dir entries for a directory, we always set the generation of
the logged inode item to 0. This is to signal during log replay (in
overwrite_item()), that we should not set the i_size since we only logged
that an inode exists, so the i_size of the inode in the subvolume tree
must be preserved (as when we log new names or that an inode exists, we
don&amp;#39;t log extents).&lt;/p&gt;
&lt;p&gt;This works fine except when we have already logged an inode in full mode
or it&amp;#39;s the first time we are logging an inode created in a past
transaction, that inode has a new i_size of 0 and then we log a new name
for the inode (due to a new hardlink or a rename), in which case we log
an i_size of 0 for the inode and a generation of 0, which causes the log
replay code to not update the inode&amp;#39;s i_size to 0 (in overwrite_item()).&lt;/p&gt;
&lt;p&gt;An example scenario:&lt;/p&gt;
&lt;p&gt;mkdir /mnt/dir
  xfs_io -f -c &amp;#34;pwrite 0 64K&amp;#34; /mnt/dir/foo&lt;/p&gt;
&lt;p&gt;sync&lt;/p&gt;
&lt;p&gt;xfs_io -c &amp;#34;truncate 0&amp;#34; -c &amp;#34;fsync&amp;#34; /mnt/dir/foo&lt;/p&gt;
&lt;p&gt;ln /mnt/dir/foo /mnt/dir/bar&lt;/p&gt;
&lt;p&gt;xfs_io -c &amp;#34;fsync&amp;#34; /mnt/dir&lt;/p&gt;
&lt;p&gt;&amp;lt;power fail&amp;gt;&lt;/p&gt;
&lt;p&gt;After log replay the file remains with a size of 64K. This is because when
we first log the inode, when we fsync file foo, we log its current i_size
of 0, and then when we create a hard link we log again the inode in exists
mode (LOG_INODE_EXISTS) but we set a generatio…&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 zero size inode with non-zero size after log replay&lt;/p&gt;
&lt;p&gt;When logging that an inode exists, as part of logging a new name or
logging new dir entries for a directory, we always set the generation of
the logged inode item to 0. This is to signal during log replay (in
overwrite_item()), that we should not set the i_size since we only logged
that an inode exists, so the i_size of the inode in the subvolume tree
must be preserved (as when we log new names or that an inode exists, we
don&amp;#39;t log extents).&lt;/p&gt;
&lt;p&gt;This works fine except when we have already logged an inode in full mode
or it&amp;#39;s the first time we are logging an inode created in a past
transaction, that inode has a new i_size of 0 and then we log a new name
for the inode (due to a new hardlink or a rename), in which case we log
an i_size of 0 for the inode and a generation of 0, which causes the log
replay code to not update the inode&amp;#39;s i_size to 0 (in overwrite_item()).&lt;/p&gt;
&lt;p&gt;An example scenario:&lt;/p&gt;
&lt;p&gt;mkdir /mnt/dir
  xfs_io -f -c &amp;#34;pwrite 0 64K&amp;#34; /mnt/dir/foo&lt;/p&gt;
&lt;p&gt;sync&lt;/p&gt;
&lt;p&gt;xfs_io -c &amp;#34;truncate 0&amp;#34; -c &amp;#34;fsync&amp;#34; /mnt/dir/foo&lt;/p&gt;
&lt;p&gt;ln /mnt/dir/foo /mnt/dir/bar&lt;/p&gt;
&lt;p&gt;xfs_io -c &amp;#34;fsync&amp;#34; /mnt/dir&lt;/p&gt;
&lt;p&gt;&amp;lt;power fail&amp;gt;&lt;/p&gt;
&lt;p&gt;After log replay the file remains with a size of 64K. This is because when
we first log the inode, when we fsync file foo, we log its current i_size
of 0, and then when we create a hard link we log again the inode in exists
mode (LOG_INODE_EXISTS) but we set a generatio…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-43118</guid>
    </item>
  </channel>
</rss>
