<?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://db.gcve.eu</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, 27 Oct 2026 22:42:38 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-98959 — btrfs: fix xattr replace when multiple xattrs are packed in the same item</title>
      <link>https://db.gcve.eu/vuln/cve-2026-98959</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 xattr replace when multiple xattrs are packed in the same item&lt;/p&gt;
&lt;p&gt;If we have a btrfs_dir_item item that packs multiple xattrs and then we
replace the value of one of them (with the setxattr(2) family of syscalls)
with another value of a different size, we end up not having a fully
initialized btrfs_dir_item, resulting in a corruption that the tree
checker will detect at extent buffer writeback time.&lt;/p&gt;
&lt;p&gt;This is because in btrfs_setxattr() when we find a btrfs_dir_item with
multiple xattrs (due to the crc32c hash of their name being the same)
we delete one of the xattr items (btrfs_dir_item) and then insert a new
one, but the deletion and insertion results in shifting existing data in
the leaf and therefore when the new value of a xattr has a different size,
the new btrfs_dir_item is placed in a leaf section that was not
initialized and we only copy the value&amp;#39;s data and set the value&amp;#39;s length
in the new btrfs_dir_item, without setting the name, the name&amp;#39;s length,
the key (which must be all zeroes for xattrs), flags (BTRFS_FT_XATTR) and
transaction ID.&lt;/p&gt;
&lt;p&gt;The following script reproduces the issue:&lt;/p&gt;
&lt;p&gt;$ cat test.sh
  #!/bin/bash&lt;/p&gt;
&lt;p&gt;DEV=/dev/sdi
  MNT=/mnt/sdi&lt;/p&gt;
&lt;p&gt;mkfs.btrfs -f $DEV
  mount $DEV $MNT&lt;/p&gt;
&lt;p&gt;touch $MNT/testfile&lt;/p&gt;
&lt;p&gt;# Add two xattrs that, on btrfs, have the same hash (crc32c) for their
  # name and therefore are packed into the same btrfs_dir_item.
  setfattr -n user.foobar -v 123 $MNT/testfile
  s…&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 xattr replace when multiple xattrs are packed in the same item&lt;/p&gt;
&lt;p&gt;If we have a btrfs_dir_item item that packs multiple xattrs and then we
replace the value of one of them (with the setxattr(2) family of syscalls)
with another value of a different size, we end up not having a fully
initialized btrfs_dir_item, resulting in a corruption that the tree
checker will detect at extent buffer writeback time.&lt;/p&gt;
&lt;p&gt;This is because in btrfs_setxattr() when we find a btrfs_dir_item with
multiple xattrs (due to the crc32c hash of their name being the same)
we delete one of the xattr items (btrfs_dir_item) and then insert a new
one, but the deletion and insertion results in shifting existing data in
the leaf and therefore when the new value of a xattr has a different size,
the new btrfs_dir_item is placed in a leaf section that was not
initialized and we only copy the value&amp;#39;s data and set the value&amp;#39;s length
in the new btrfs_dir_item, without setting the name, the name&amp;#39;s length,
the key (which must be all zeroes for xattrs), flags (BTRFS_FT_XATTR) and
transaction ID.&lt;/p&gt;
&lt;p&gt;The following script reproduces the issue:&lt;/p&gt;
&lt;p&gt;$ cat test.sh
  #!/bin/bash&lt;/p&gt;
&lt;p&gt;DEV=/dev/sdi
  MNT=/mnt/sdi&lt;/p&gt;
&lt;p&gt;mkfs.btrfs -f $DEV
  mount $DEV $MNT&lt;/p&gt;
&lt;p&gt;touch $MNT/testfile&lt;/p&gt;
&lt;p&gt;# Add two xattrs that, on btrfs, have the same hash (crc32c) for their
  # name and therefore are packed into the same btrfs_dir_item.
  setfattr -n user.foobar -v 123 $MNT/testfile
  s…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-98959</guid>
    </item>
  </channel>
</rss>
