AZL-117217: CVE-2026-139547 affecting package kernel 6.6.161.1-1

Published Nov 30, 2026
·
Updated

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

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

arenavmfault() 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 VMFAULTSIGSEGV, 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 doanonymouspage() does, so it can sleep and reclaim, instead of turning a routine memory.max into a fake segfault. The allocation uses GFPRETRYMAYFAIL 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->numanode is always NUMANONODE for an arena (BPFFNUMANODE 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 VMFAULTSIGBUS. Not VMFAULTOOM: 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 VMFAULTSIGBUS for the other non-recoverable errors (allocation, range-tree and page-table failures) instead of VMFAULTSIGSEGV; the lock failure already did. Only BPFFSEGVONFAULT, and a scratch-page hole under that flag, is a real user addressing error and keeps VMFAULTSIGSEGV.

- Tidy up the error labels.

Affected Software

1 affected component
azure-linux/kernel<=6.6.161.1-1

Event History

Nov 30, 2026
Advisory Published
via OSV·02:19 PM
Data Sourced
via OSV·02:19 PM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Which workloads are exposed to the erroneous SIGSEGV condition?

Workloads using BPF arenas can be affected when the arena map's memory cgroup reaches memory.max. This can occur during routine memory pressure, such as page-cache growth from reading a large file, even when reclaimable memory is available.

2

What causes the failure before the fix?

The arena fault handler allocates a page while holding a spinlock, requiring a non-blocking allocation that cannot reclaim memory. If that allocation fails at memory.max, the valid arena page fault is reported as VM_FAULT_SIGSEGV and the process receives SIGSEGV.

3

Does the corrected allocation path risk invoking the OOM killer?

No. The revised allocation uses __GFP_RETRY_MAYFAIL so that it can sleep and reclaim but does not invoke the OOM killer, avoiding the possibility of killing unrelated tasks in the map's memory cgroup.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203