bpf: Reject arena frees below the arena base
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.12.110, 6.18.52, 7.2.6
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: bpf: Reject arena frees below the arena base bpf_arena_free_pages() accepts scalar arena addresses. The runtime masks the address to the low 32 bits and reconstructs a full user address from the arena base before returning the range to the arena free tree. When the scalar value is below the low 32 bits of the arena base, full_uaddr falls below user_vm_start. The existing upper-end clipping then turns this into an out-of-range free-tree offset. A later allocation can reuse that offset and return an address below the arena mapping. Reject such frees before computing the clipped range.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 317460317a02a1af512697e6e964298dedd8a163 · fixed in 90453eaf8f14e7be0ab03983f2a93aeb6b990a58; From 317460317a02a1af512697e6e964298dedd8a163 · fixed in a968dffa5ab3c74d2ebb3a6233bf8b843f0bfc20; From 317460317a02a1af512697e6e964298dedd8a163 · fixed in 8a08635656037aee9c12231ed384449c4ffb1a93; From 317460317a02a1af512697e6e964298dedd8a163 · fixed in b5a71cb2db6d84ac0042549dcec266b18429d41e
- Linux Linux
6.9
- KernelLinux
From 6.9.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6