<?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:48:43 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-139306 — bpf: Keep a program until its bpf_wq callback has ended</title>
      <link>https://db.gcve.eu/vuln/cve-2026-139306</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: Keep a program until its bpf_wq callback has ended&lt;/p&gt;
&lt;p&gt;bpf_wq_work() runs the callback under rcu_read_lock_trace() only, since
the callback may sleep.  The program it belongs to need not be sleepable,
and such a program is freed behind a plain RCU grace period.  The
reference that the bpf_wq holds is dropped when the map element goes, or
when another callback is set, no matter whether the work is running.&lt;/p&gt;
&lt;p&gt;If that was the last reference the program is freed under the running
callback, and the worker goes on in the freed JIT image:&lt;/p&gt;
&lt;p&gt;Oops: int3: 0000 [#1] SMP NOPTI
  RIP: 0010:0xffffffffc0600947&lt;/p&gt;
&lt;p&gt;All it takes is to close the map and the program while the callback runs.&lt;/p&gt;
&lt;p&gt;Note in the program that it has a callback that runs sleepable, and wait
for an RCU Tasks Trace grace period, which implies a plain one, before
such a program is freed.  Let bpf_wq_work() enter its read side critical
section before it reads callback_fn.&lt;/p&gt;
&lt;p&gt;bpf_task_work holds a reference to the program until the callback is done.&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: Keep a program until its bpf_wq callback has ended&lt;/p&gt;
&lt;p&gt;bpf_wq_work() runs the callback under rcu_read_lock_trace() only, since
the callback may sleep.  The program it belongs to need not be sleepable,
and such a program is freed behind a plain RCU grace period.  The
reference that the bpf_wq holds is dropped when the map element goes, or
when another callback is set, no matter whether the work is running.&lt;/p&gt;
&lt;p&gt;If that was the last reference the program is freed under the running
callback, and the worker goes on in the freed JIT image:&lt;/p&gt;
&lt;p&gt;Oops: int3: 0000 [#1] SMP NOPTI
  RIP: 0010:0xffffffffc0600947&lt;/p&gt;
&lt;p&gt;All it takes is to close the map and the program while the callback runs.&lt;/p&gt;
&lt;p&gt;Note in the program that it has a callback that runs sleepable, and wait
for an RCU Tasks Trace grace period, which implies a plain one, before
such a program is freed.  Let bpf_wq_work() enter its read side critical
section before it reads callback_fn.&lt;/p&gt;
&lt;p&gt;bpf_task_work holds a reference to the program until the callback is done.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-139306</guid>
    </item>
  </channel>
</rss>
