<?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>Fri, 04 Dec 2026 19:55:23 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-139321 — bpf: Forbid sleeping in bpf_find_vma() callbacks</title>
      <link>https://db.gcve.eu/vuln/cve-2026-139321</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;bpf: Forbid sleeping in bpf_find_vma() callbacks&lt;/p&gt;
&lt;p&gt;A sleepable program can call bpf_find_vma() and use a sleepable helper
such as bpf_copy_from_user() or bpf_copy_from_user_task() in the
callback. The verifier accepts this, but bpf_find_vma() runs the callback
with the mmap_lock of the mm held for read. If the user copy faults on
that mm, the fault handler has to take mmap_lock again. Lockdep reports
recursive locking, and if a writer queued up in between, the fault blocks
behind the writer, which waits for the read lock the helper already
holds:&lt;/p&gt;
&lt;p&gt;sleepable prog                  other thread of the same mm
    bpf_find_vma(current, ...)
      mmap_read_trylock(mm)
                                    mmap_write_lock(mm)  &amp;lt;- waits
      callback: copy_from_user()
        page fault
          mmap_read_lock(mm)        &amp;lt;- queued behind the writer&lt;/p&gt;
&lt;p&gt;This is the same problem as with sleepable task_vma iterator programs.
The verifier checks synchronous callbacks in the caller&amp;#39;s context, so
in_sleepable_context() is true in the callback of a sleepable program.&lt;/p&gt;
&lt;p&gt;Verify the callback like a hash map for_each callback, as running in an
RCU read-side critical section where sleeping is not allowed, and actually
hold rcu_read_lock() around it, so that global functions the callback
calls, which are then verified for a non-sleepable context, see the RCU
protection they are verified with.&lt;/p&gt;
&lt;p&gt;Non-sleepable programs already ru…&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;bpf: Forbid sleeping in bpf_find_vma() callbacks&lt;/p&gt;
&lt;p&gt;A sleepable program can call bpf_find_vma() and use a sleepable helper
such as bpf_copy_from_user() or bpf_copy_from_user_task() in the
callback. The verifier accepts this, but bpf_find_vma() runs the callback
with the mmap_lock of the mm held for read. If the user copy faults on
that mm, the fault handler has to take mmap_lock again. Lockdep reports
recursive locking, and if a writer queued up in between, the fault blocks
behind the writer, which waits for the read lock the helper already
holds:&lt;/p&gt;
&lt;p&gt;sleepable prog                  other thread of the same mm
    bpf_find_vma(current, ...)
      mmap_read_trylock(mm)
                                    mmap_write_lock(mm)  &amp;lt;- waits
      callback: copy_from_user()
        page fault
          mmap_read_lock(mm)        &amp;lt;- queued behind the writer&lt;/p&gt;
&lt;p&gt;This is the same problem as with sleepable task_vma iterator programs.
The verifier checks synchronous callbacks in the caller&amp;#39;s context, so
in_sleepable_context() is true in the callback of a sleepable program.&lt;/p&gt;
&lt;p&gt;Verify the callback like a hash map for_each callback, as running in an
RCU read-side critical section where sleeping is not allowed, and actually
hold rcu_read_lock() around it, so that global functions the callback
calls, which are then verified for a non-sleepable context, see the RCU
protection they are verified with.&lt;/p&gt;
&lt;p&gt;Non-sleepable programs already ru…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-139321</guid>
    </item>
  </channel>
</rss>
