CVE-2024-42068Published Jul 29, 2024 · Jul 29Updated Oct 28
bpf: Take return from set_memory_ro() into account with bpf_prog_lock_ro()
Linux
High7.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
bpf: Take return from set_memory_ro() into account with bpf_prog_lock_ro()
set_memory_ro() can fail, leaving memory unprotected.
Check its return and take it into account as an error.
From the CVE record · Linux
The Linux kernel’s BPF code did not check whether set_memory_ro() failed, which could leave memory unprotected. The input does not describe what an attacker could do or whether exploitation requires network or local access, authentication, or user interaction.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.