<?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-02T15:25:55.074721+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-2024-35798</id>
    <title>CVE-2024-35798 — btrfs: fix race in read_extent_buffer_pages()</title>
    <updated>2026-10-02T15:25:55.892087+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: fix race in read_extent_buffer_pages()</p>
<p>There are reports from tree-checker that detects corrupted nodes,
without any obvious pattern so possibly an overwrite in memory.
After some debugging it turns out there's a race when reading an extent
buffer the uptodate status can be missed.</p>
<p>To prevent concurrent reads for the same extent buffer,
read_extent_buffer_pages() performs these checks:</p>
<p>/* (1) */
    if (test_bit(EXTENT_BUFFER_UPTODATE, &amp;eb-&gt;bflags))
        return 0;</p>
<p>/* (2) */
    if (test_and_set_bit(EXTENT_BUFFER_READING, &amp;eb-&gt;bflags))
        goto done;</p>
<p>At this point, it seems safe to start the actual read operation. Once
that completes, end_bbio_meta_read() does</p>
<p>/* (3) */
    set_extent_buffer_uptodate(eb);</p>
<p>/* (4) */
    clear_bit(EXTENT_BUFFER_READING, &amp;eb-&gt;bflags);</p>
<p>Normally, this is enough to ensure only one read happens, and all other
callers wait for it to finish before returning.  Unfortunately, there is
a racey interleaving:</p>
<p>Thread A | Thread B | Thread C
    ---------+----------+---------
       (1)   |          |
             |    (1)   |
       (2)   |          |
       (3)   |          |
       (4)   |          |
             |    (2)   |
             |          |    (1)</p>
<p>When this happens, thread B kicks of an unnecessary read. Worse, thread
C will see UPTODATE set and return immediately, while the read from
thread B is still in progress.  This race could r…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2024-35798"/>
  </entry>
</feed>
