CVE-2021-47486

riscv, bpf: Fix potential NULL dereference

HIGH
7.5
CVSS Score
Published: May 22, 2024 at 08:19 AM UTC
Updated: June 17, 2026 at 04:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 0.7%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.11 ≤ v < 5.14.165.7 ≤ v < 5.10.775.7 ≤ v < 5.14.165.7 ≤ v < 5.155.15 rc15.15 rc25.15 rc35.15 rc45.15 rc55.15 rc65.15 rc7ca6cb5447cecca6cb5447ceca6a87d6b62c9e5d41042c34f7ffa
Vendor states this is fixed in 27de809a3d83a6199664479ebb19712533d6fd9b (fixed)
Vendor states this is fixed in cac6b043cea3 (fixed)
Vendor states this is fixed in cac6b043cea3e120f4fccec16f7381747cbfdc0d (fixed)
Vendor states this is fixed in e1b80a5ebe54 (fixed)
Vendor states this is fixed in e1b80a5ebe5431caeb20f88c32d4a024777a2d41 (fixed)
Vendor states this is fixed in 5.10.77 (unaffected)
Vendor states this is fixed in 5.14.16 (unaffected)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 5.7 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/27de809a3d83a6199664479ebb19712533d6fd9b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cac6b043cea3e120f4fccec16f7381747cbfdc0d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e1b80a5ebe5431caeb20f88c32d4a024777a2d41

SSVC — Action Prioritization

SSVCNo known exploitAutomatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.5HIGHCISA-ADP
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card