<?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:27:04 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-139346 — bpf: Fix NULL task dereference in task work cancellation</title>
      <link>https://db.gcve.eu/vuln/cve-2026-139346</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: Fix NULL task dereference in task work cancellation&lt;/p&gt;
&lt;p&gt;bpf_task_work_irq() publishes ctx-&amp;gt;work with task_work_add() before
changing the context from SCHEDULING to SCHEDULED.  The target task can
run the callback on another CPU before the handler reaches its final
state transition.&lt;/p&gt;
&lt;p&gt;The handler then reloads ctx-&amp;gt;task for cancellation if its final cmpxchg
observes FREED.  By that point the callback or context destruction may
already have cleared ctx-&amp;gt;task, causing task_work_cancel() to dereference
a NULL task pointer.&lt;/p&gt;
&lt;p&gt;One concrete interleaving is:&lt;/p&gt;
&lt;p&gt;1. CPU 0 changes PENDING to SCHEDULING and successfully queues
     ctx-&amp;gt;work with task_work_add(), but has not attempted the final
     state cmpxchg.&lt;/p&gt;
&lt;p&gt;2. The target task on CPU 1 runs the callback.  It changes SCHEDULING
     to RUNNING, executes the BPF subprogram, resets ctx-&amp;gt;task,
     publishes STANDBY and drops the callback&amp;#39;s context reference.&lt;/p&gt;
&lt;p&gt;3. CPU 2 deletes the map value.  It changes STANDBY to FREED and drops
     the map&amp;#39;s context reference without queuing asynchronous
     cancellation.&lt;/p&gt;
&lt;p&gt;4. CPU 0 resumes.  Its SCHEDULING-to-SCHEDULED cmpxchg observes FREED,
     and the cancellation attempt passes NULL to task_work_cancel().&lt;/p&gt;
&lt;p&gt;If deletion publishes FREED before the callback claims RUNNING, the
callback takes its FREED exit and drops its context reference.  Context
destruction can then clear ctx-&amp;gt;task before CPU 0 attempts cancellation.&lt;/p&gt;
&lt;p&gt;A…&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: Fix NULL task dereference in task work cancellation&lt;/p&gt;
&lt;p&gt;bpf_task_work_irq() publishes ctx-&amp;gt;work with task_work_add() before
changing the context from SCHEDULING to SCHEDULED.  The target task can
run the callback on another CPU before the handler reaches its final
state transition.&lt;/p&gt;
&lt;p&gt;The handler then reloads ctx-&amp;gt;task for cancellation if its final cmpxchg
observes FREED.  By that point the callback or context destruction may
already have cleared ctx-&amp;gt;task, causing task_work_cancel() to dereference
a NULL task pointer.&lt;/p&gt;
&lt;p&gt;One concrete interleaving is:&lt;/p&gt;
&lt;p&gt;1. CPU 0 changes PENDING to SCHEDULING and successfully queues
     ctx-&amp;gt;work with task_work_add(), but has not attempted the final
     state cmpxchg.&lt;/p&gt;
&lt;p&gt;2. The target task on CPU 1 runs the callback.  It changes SCHEDULING
     to RUNNING, executes the BPF subprogram, resets ctx-&amp;gt;task,
     publishes STANDBY and drops the callback&amp;#39;s context reference.&lt;/p&gt;
&lt;p&gt;3. CPU 2 deletes the map value.  It changes STANDBY to FREED and drops
     the map&amp;#39;s context reference without queuing asynchronous
     cancellation.&lt;/p&gt;
&lt;p&gt;4. CPU 0 resumes.  Its SCHEDULING-to-SCHEDULED cmpxchg observes FREED,
     and the cancellation attempt passes NULL to task_work_cancel().&lt;/p&gt;
&lt;p&gt;If deletion publishes FREED before the callback claims RUNNING, the
callback takes its FREED exit and drops its context reference.  Context
destruction can then clear ctx-&amp;gt;task before CPU 0 attempts cancellation.&lt;/p&gt;
&lt;p&gt;A…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-139346</guid>
    </item>
  </channel>
</rss>
