# CVE-2021-47486: riscv, bpf: Fix potential NULL dereference

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.68%, higher than 53% of CVEs (2026-12-01)
- Published: 2024-05-22T08:19:36.818Z
- Modified: 2026-06-17T04:17:36.503Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from ca6cb5447ceca6a87d6b62c9e5d41042c34f7ffa before cac6b043cea3e120f4fccec16f7381747cbfdc0d; from ca6cb5447ceca6a87d6b62c9e5d41042c34f7ffa before e1b80a5ebe5431caeb20f88c32d4a024777a2d41; from ca6cb5447ceca6a87d6b62c9e5d41042c34f7ffa before 27de809a3d83a6199664479ebb19712533d6fd9b; 5.7 (not affected: before 5.7; from 5.10.77 up to 5.10.*; from 5.14.16 up to 5.14.*; from 5.15 up to *)
- linux linux_kernel: from ca6cb5447cec before cac6b043cea3; 5.7; from ca6cb5447cec before e1b80a5ebe54; from ca6cb5447cec up to 27de809a3d83; from 5.7 before 5.10.77; from 5.11 before 5.14.16; 5.15 (not affected: from 5.10.77 up to 5.11; from 5.14.16 up to 5.15; from 5.15 up to *)

## References

- <https://git.kernel.org/stable/c/cac6b043cea3e120f4fccec16f7381747cbfdc0d> (patch)
- <https://git.kernel.org/stable/c/e1b80a5ebe5431caeb20f88c32d4a024777a2d41> (patch)
- <https://git.kernel.org/stable/c/27de809a3d83a6199664479ebb19712533d6fd9b> (patch)

## Sources

- CVE List: [CVE-2021-47486](https://www.cve.org/CVERecord?id=CVE-2021-47486), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47486](https://nvd.nist.gov/vuln/detail/CVE-2021-47486), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47486 · Whole record: https://cve.day/CVE-2021-47486.json · Rebuilt by cve.day 2026-11-25T22:58:08.881Z
