# CVE-2024-42067: bpf: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2024-07-29T15:52:31.825Z
- Modified: 2026-10-21T13:17:45.390Z
- Weaknesses: CWE-252
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

(As written by CVE List.)

## Affected

- Linux Linux: from d48567c9a0d1e605639f8a8705a61bbb55fb4e84 before c20d0fa873039bce82d4b1b2ffcda8bb22242790; from d48567c9a0d1e605639f8a8705a61bbb55fb4e84 before 044da7ae7afd4ef60806d73654a2e6a79aa4ed7a; from d48567c9a0d1e605639f8a8705a61bbb55fb4e84 before e60adf513275c3a38e5cb67f7fd12387e43a3ff5; 6.2 (not affected: before 6.2; from 6.6.160 up to 6.6.*; from 6.9.8 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: before 6.6.37; from 6.7 before 6.9.8

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/c20d0fa873039bce82d4b1b2ffcda8bb22242790>
- <https://git.kernel.org/stable/c/044da7ae7afd4ef60806d73654a2e6a79aa4ed7a> (patch)
- <https://git.kernel.org/stable/c/e60adf513275c3a38e5cb67f7fd12387e43a3ff5> (patch)
- <https://git.kernel.org/stable/c/08f6c05feb1db21653e98ca84ea04ca032d014c7> (patch)
- <https://git.kernel.org/stable/c/9fef36cad60d4226f9d06953cd56d1d2f9119730> (patch)

## Sources

- CVE List: [CVE-2024-42067](https://www.cve.org/CVERecord?id=CVE-2024-42067), CVE Terms of Use, modified 2026-10-21
- NVD: [CVE-2024-42067](https://nvd.nist.gov/vuln/detail/CVE-2024-42067), Public domain, modified 2026-10-21

---

Page: https://cve.day/CVE-2024-42067 · Whole record: https://cve.day/CVE-2024-42067.json · Rebuilt by cve.day 2026-11-25T22:58:43.334Z
