CVE-2026-139131

fork: Let nobody keep a task that may not come to life

Published Nov 30, 2026 CVSS 3.1 · 7 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

fork: Let nobody keep a task that may not come to life

dup_task_struct() sets rcu_users to 2. From then on bpf_task_acquire()
hands out references to the new task, which BPF programs see as a trusted
pointer long before it is sure to live: in the task_alloc LSM hook and in
ops.init_task() of sched_ext.

If copy_process() fails later on, it undoes what it has done and frees
the task without a look at the count. A program that has stored its
reference in a map is left with a pointer to freed memory:

BUG: KASAN: slab-use-after-free in put_task_struct_rcu_user+0x22/0x90

The program is loaded by the administrator, but any user can make a fork
fail, for example at the pids.max of a cgroup.

Honouring the count would not do: the task would stay behind with its mm,
files and credentials freed. Leave rcu_users at zero until copy_process()
cannot fail any more. bpf_task_acquire() returns NULL until then, which
its callers have to be prepared for, and which they get for init_task,
whose count has always been zero. The other users of rcu_users deal with
tasks that have run.

Analysis

AI-generated

Technical impact

The vulnerability resides in Linux kernel task creation logic where dup_task_struct sets an internal counter that allows BPF programs to acquire a reference to a task that may never be fully initialized. If copy_process fails, the task is freed without adjusting the counter, leaving any BPF program that has stored the reference with a dangling pointer. This slab use‑after‑free can corrupt kernel memory and give a local attacker the ability to execute arbitrary code or elevate privileges.

Affected Systems

All builds of the Linux kernel that contain the unpatched dup_task_struct logic are affected, regardless of distribution. Systems that run BPF programs capable of holding task references—such as kernel modules, eBPF probes, or container runtimes—are at risk. The advisory does not specify exact kernel versions, so any kernel installed prior to the fix should be considered vulnerable. Users can trigger the bug by preventing a fork from succeeding, for example by exhausting the pids.max limit in a cgroup.

Risk and Exploitability

The CVSS score is 7, indicating high severity. The EPSS score is <1% and the vulnerability is not listed in CISA’s KEV catalog. The attack vector is local, requiring only ordinary user privileges to trigger failed forks, and depends on the presence of BPF programs that incorrectly handle task references. Successful exploitation could result in privilege escalation or system instability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that includes the dup_task_struct patch and reboot the system
  • Modify BPF programs to verify that bpf_task_acquire returns a non‑NULL pointer before storing the task reference and to avoid keeping task pointers in maps until successful acquisition is confirmed
  • If patching cannot be performed immediately, limit users’ ability to change cgroup pids.max settings and restrict BPF capabilities, and consider disabling BPF programs that hold task references

Generated by OpenCVE AI on December 2, 2026 at 11:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: fork: Let nobody keep a task that may not come to life dup_task_struct() sets rcu_users to 2. From then on bpf_task_acquire() hands out references to the new task, which BPF programs see as a trusted pointer long before it is sure to live: in the task_alloc LSM hook and in ops.init_task() of sched_ext. If copy_process() fails later on, it undoes what it has done and frees the task without a look at the count. A program that has stored its reference in a map is left with a pointer to freed memory: BUG: KASAN: slab-use-after-free in put_task_struct_rcu_user+0x22/0x90 The program is loaded by the administrator, but any user can make a fork fail, for example at the pids.max of a cgroup. Honouring the count would not do: the task would stay behind with its mm, files and credentials freed. Leave rcu_users at zero until copy_process() cannot fail any more. bpf_task_acquire() returns NULL until then, which its callers have to be prepared for, and which they get for init_task, whose count has always been zero. The other users of rcu_users deal with tasks that have run.
Title fork: Let nobody keep a task that may not come to life
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Dec 1, 2026, 5:41 AM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Dec 1, 2026, 6:17 AM
Severity
Moderate
Public date
Nov 30, 2026, 1:31 PM