<?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:22:30 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-139322 — bpf: Reject sleepable programs for task_vma iterator</title>
      <link>https://db.gcve.eu/vuln/cve-2026-139322</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: Reject sleepable programs for task_vma iterator&lt;/p&gt;
&lt;p&gt;A sleepable &amp;#34;iter.s/task_vma&amp;#34; program can be attached, but its -&amp;gt;show()
callback runs with the mmap_lock of the iterated mm held for read. As soon
as the program runs, bpf_iter_run_prog() calls might_fault(), and any
bpf_copy_from_user() or bpf_copy_from_user_task() it does may really fault
or take mmap_lock again. With lockdep this is reported as recursive
locking of mmap_lock. Without lockdep, a fault on the reader&amp;#39;s own mm, or
access_process_vm() on the iterated mm, has to take mmap_lock for read
again. If a writer queued up in the meantime that blocks behind the
writer, which in turn waits for the read lock the iterator already holds,
and the read() hangs:&lt;/p&gt;
&lt;p&gt;reader (iter.s/task_vma)        other thread of the same mm
    task_vma_seq_get_next()
      mmap_read_lock(mm)
                                    mmap_write_lock(mm)  &amp;lt;- waits
    bpf prog: copy_from_user()
      page fault
        mmap_read_lock(mm)          &amp;lt;- queued behind the writer&lt;/p&gt;
&lt;p&gt;The reader waits killable, so the hang lasts until it gets a fatal signal.&lt;/p&gt;
&lt;p&gt;bpf_iter_link_attach() allows sleepable programs for the targets that set
BPF_ITER_RESCHED, and task_vma sets it because cond_resched() between VMAs
is fine with mmap_lock held. Rescheduling between objects and running a
sleepable program inside -&amp;gt;show() are different properties, though, and
task_vma only has the first one. The open…&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: Reject sleepable programs for task_vma iterator&lt;/p&gt;
&lt;p&gt;A sleepable &amp;#34;iter.s/task_vma&amp;#34; program can be attached, but its -&amp;gt;show()
callback runs with the mmap_lock of the iterated mm held for read. As soon
as the program runs, bpf_iter_run_prog() calls might_fault(), and any
bpf_copy_from_user() or bpf_copy_from_user_task() it does may really fault
or take mmap_lock again. With lockdep this is reported as recursive
locking of mmap_lock. Without lockdep, a fault on the reader&amp;#39;s own mm, or
access_process_vm() on the iterated mm, has to take mmap_lock for read
again. If a writer queued up in the meantime that blocks behind the
writer, which in turn waits for the read lock the iterator already holds,
and the read() hangs:&lt;/p&gt;
&lt;p&gt;reader (iter.s/task_vma)        other thread of the same mm
    task_vma_seq_get_next()
      mmap_read_lock(mm)
                                    mmap_write_lock(mm)  &amp;lt;- waits
    bpf prog: copy_from_user()
      page fault
        mmap_read_lock(mm)          &amp;lt;- queued behind the writer&lt;/p&gt;
&lt;p&gt;The reader waits killable, so the hang lasts until it gets a fatal signal.&lt;/p&gt;
&lt;p&gt;bpf_iter_link_attach() allows sleepable programs for the targets that set
BPF_ITER_RESCHED, and task_vma sets it because cond_resched() between VMAs
is fine with mmap_lock held. Rescheduling between objects and running a
sleepable program inside -&amp;gt;show() are different properties, though, and
task_vma only has the first one. The open…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-139322</guid>
    </item>
  </channel>
</rss>
