CVE-2026-139269

Not scored yetLast modified Nov 30, 2026

Description

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

bpf: Fix arena race between page free and alloc leading to incoherency

Existing arena kfunc code has an underlying race condition that can lead to writes being lost from the BPF program's point of view:

a) A memory range gets freed by operation (1), and its range is added back to the arena range tree.

b) A concurrent allocation (2) reallocates the range, and does writes to it. Writes from that CPU may follow the stale TLB entries into the pages that are about to be freed.

c) (1) invalidates the TLB. The old pages, and any writes done to them, are now inaccessible. zap_pages() similarly removes the mappings for userspace threads.

This can be triggered by particularly demanding BPF arena data structures that constantly allocate and deallocate memory, like hash table allocations.

Solve this ABA problem by keeping the range allocated until TLB invalidation and unmapping are complete. Under the arena spinlock, claim any free pages in the range and clear its kernel PTEs. Then drop the spinlock, lock and unlock each cleared page to wait for faults that are still installing a user PTE, flush the kernel TLB and zap the user page tables. Finally, retake the spinlock to release the range. Frees serialize on zap_mutex, so an overlapping free cannot release the range early. Claiming the range only allocates a range tree node when the whole range is free, and then there is nothing to free.

User faults on a range that is allocated without a page now raise SIGBUS instead of populating it. That covers a range reserved with bpf_arena_reserve_pages() and a range whose kernel PTEs a free has already cleared. Touching a page while a BPF program frees it is a user space bug, and in a BPF_F_SEGV_ON_FAULT arena it already raises SIGSEGV.

Sleepable frees run synchronously and are deferred only when the arena spinlock cannot be taken. The deferred free worker retries such a free in place instead of requeueing itself, so the flush_work() in arena_map_free() waits for all of its work.

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-139277.8Insufficient validation of untrusted input in UI in Google Chrome on Android prior to 150.0.7871.47 allowed a local attacker to perform privCVE-2026-139270In the Linux kernel, the following vulnerability has been resolved: cgroup/cpuset: Properly disabling partition when partition state switchCVE-2026-139271In the Linux kernel, the following vulnerability has been resolved: block, bfq: initialize active lists for all actuators Commit 2d31c684aCVE-2026-139272In the Linux kernel, the following vulnerability has been resolved: ALSA: aloop: Keep the timer source alive until card release The timer_CVE-2026-1392737.0In the Linux kernel, the following vulnerability has been resolved: ALSA: aloop: Keep shared timer callbacks alive through close The shareCVE-2026-1392747.0In the Linux kernel, the following vulnerability has been resolved: nfs/localio: pin UUIDs during global invalidation nfs_localio_invalidaCVE-2026-139275In the Linux kernel, the following vulnerability has been resolved: pNFS/flexfiles: make pg_init retry loops killable When a task is killeCVE-2026-139276In the Linux kernel, the following vulnerability has been resolved: f2fs: refresh pinned allocation boundary after resize Online shrink upCVE-2026-139277In the Linux kernel, the following vulnerability has been resolved: ALSA: pcm: Remove channel-map controls before freeing substreams A latCVE-2026-139278In the Linux kernel, the following vulnerability has been resolved: ALSA: pcmtest: Pin the module while pattern files are open The fill_paCVE-2026-139279In the Linux kernel, the following vulnerability has been resolved: netfilter: xt_dccp: handle reserved options as single-byte The DCCP UACVE-2026-139288.8Insufficient validation of untrusted input in Enterprise in Google Chrome prior to 150.0.7871.47 allowed a remote attacker to perform privil
CVE-2026-139269: Unscored | Vulnix