PT-2026-163588

CVE-2026-139547

·

Published

2026-11-30

·

Updated

2026-11-30

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

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.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾