<?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 19:46:32 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-38306 — btrfs: protect folio::private when attaching extent buffer folios</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-38306</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: protect folio::private when attaching extent buffer folios&lt;/p&gt;
&lt;p&gt;[BUG]
Since v6.8 there are rare kernel crashes reported by various people,
the common factor is bad page status error messages like this:&lt;/p&gt;
&lt;p&gt;BUG: Bad page state in process kswapd0  pfn:d6e840
  page: refcount:0 mapcount:0 mapping:000000007512f4f2 index:0x2796c2c7c
  pfn:0xd6e840
  aops:btree_aops ino:1
  flags: 0x17ffffe0000008(uptodate|node=0|zone=2|lastcpupid=0x3fffff)
  page_type: 0xffffffff()
  raw: 0017ffffe0000008 dead000000000100 dead000000000122 ffff88826d0be4c0
  raw: 00000002796c2c7c 0000000000000000 00000000ffffffff 0000000000000000
  page dumped because: non-NULL mapping&lt;/p&gt;
&lt;p&gt;[CAUSE]
Commit 09e6cef19c9f (&amp;#34;btrfs: refactor alloc_extent_buffer() to
allocate-then-attach method&amp;#34;) changes the sequence when allocating a new
extent buffer.&lt;/p&gt;
&lt;p&gt;Previously we always called grab_extent_buffer() under
mapping-&amp;gt;i_private_lock, to ensure the safety on modification on
folio::private (which is a pointer to extent buffer for regular
sectorsize).&lt;/p&gt;
&lt;p&gt;This can lead to the following race:&lt;/p&gt;
&lt;p&gt;Thread A is trying to allocate an extent buffer at bytenr X, with 4
4K pages, meanwhile thread B is trying to release the page at X + 4K
(the second page of the extent buffer at X).&lt;/p&gt;
&lt;p&gt;Thread A                |                 Thread B
-----------------------------------+-------------------------------------
                                   | btree_release_folio(…&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: protect folio::private when attaching extent buffer folios&lt;/p&gt;
&lt;p&gt;[BUG]
Since v6.8 there are rare kernel crashes reported by various people,
the common factor is bad page status error messages like this:&lt;/p&gt;
&lt;p&gt;BUG: Bad page state in process kswapd0  pfn:d6e840
  page: refcount:0 mapcount:0 mapping:000000007512f4f2 index:0x2796c2c7c
  pfn:0xd6e840
  aops:btree_aops ino:1
  flags: 0x17ffffe0000008(uptodate|node=0|zone=2|lastcpupid=0x3fffff)
  page_type: 0xffffffff()
  raw: 0017ffffe0000008 dead000000000100 dead000000000122 ffff88826d0be4c0
  raw: 00000002796c2c7c 0000000000000000 00000000ffffffff 0000000000000000
  page dumped because: non-NULL mapping&lt;/p&gt;
&lt;p&gt;[CAUSE]
Commit 09e6cef19c9f (&amp;#34;btrfs: refactor alloc_extent_buffer() to
allocate-then-attach method&amp;#34;) changes the sequence when allocating a new
extent buffer.&lt;/p&gt;
&lt;p&gt;Previously we always called grab_extent_buffer() under
mapping-&amp;gt;i_private_lock, to ensure the safety on modification on
folio::private (which is a pointer to extent buffer for regular
sectorsize).&lt;/p&gt;
&lt;p&gt;This can lead to the following race:&lt;/p&gt;
&lt;p&gt;Thread A is trying to allocate an extent buffer at bytenr X, with 4
4K pages, meanwhile thread B is trying to release the page at X + 4K
(the second page of the extent buffer at X).&lt;/p&gt;
&lt;p&gt;Thread A                |                 Thread B
-----------------------------------+-------------------------------------
                                   | btree_release_folio(…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-38306</guid>
    </item>
  </channel>
</rss>
