CVE-2026-143363: bpf: Don't let bpf_arena_free_pages() see a half-set user range

Published Dec 3, 2026
·
Updated

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

bpf: Don't let bpfarenafreepages() see a half-set user range

If mapextra is 0, the first arenamapmmap() sets uservmstart and uservmend. It holds arena->lock, but bpfarenafreepages() reads both fields without this mutex. The kfunc relies on the verifier, which rejects a prog if uservmstart of its arena is 0. But this check covers only the maps in usedmaps. The kfunc accepts any trusted pointer to struct bpfmap.

Thus the kfunc can run during arenamapmmap() and read uservmstart as 0 and uservmend as vma->vmend. Then min() does not limit pagecnt to the arena. arenafreerange() unmaps and frees pages of other vmalloc areas.

Read uservmstart one time and return if it is 0. This value means that no range is set, because arenagetunmappedarea() rejects address 0. If only uservmend is still 0, uaddrend is 0 and the kfunc returns, as today.

Affected Software

2 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.9.0<7.3.7
7.3.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.7
  2. Compensating control

    In bpf_arena_free_pages(), read user_vm_start once and return if it is 0, so the kfunc does not use a half-set user range.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:22 AM
Data Sourced
via MITRE·09:22 AM
Description
Data Sourced
via OSV·09:22 AM
DescriptionAffected Software
Data Sourced
via NVD·10:18 AM
Description

Frequently Asked Questions

1

What conditions are required for exploitation?

An attacker needs to invoke the arena free-pages kfunc with a trusted pointer to a struct bpf_map while an arena map is being initialized by arena_map_mmap(). The affected case involves an arena whose map_extra is 0, allowing the concurrent reader to observe user_vm_start as 0 while user_vm_end has already been set.

2

Does BPF verifier validation prevent this race?

Not completely. The verifier rejects programs when user_vm_start is 0 only for arena maps listed in used_maps, but the kfunc accepts any trusted struct bpf_map pointer, leaving a path for the kfunc to run during initialization.

3

What is the potential impact if the race is triggered?

The page count may not be constrained to the arena range. The resulting free operation can unmap and free pages belonging to other vmalloc areas.

4

What does the fix change?

The fix reads user_vm_start once and returns if it is 0, treating that value as indicating that no user range has been established. This prevents free-page processing from using a partially initialized range.

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