<?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://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-12-04T18:56:56.728614+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" 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://db.gcve.eu/vuln/cve-2026-139346</id>
    <title>CVE-2026-139346 — bpf: Fix NULL task dereference in task work cancellation</title>
    <updated>2026-12-04T18:56:56.730490+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>bpf: Fix NULL task dereference in task work cancellation</p>
<p>bpf_task_work_irq() publishes ctx-&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.</p>
<p>The handler then reloads ctx-&gt;task for cancellation if its final cmpxchg
observes FREED.  By that point the callback or context destruction may
already have cleared ctx-&gt;task, causing task_work_cancel() to dereference
a NULL task pointer.</p>
<p>One concrete interleaving is:</p>
<p>1. CPU 0 changes PENDING to SCHEDULING and successfully queues
     ctx-&gt;work with task_work_add(), but has not attempted the final
     state cmpxchg.</p>
<p>2. The target task on CPU 1 runs the callback.  It changes SCHEDULING
     to RUNNING, executes the BPF subprogram, resets ctx-&gt;task,
     publishes STANDBY and drops the callback's context reference.</p>
<p>3. CPU 2 deletes the map value.  It changes STANDBY to FREED and drops
     the map's context reference without queuing asynchronous
     cancellation.</p>
<p>4. CPU 0 resumes.  Its SCHEDULING-to-SCHEDULED cmpxchg observes FREED,
     and the cancellation attempt passes NULL to task_work_cancel().</p>
<p>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-&gt;task before CPU 0 attempts cancellation.</p>
<p>A…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-139346"/>
  </entry>
</feed>
