bpf: Take return from set_memory_ro() into account with bpf_prog_lock_ro()
CVE-2024-42068 · published 29 Jul 2024
How serious is it
- Severity: high, CVSS score 7.8 out of 10.
- No exploit prediction (EPSS) score yet.
- Not on the CISA list of exploited vulnerabilities.
- No public exploit in Exploit-DB.
Is your app affected by CVE-2024-42068?
Paste this prompt into Claude Code, Cursor or any AI coding tool: it runs a free Shippable scan of your project and fixes what it finds. Built with Lovable, Bolt or v0? Scan your live app. Or upload your package file.
Who is affected
- Linux Linux: 60a3b2253c413cf601783b070507d7dd6620c954 to < a359696856ca9409fb97655c5a8ef0f549cb6e03, 60a3b2253c413cf601783b070507d7dd6620c954 to < e4f602e3ff749ba770bf8ff10196e18358de6720, 60a3b2253c413cf601783b070507d7dd6620c954 to < 2bbfffa802adc30b772d0e0f881a13c3804a965c, 60a3b2253c413cf601783b070507d7dd6620c954 to < 05412471beba313ecded95aa17b25fe84bb2551a
- Linux Linux: 3.18
How to check
- Find out whether you run the affected product and which version, then compare it with the versions above.
How to fix
Copies a prompt for Claude Code, Cursor or Codex that asks it to check whether you run this product.
- Apply the vendor's update or mitigation from the references below. If there is none yet, limit exposure of the affected service until there is.
- If a vulnerable version was live, check your logs and rotate the secrets that server could read.
The advisory
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.
Check your whole app
Dependencies are only half of it. Free and read-only: before you push, run npx shippable-dev scan localhost:3000 in your project folder, no account needed. For your live app, you prove it's yours with a one-line tag first.
References
- git.kernel.org/stable/c/a359696856ca9409fb97655c5a8ef0f549cb6e03
- git.kernel.org/stable/c/e4f602e3ff749ba770bf8ff10196e18358de6720
- git.kernel.org/stable/c/2bbfffa802adc30b772d0e0f881a13c3804a965c
- git.kernel.org/stable/c/05412471beba313ecded95aa17b25fe84bb2551a
- git.kernel.org/stable/c/7d2cc63eca0c993c99d18893214abf8f85d566d8
Merged from CVE List. Last updated 25 Oct 2026. All vulnerabilities · RSS · JSON