Read the docs

Use-after-free in Linux kernel BPF storage for sleepable programs

Priority LOW 38Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from CNA.

Summary

The Linux kernel BPF local storage code in versions from 5.17.13 before 5.18, from 5.18.2 before 5.19, and from 5.19 until the fixed releases 7.3.6 and 7.4-rc1 is affected. The kernel frees map elements after a plain RCU grace period, which is too early for sleepable BPF programs that still hold a pointer to a value. A sleepable program can write to freed memory after its owner has died.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Description from the CNA

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.

Why it matters now

Fix Fixed Linux (Linux): 5.18, 5.19, 7.3.6 +1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
LinuxLinux5.17.13 to before 5.18; 5.18.2 to before 5.195.18, 5.19Patch availableCNA
LinuxLinux5.19 and later7.3.6, 7.4-rc1Patch availableCNA
  • Linux VendorLinux Affected 5.17.13 to before 5.18; 5.18.2 to before 5.19 Fixed in 5.18, 5.19 Patch available CNA
  • Linux VendorLinux Affected 5.19 and later Fixed in 7.3.6, 7.4-rc1 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*——Linux
  • cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions — — ·Linux

Remediation

Fixed versions are 5.18 for the 5.17.13 branch, 5.19 for the 5.18.2 branch, and 7.3.6 and 7.4-rc1 for the 5.19 branch. The sources list no advisory identifiers for these fixes.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

  • Fix · CNA Linux (Linux) Fixed in 5.18, 5.19
  • Fix · CNA Linux (Linux) Fixed in 7.3.6, 7.4-rc1

Timeline

  1. 2026-11-30 Threatist record created from CVE-2026-139296
  2. 2026-11-30 Alias added: GHSA-qg6q-2ghw-3mwm

References

  • TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
  • TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
  • TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
  • TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
  • TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
  • TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
See all 23530 →

Sources