CVE-2026-139547

Not scored yetLast modified Dec 2, 2026

Description

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

bpf: arena: Allocate the fault-in page outside the lock

arena_vm_fault() allocated the page while holding arena->spinlock, so it could only use the non-blocking allocator, which never reclaims. Once the memcg is at memory.max that allocation just fails, the fault turns into VM_FAULT_SIGSEGV, and the process gets a SIGSEGV on a perfectly valid arena address. Hitting memory.max is routine (e.g. page cache from reading a big file), so this kills innocent processes over memory that reclaim could have freed.

Rework the fault handler:

- Preallocate the page before taking the lock, like do_anonymous_page() does, so it can sleep and reclaim, instead of turning a routine memory.max into a fake segfault. The allocation uses __GFP_RETRY_MAYFAIL so it never invokes the OOM killer: the page is charged to the map's memcg, which need not be the faulting task's, so an OOM there could kill unrelated tasks in the map's cgroup while a foreign faulter could never be its victim. map->numa_node is always NUMA_NO_NODE for an arena (BPF_F_NUMA_NODE is rejected), so the page comes from the local node, as before.

- On allocation failure fall through to the locked recheck rather than failing right away: a page a concurrent allocator installed meanwhile is used, otherwise the non-blocking fallback fails and we return VM_FAULT_SIGBUS. Not VM_FAULT_OOM: nothing ran the OOM killer, and the fault path would just retry it forever.

- A lockless probe skips that preallocation when a page is already mapped (e.g. allocated by the bpf program), so the common case wastes no allocation. The rare race where such a page is freed before we take the lock falls back to the non-blocking allocator under the lock.

- Return VM_FAULT_SIGBUS for the other non-recoverable errors (allocation, range-tree and page-table failures) instead of VM_FAULT_SIGSEGV; the lock failure already did. Only BPF_F_SEGV_ON_FAULT, and a scratch-page hole under that flag, is a real user addressing error and keeps VM_FAULT_SIGSEGV.

- Tidy up the error labels.

Metrics

No CVSS score has been published yet.

Affected software

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

VendorProductVersions
LinuxLinux>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 321b0dc5e8ad65ed5a2400000702071b86cbfc2c; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c7cd8be3d72f9b03454424fff31542b8a0122437; < 7.3.6
LinuxLinux—

References

Timeline

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

Related CVEs from 2026

CVE-2026-139548In the Linux kernel, the following vulnerability has been resolved: platform/chrome: cros_ec_typec: Validate SVID and mode counts in discovCVE-2026-139549In the Linux kernel, the following vulnerability has been resolved: nvdimm/pmem: Release gendisk on probe failure pmem_attach_disk() allocCVE-2026-139553.3Insufficient validation of untrusted input in CustomTabs in Google Chrome on Android prior to 150.0.7871.47 allowed a local attacker to perfCVE-2026-139550In the Linux kernel, the following vulnerability has been resolved: fbnic: Rework the BMC state pulled from the capabilities message The BCVE-2026-139551In the Linux kernel, the following vulnerability has been resolved: drm/tegra: Drop reference on postfence drm_syncobj_replace_fence() calCVE-2026-139552In the Linux kernel, the following vulnerability has been resolved: drm/tegra: Don't pass an ERR_PTR to drm_syncobj_replace_fence() When hCVE-2026-139553In the Linux kernel, the following vulnerability has been resolved: mm/memory_hotplug: fix missing rollback in __add_pages() __add_pages()CVE-2026-139554In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu/userq: fix reading the WPTR at a non-zero BO offset The useCVE-2026-139555In the Linux kernel, the following vulnerability has been resolved: soundwire: debugfs: replace writable string helper debugfs_create_str(CVE-2026-139556In the Linux kernel, the following vulnerability has been resolved: mei: vsc-tp: initialize IRQ state before requesting interrupt request_CVE-2026-139557In the Linux kernel, the following vulnerability has been resolved: misc: enclosure: fix UAF on device_register() failure After device_regCVE-2026-139558In the Linux kernel, the following vulnerability has been resolved: sched: Set TIF_NEED_RESCHED before calling __trace_set_need_resched()
CVE-2026-139547: Unscored | Vulnix