CVE-2026-139296

Not scored yetLast modified Nov 30, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Keep values of a dead owner for sleepable programs

bpf_local_storage_destroy() frees the elements of an owner behind a plain RCU grace period, on the ground that no program can refer to an owner that goes away. But the pointer that bpf_task_storage_get() and its like return stays valid for the verifier after the program has released the owner, or has left the bpf_rcu_read_lock() section it had the owner from. A sleepable program is in no RCU read side critical section, so it can write to the value after the owner has died and the element was freed:

BUG: KASAN: slab-use-after-free in _copy_from_user+0x42/0xa0 Write of size 8 at addr ffff8880074404a8 by task lsuaf/55

Free the element behind an RCU Tasks Trace grace period if sleepable code may use the map. A program that a map is bound to was loaded, and counted in map->sleepable_refcnt, before it got a value from the live owner, and stays counted until a grace period behind its last run.

A program can also get at a storage map by a lookup in an outer map. Then only the outer map is counted, its programs can come after the inner map was put into it, and can hold on to the inner map after it was taken out. So note in a map that it has been an inner map, and treat it like one with sleepable users from then on.

The same goes for what the special fields of the value hold. The page of a uptr has to stay pinned, and a kptr which the program stores after the owner has died has to be released. Leave the fields, and the smap that it takes to free them, to bpf_selem_free_trace_rcu(), as bpf_selem_unlink() does. bpf_local_storage_map_free() waits for that callback, and leaves smap alone if it comes across such an element.

Elements of such maps now wait for sleepable programs that are running when their owner dies. Other maps are freed as before.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139297In the Linux kernel, the following vulnerability has been resolved: bpf: Don't let an extension reach further into the context than its tarCVE-2026-139298In the Linux kernel, the following vulnerability has been resolved: bpf: Don't take a program with a target program for an iterator bpf_itCVE-2026-139299In the Linux kernel, the following vulnerability has been resolved: bpf: Free what map_free() unlinks for sleepable readers bpf_local_storCVE-2026-13934.3The Add Google Social Profiles to Knowledge Graph Box plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up toCVE-2026-139306.5Insufficient policy enforcement in Actor in Google Chrome prior to 150.0.7871.47 allowed a remote attacker to bypass navigation restrictionsCVE-2026-139300In the Linux kernel, the following vulnerability has been resolved: bpf: Don't take an extension for a writable raw tracepoint program bpfCVE-2026-139301In the Linux kernel, the following vulnerability has been resolved: bpf: Assume no bounds for a writable tp with tail calls A writable rawCVE-2026-139302In the Linux kernel, the following vulnerability has been resolved: bpf: Don't take an extension for an iterator program An extension inheCVE-2026-139303In the Linux kernel, the following vulnerability has been resolved: bpf: Assume no bounds for buffers behind a tail call The bpf_map_elem,CVE-2026-139304In the Linux kernel, the following vulnerability has been resolved: bpf: Check the maps that sleepable callbacks use Sleepable programs caCVE-2026-139305In the Linux kernel, the following vulnerability has been resolved: bpf: Count sleepable callbacks as sleepable map users map->sleepable_rCVE-2026-139306In the Linux kernel, the following vulnerability has been resolved: bpf: Keep a program until its bpf_wq callback has ended bpf_wq_work()
CVE-2026-139296: Unscored | Vulnix