All reports
Medium

kernel: bpf: Reject MEM_ALLOC BTF accesses past object bounds

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-93148

Probability of exploitation in the next 30 days: 0.18%

FIRST EPSS · 2026-11-21

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Reject MEM_ALLOC BTF accesses past object bounds BTF struct walks relax the struct-size check for accesses through a trailing flexible array. That is valid for ordinary BTF type walking, but PTR_TO_BTF_ID | MEM_ALLOC values point to objects allocated with the static BTF type size. When walking a MEM_ALLOC object, reject the access before applying the flexible-array relaxation if the access range extends past the struct size. Apply the same policy to struct ID matching so kfunc and kptr type checks do not walk past the allocated object bounds either.

A flaw was found in the Linux kernel's Berkeley Packet Filter (BPF) component. This vulnerability arises from incorrect boundary checks during BPF Type Format (BTF) struct walks for memory-allocated objects. Specifically, the system fails to reject accesses that extend beyond the allocated object's static size before applying flexible-array relaxations. This out-of-bounds access could potentially lead to memory corruption.