CVEvulnerability
CVE-2021-47486
7.5 HIGH
Official page ↗
- Status
- Analyzed
- Published
- 2024-05-22
- Last modified
- 2026-06-17
- Assigner
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
- 7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- 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 configurations
• linux linux kernel (>= 5.7 < 5.10.77)
• linux linux kernel (>= 5.11 < 5.14.16)
• linux linux kernel 5.15
Related
Weakness · CWE (1)
- CWE-476 NULL Pointer Dereference weakness
References
- https://git.kernel.org/stable/c/27de809a3d83a6199664479ebb19712533d6fd9b Patch
- https://git.kernel.org/stable/c/cac6b043cea3e120f4fccec16f7381747cbfdc0d Patch
- https://git.kernel.org/stable/c/e1b80a5ebe5431caeb20f88c32d4a024777a2d41 Patch
- https://git.kernel.org/stable/c/27de809a3d83a6199664479ebb19712533d6fd9b Patch
- https://git.kernel.org/stable/c/cac6b043cea3e120f4fccec16f7381747cbfdc0d Patch
- https://git.kernel.org/stable/c/e1b80a5ebe5431caeb20f88c32d4a024777a2d41 Patch