All reports
Medium

kernel: Local privilege escalation due to incorrect BPF JIT branch displacement computation

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2021-29154

Probability of exploitation in the next 30 days: 0.93%

FIRST EPSS · 2026-11-20

Description

BPF JIT compilers in the Linux kernel through 5.11.12 have incorrect computation of branch displacements, allowing them to execute arbitrary code within the kernel context. This affects arch/x86/net/bpf_jit_comp.c and arch/x86/net/bpf_jit_comp32.c.

A flaw was found in the Linux kernels eBPF implementation. By default, accessing the eBPF verifier is only accessible to privileged users with CAP_SYS_ADMIN. A local user with the ability to insert eBPF instructions can abuse a flaw in eBPF to corrupt memory. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.