Technical impact
The Linux kernel’s BPF JIT allocator packs many small programs into large executable regions and reuses these regions as programs are loaded and freed. When new code is written into a space that previously held another BPF program, an indirect jump into the new program can reuse a branch‑prediction entry that was cached for the old program. This stale prediction can cause the CPU to redirect execution to the wrong path, potentially letting an attacker run arbitrary code at kernel privilege. The upstream fix inserts a branch‑predictor flush on JIT memory reuse, triggered through a static key that is a no‑op on architectures that do not need a flush but can be enabled otherwise.
Affected Systems
Linux kernels that expose the legacy BPF JIT allocator and lack the hardening commit that adds branch‑predictor flushing are affected. Any kernel version without this patch, even if it still supports the legacy allocator, remains vulnerable. The patch was added to mainline in commit 6e52c240c43a6, and the static key 'bpf_arch_pred_flush_enabled' must be enabled on architectures that require the flush.
Risk and Exploitability
The CVSS score of 5.5 indicates moderate severity, and the EPSS score of less than 1% shows that observed exploitation is very unlikely. The vulnerability is not listed in CISA KEV, further suggesting limited active exploitation. Exploitation requires an attacker to craft a BPF JIT program that targets the stale branch‑prediction state, which demands detailed knowledge of kernel internals and the BPF execution flow, reducing the realistic odds of success.
Debian DLA
Debian DSA
Ubuntu USN