CVE-2024-42068
MEDIUM 5.5CVSS 3.1In 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.
- Published
- 29 Jul 2024
- Last modified
- 21 Oct 2026
- Assigned by
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- NVD status
- Modified
- Weakness
- CWE-252
- Sources
- NVDJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | linux | linux_kernelcpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
< 5.15.162 | 5.15.162 |
| NVD | linux | linux_kernelcpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
>= 5.16, < 6.1.97 | 6.1.97 |
| NVD | linux | linux_kernelcpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
>= 6.2, < 6.6.37 | 6.6.37 |
| NVD | linux | linux_kernelcpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
>= 6.7, < 6.9.8 | 6.9.8 |
References
- https://git.kernel.org/stable/c/05412471beba313ecded95aa17b25fe84bb2551a · Patch
- https://git.kernel.org/stable/c/2bbfffa802adc30b772d0e0f881a13c3804a965c
- https://git.kernel.org/stable/c/7d2cc63eca0c993c99d18893214abf8f85d566d8 · Patch
- https://git.kernel.org/stable/c/a359696856ca9409fb97655c5a8ef0f549cb6e03 · Patch
- https://git.kernel.org/stable/c/e4f602e3ff749ba770bf8ff10196e18358de6720 · Patch
- https://git.kernel.org/stable/c/e3540e5a7054d6daaf9a1415a48aacb092112a89 · Patch
- https://git.kernel.org/stable/c/fdd411af8178edc6b7bf260f8fa4fba1bedd0a6d · Patch
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 29 Jul 2024)