What’s Vulnerable › Vulnerabilities

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

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

How to fix

Upgrade to a fixed version: Linux kernel 5.10.77, 5.14.16. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-47486 or the next vulnerability affects your stack