<?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 07:19:03 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-40205 — btrfs: avoid potential out-of-bounds in btrfs_encode_fh()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-40205</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: avoid potential out-of-bounds in btrfs_encode_fh()&lt;/p&gt;
&lt;p&gt;The function btrfs_encode_fh() does not properly account for the three
cases it handles.&lt;/p&gt;
&lt;p&gt;Before writing to the file handle (fh), the function only returns to the
user BTRFS_FID_SIZE_NON_CONNECTABLE (5 dwords, 20 bytes) or
BTRFS_FID_SIZE_CONNECTABLE (8 dwords, 32 bytes).&lt;/p&gt;
&lt;p&gt;However, when a parent exists and the root ID of the parent and the
inode are different, the function writes BTRFS_FID_SIZE_CONNECTABLE_ROOT
(10 dwords, 40 bytes).&lt;/p&gt;
&lt;p&gt;If *max_len is not large enough, this write goes out of bounds because
BTRFS_FID_SIZE_CONNECTABLE_ROOT is greater than
BTRFS_FID_SIZE_CONNECTABLE originally returned.&lt;/p&gt;
&lt;p&gt;This results in an 8-byte out-of-bounds write at
fid-&amp;gt;parent_root_objectid = parent_root_id.&lt;/p&gt;
&lt;p&gt;A previous attempt to fix this issue was made but was lost.&lt;/p&gt;
&lt;p&gt;https://lore.kernel.org/all/4CADAEEC020000780001B32C@vpn.id2.novell.com/&lt;/p&gt;
&lt;p&gt;Although this issue does not seem to be easily triggerable, it is a
potential memory corruption bug that should be fixed. This patch
resolves the issue by ensuring the function returns the appropriate size
for all three cases and validates that *max_len is large enough before
writing any data.&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: avoid potential out-of-bounds in btrfs_encode_fh()&lt;/p&gt;
&lt;p&gt;The function btrfs_encode_fh() does not properly account for the three
cases it handles.&lt;/p&gt;
&lt;p&gt;Before writing to the file handle (fh), the function only returns to the
user BTRFS_FID_SIZE_NON_CONNECTABLE (5 dwords, 20 bytes) or
BTRFS_FID_SIZE_CONNECTABLE (8 dwords, 32 bytes).&lt;/p&gt;
&lt;p&gt;However, when a parent exists and the root ID of the parent and the
inode are different, the function writes BTRFS_FID_SIZE_CONNECTABLE_ROOT
(10 dwords, 40 bytes).&lt;/p&gt;
&lt;p&gt;If *max_len is not large enough, this write goes out of bounds because
BTRFS_FID_SIZE_CONNECTABLE_ROOT is greater than
BTRFS_FID_SIZE_CONNECTABLE originally returned.&lt;/p&gt;
&lt;p&gt;This results in an 8-byte out-of-bounds write at
fid-&amp;gt;parent_root_objectid = parent_root_id.&lt;/p&gt;
&lt;p&gt;A previous attempt to fix this issue was made but was lost.&lt;/p&gt;
&lt;p&gt;https://lore.kernel.org/all/4CADAEEC020000780001B32C@vpn.id2.novell.com/&lt;/p&gt;
&lt;p&gt;Although this issue does not seem to be easily triggerable, it is a
potential memory corruption bug that should be fixed. This patch
resolves the issue by ensuring the function returns the appropriate size
for all three cases and validates that *max_len is large enough before
writing any data.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-40205</guid>
    </item>
  </channel>
</rss>
