bpf: Reject arena frees below the arena base
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s BPF arena free operation accepts scalar addresses below the arena base. If such an address is freed, a later allocation can return an address below the arena mapping. The input does not specify whether authentication, local access, or user interaction is required.
Engineers running Linux kernels with BPF arena support should check their versions against the vendor advisory; affected versions are not specified.