<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-04T08:27:53.914692+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2025-40205</id>
    <title>CVE-2025-40205 — btrfs: avoid potential out-of-bounds in btrfs_encode_fh()</title>
    <updated>2026-10-04T08:27:53.936256+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>btrfs: avoid potential out-of-bounds in btrfs_encode_fh()</p>
<p>The function btrfs_encode_fh() does not properly account for the three
cases it handles.</p>
<p>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).</p>
<p>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).</p>
<p>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.</p>
<p>This results in an 8-byte out-of-bounds write at
fid-&gt;parent_root_objectid = parent_root_id.</p>
<p>A previous attempt to fix this issue was made but was lost.</p>
<p>https://lore.kernel.org/all/4CADAEEC020000780001B32C@vpn.id2.novell.com/</p>
<p>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.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2025-40205"/>
  </entry>
</feed>
