Out-of-bounds Read in Linux Kernel BPF Poke-Descriptor Range Checking
CVE-2022-49985 is an out-of-bounds read vulnerability in the Linux kernel eBPF subsystem's array range checking for poke descriptors. The affected logic used tnum_range(0, map->max_entries - 1) and tnum_in() to validate an array index. Because tnum_range() can represent a superset of the intended concrete range, the validation could accept an index outside the map's valid entries. A BPF runtime fuzzer triggered a KASAN slab-out-of-bounds read in bpf_int_jit_compile. The correction uses the concrete reg->var_off.value for the upper-index check when the register is a known constant scalar.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
A crafted BPF program can cause an out-of-bounds slab read during BPF JIT compilation. The supplied technical details establish a kernel memory-safety violation; they do not establish confidentiality disclosure, privilege escalation, arbitrary code execution, or a reliable denial-of-service outcome.
If you can’t patch tonight, do this now.
Until an updated kernel can be installed, restrict untrusted users and workloads from loading BPF programs where operationally feasible. This is a compensating control; applying the corrected kernel update is the definitive remediation.
Patch, then assume compromise.
Install a Linux kernel update that incorporates the BPF poke-descriptor range-checking fix. For affected Red Hat Enterprise Linux deployments, install the applicable updated kernel or kernel-rt packages supplied by Red Hat, then reboot so the updated kernel is running.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.