CVE-2024-42067Published Jul 29, 2024 · Jul 29Updated Oct 28
bpf: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro()
Linux
High7.8Fix available
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 |
|
|
6.6.1606.9.86.10In the Linux kernel, the following vulnerability has been resolved:
bpf: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro()
set_memory_rox() can fail, leaving memory unprotected.
Check return and bail out when bpf_jit_binary_lock_ro() returns an error.
From the CVE record · Linux
The Linux kernel’s BPF JIT can fail to make memory read-only and executable because a failure from set_memory_rox() was not handled. This can leave memory unprotected; the input does not specify attacker access requirements or user interaction.
Anyone running the Linux kernel should check their version against the vendor advisory; affected versions are not specified in the input.