riscv, bpf: Fix potential NULL dereference
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.10.775.14.165.15In 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.
From the CVE record · Linux
The RISC-V BPF JIT can pass a NULL header to bpf_jit_binary_free() if compilation fails to converge within NR_JIT_ITERATIONS steps, causing a NULL dereference. The input does not specify whether an attacker can trigger this remotely or locally, or whether authentication or user interaction is required.
Teams running the Linux kernel on RISC-V should check their BPF JIT; affected versions are not specified.