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

High 7.5 Published Updated

A NULL pointer dereference in the RISC-V BPF JIT compiler can cause a kernel crash, leading to denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-47486?

CVE-2021-47486 is a high-severity vulnerability in Linux kernel, published on 22 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-476

Which versions are affected by CVE-2021-47486?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47486?

Apply the vendor's patch.

Is CVE-2021-47486 being exploited?

There is no known exploitation of CVE-2021-47486 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-47486, GHSA-h8rm-f377-9c5v, UBUNTU-CVE-2021-47486.

Is CVE-2021-47486 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free