<?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>Tue, 06 Oct 2026 00:29:59 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-38365 — btrfs: fix a race between renames and directory logging</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2025-38365</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 a race between renames and directory logging&lt;/p&gt;
&lt;p&gt;We have a race between a rename and directory inode logging that if it
happens and we crash/power fail before the rename completes, the next time
the filesystem is mounted, the log replay code will end up deleting the
file that was being renamed.&lt;/p&gt;
&lt;p&gt;This is best explained following a step by step analysis of an interleaving
of steps that lead into this situation.&lt;/p&gt;
&lt;p&gt;Consider the initial conditions:&lt;/p&gt;
&lt;p&gt;1) We are at transaction N;&lt;/p&gt;
&lt;p&gt;2) We have directories A and B created in a past transaction (&amp;lt; N);&lt;/p&gt;
&lt;p&gt;3) We have inode X corresponding to a file that has 2 hardlinks, one in
   directory A and the other in directory B, so we&amp;#39;ll name them as
   &amp;#34;A/foo_link1&amp;#34; and &amp;#34;B/foo_link2&amp;#34;. Both hard links were persisted in a
   past transaction (&amp;lt; N);&lt;/p&gt;
&lt;p&gt;4) We have inode Y corresponding to a file that as a single hard link and
   is located in directory A, we&amp;#39;ll name it as &amp;#34;A/bar&amp;#34;. This file was also
   persisted in a past transaction (&amp;lt; N).&lt;/p&gt;
&lt;p&gt;The steps leading to a file loss are the following and for all of them we
are under transaction N:&lt;/p&gt;
&lt;p&gt;1) Link &amp;#34;A/foo_link1&amp;#34; is removed, so inode&amp;#39;s X last_unlink_trans field
    is updated to N, through btrfs_unlink() -&amp;gt; btrfs_record_unlink_dir();&lt;/p&gt;
&lt;p&gt;2) Task A starts a rename for inode Y, with the goal of renaming from
    &amp;#34;A/bar&amp;#34; to &amp;#34;A/baz&amp;#34;, so we enter btrfs_rename();&lt;/p&gt;
&lt;p&gt;3) Task A inserts the new BTRFS_INODE_REF_KEY for inode Y by calling…&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 a race between renames and directory logging&lt;/p&gt;
&lt;p&gt;We have a race between a rename and directory inode logging that if it
happens and we crash/power fail before the rename completes, the next time
the filesystem is mounted, the log replay code will end up deleting the
file that was being renamed.&lt;/p&gt;
&lt;p&gt;This is best explained following a step by step analysis of an interleaving
of steps that lead into this situation.&lt;/p&gt;
&lt;p&gt;Consider the initial conditions:&lt;/p&gt;
&lt;p&gt;1) We are at transaction N;&lt;/p&gt;
&lt;p&gt;2) We have directories A and B created in a past transaction (&amp;lt; N);&lt;/p&gt;
&lt;p&gt;3) We have inode X corresponding to a file that has 2 hardlinks, one in
   directory A and the other in directory B, so we&amp;#39;ll name them as
   &amp;#34;A/foo_link1&amp;#34; and &amp;#34;B/foo_link2&amp;#34;. Both hard links were persisted in a
   past transaction (&amp;lt; N);&lt;/p&gt;
&lt;p&gt;4) We have inode Y corresponding to a file that as a single hard link and
   is located in directory A, we&amp;#39;ll name it as &amp;#34;A/bar&amp;#34;. This file was also
   persisted in a past transaction (&amp;lt; N).&lt;/p&gt;
&lt;p&gt;The steps leading to a file loss are the following and for all of them we
are under transaction N:&lt;/p&gt;
&lt;p&gt;1) Link &amp;#34;A/foo_link1&amp;#34; is removed, so inode&amp;#39;s X last_unlink_trans field
    is updated to N, through btrfs_unlink() -&amp;gt; btrfs_record_unlink_dir();&lt;/p&gt;
&lt;p&gt;2) Task A starts a rename for inode Y, with the goal of renaming from
    &amp;#34;A/bar&amp;#34; to &amp;#34;A/baz&amp;#34;, so we enter btrfs_rename();&lt;/p&gt;
&lt;p&gt;3) Task A inserts the new BTRFS_INODE_REF_KEY for inode Y by calling…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2025-38365</guid>
    </item>
  </channel>
</rss>
