What’s Vulnerable › Vulnerabilities
CVE-2021-47486: riscv, bpf: Fix potential NULL dereference
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.7% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-05-22 · updated 2026-06-17
- Weakness: CWE-476
Description
In the Linux kernel, the following vulnerability has been resolved: riscv, bpf: Fix potential NULL dereference The bpf_jit_binary_free() function requires a non-NULL argument. When the RISC-V BPF JIT fails to converge in NR_JIT_ITERATIONS steps, jit_data->header will be NULL, which triggers a NULL dereference. Avoid this by checking the argument, prior calling the function.
Affected products
- Linux kernel: from 5.7 before 5.10.77; from 5.11 before 5.14.16; 5.15-rc1, 5.15-rc2, 5.15-rc3, 5.15-rc4, 5.15-rc5, 5.15-rc6 (+1) — fixed in 5.10.77, 5.14.16
How to fix
Upgrade to a fixed version: Linux kernel 5.10.77, 5.14.16. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/27de809a3d83a6199664479ebb19712533d6fd9b
- https://git.kernel.org/stable/c/cac6b043cea3e120f4fccec16f7381747cbfdc0d
- https://git.kernel.org/stable/c/e1b80a5ebe5431caeb20f88c32d4a024777a2d41
- https://git.kernel.org/stable/c/27de809a3d83a6199664479ebb19712533d6fd9b
- https://git.kernel.org/stable/c/cac6b043cea3e120f4fccec16f7381747cbfdc0d
- https://git.kernel.org/stable/c/e1b80a5ebe5431caeb20f88c32d4a024777a2d41
Get alerted when CVE-2021-47486 or the next vulnerability affects your stack