# CVE-2024-42068: bpf: Take return from set\_memory\_ro() into account with bpf\_prog\_lock\_ro()

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-07-29 · Modified: 2026-10-21
- Aliases: UBUNTU-CVE-2024-42068, DEBIAN-CVE-2024-42068
- Record: https://cvemate.com/vulnerability/CVE-2024-42068 · JSON: https://cvemate.com/vulnerability/CVE-2024-42068/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.308%, percentile 25.433%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 133)

- debian linux (Debian): \< 6.1.98-1 \| \< 6.9.8-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 4.15.0-235.247 \| \< 5.4.0-202.222 \| \< 5.15.0-121.131 \| \< 6.8.0-48.48
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 4.15.0-1178.191 \| \< 5.4.0-1136.146 \| \< 5.15.0-1069.75 \| \< 6.8.0-1018.20
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1069.75~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1136.146~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1018.19~22.04.1
- ubuntu linux-aws-fips (Ubuntu): \< 4.15.0-2116.122 \| All versions (No fix recorded) \| \< 5.4.0-1136.146+fips1 \| \< 5.15.0-1069.75+fips1
- ubuntu linux-aws-hwe (Ubuntu): \< 4.15.0-1178.191~16.04.1
- ubuntu linux-azure (Ubuntu): \< 4.15.0-1186.201~14.04.1 \| \< 4.15.0-1186.201~16.04.1 \| All versions (No fix recorded) \| \< 5.4.0-1142.149 \| \< 5.15.0-1072.81 \| \< 6.8.0-1017.20
- ubuntu linux-azure-4.15 (Ubuntu): \< 4.15.0-1186.201
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 42)

- <https://git.kernel.org/stable/c/a359696856ca9409fb97655c5a8ef0f549cb6e03>
- <https://git.kernel.org/stable/c/e4f602e3ff749ba770bf8ff10196e18358de6720>
- <https://git.kernel.org/stable/c/05412471beba313ecded95aa17b25fe84bb2551a>
- <https://git.kernel.org/stable/c/7d2cc63eca0c993c99d18893214abf8f85d566d8>
- <https://git.kernel.org/stable/c/fdd411af8178edc6b7bf260f8fa4fba1bedd0a6d>
- <https://git.kernel.org/stable/c/e3540e5a7054d6daaf9a1415a48aacb092112a89>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://ubuntu.com/security/CVE-2024-42068>
- <https://www.cve.org/CVERecord?id=CVE-2024-42068>
- <https://git.kernel.org/linus/7d2cc63eca0c993c99d18893214abf8f85d566d8>
- <https://ubuntu.com/security/notices/USN-7007-1>
- <https://ubuntu.com/security/notices/USN-7009-1>
- <https://ubuntu.com/security/notices/USN-7019-1>
- <https://ubuntu.com/security/notices/USN-7007-2>
- <https://ubuntu.com/security/notices/USN-7007-3>
- <https://ubuntu.com/security/notices/USN-7009-2>
- <https://ubuntu.com/security/notices/USN-7089-1>
- <https://ubuntu.com/security/notices/USN-7090-1>
- <https://ubuntu.com/security/notices/USN-7089-2>
- <https://ubuntu.com/security/notices/USN-7089-3>

---

Data as of 2026-12-05T06:22:45.693Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
