CVE-2024-42068
published high CVSS 3.1 · 7.8bpf: Take return from set_memory_ro() into account with bpf_prog_lock_ro()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux60a3b2253c413cf601783b070507d7dd6620c954 to < a359696856ca9409fb97655c5a8ef0f549cb6e03 · 60a3b2253c413cf601783b070507d7dd6620c954 to < e4f602e3ff749ba770bf8ff10196e18358de6720 · 60a3b2253c413cf601783b070507d7dd6620c954 to < 2bbfffa802adc30b772d0e0f881a13c3804a965c · 60a3b2253c413cf601783b070507d7dd6620c954 to < 05412471beba313ecded95aa17b25fe84bb2551a · 60a3b2253c413cf601783b070507d7dd6620c954 to < 7d2cc63eca0c993c99d18893214abf8f85d566d8 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.18 (affected) · 0 to < 3.18 (unaffected · semver) · 5.15.162 through 5.15.* (unaffected · semver) · 6.1.97 through 6.1.* (unaffected · semver) · 6.6.160 through 6.6.* (unaffected · semver) · 6.9.8 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2024-046 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2024-053 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-665 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.119-1~deb11u1 | DLA-4008-1 |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
Show 99 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-714 | Fixed | Not stated | Amazon Linux assessment |
| Ubuntu | bionic | block-modules-4.15.0-235-generic-di | Advisory build | 4.15.0-235.247 | USN-7342-1 |
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uekaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uekx86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-corex86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-debugaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-debugx86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-debug-coreaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-debug-corex86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-develaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-develx86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-docaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-docx86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-modulesaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-modulesx86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-modules-extraaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-modules-extrax86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uekaarch64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uekx86_64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-corex86_64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-debugaarch64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-debugx86_64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-debug-coreaarch64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-debug-corex86_64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-develaarch64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-develx86_64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-docaarch64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-docx86_64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-modulesaarch64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-modulesx86_64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-modules-extraaarch64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | kernel-uek-modules-extrax86_64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Ubuntu | bionic | block-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | crypto-modules-4.15.0-235-generic-di | Advisory build | 4.15.0-235.247 | USN-7342-1 |
| Ubuntu | bionic | crypto-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | dasd-extra-modules-4.15.0-235-generic-di | Advisory build | 4.15.0-235.247 | USN-7342-1 |
| Ubuntu | bionic | dasd-extra-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | dasd-modules-4.15.0-235-generic-di | Advisory build | 4.15.0-235.247 | USN-7342-1 |
| Ubuntu | bionic | dasd-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | fat-modules-4.15.0-235-generic-di | Advisory build | 4.15.0-235.247 | USN-7342-1 |
| Ubuntu | bionic | fat-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | fb-modules-4.15.0-235-generic-di | Advisory build | 4.15.0-235.247 | USN-7342-1 |
| Ubuntu | bionic | fb-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | firewire-core-modules-4.15.0-235-generic-di | Advisory build | 4.15.0-235.247 | USN-7342-1 |
| Ubuntu | bionic | firewire-core-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | floppy-modules-4.15.0-235-generic-di | Advisory build | 4.15.0-235.247 | USN-7342-1 |
| Ubuntu | bionic | floppy-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | fs-core-modules-4.15.0-235-generic-di | Advisory build | 4.15.0-235.247 | USN-7342-1 |
| Ubuntu | bionic | fs-core-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | fs-secondary-modules-4.15.0-235-generic-di | Advisory build | 4.15.0-235.247 | USN-7342-1 |
| Ubuntu | bionic | fs-secondary-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | input-modules-4.15.0-235-generic-di | Advisory build | 4.15.0-235.247 | USN-7342-1 |
| Ubuntu | bionic | input-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | ipmi-modules-4.15.0-235-generic-di | Advisory build | 4.15.0-235.247 | USN-7342-1 |
| Ubuntu | bionic | ipmi-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | irda-modules-4.15.0-235-generic-di | Advisory build | 4.15.0-235.247 | USN-7342-1 |
| Ubuntu | bionic | kernel-image-4.15.0-235-generic-di | Advisory build | 4.15.0-235.247 | USN-7342-1 |
| Ubuntu | bionic | kernel-image-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux | Advisory build | 4.15.0-235.247 | USN-7342-1 |
| Ubuntu | bionic | linux-aws | Advisory build | 4.15.0-1178.191 | USN-7344-1 |
| Ubuntu | bionic | linux-aws-5.4 | Advisory build | 5.4.0-1136.146~18.04.1 | USN-7159-2 |
| Ubuntu | bionic | linux-aws-5.4-cloud-tools-5.4.0-1136 | Advisory build | 5.4.0-1136.146~18.04.1 | USN-7159-2 |
| Ubuntu | bionic | linux-aws-5.4-headers-5.4.0-1136 | Advisory build | 5.4.0-1136.146~18.04.1 | USN-7159-2 |
| Ubuntu | bionic | linux-aws-5.4-tools-5.4.0-1136 | Advisory build | 5.4.0-1136.146~18.04.1 | USN-7159-2 |
| Ubuntu | bionic | linux-aws-cloud-tools-4.15.0-1178 | Advisory build | 4.15.0-1178.191 | USN-7344-1 |
| Ubuntu | bionic | linux-aws-headers-4.15.0-1178 | Advisory build | 4.15.0-1178.191 | USN-7344-1 |
| Ubuntu | bionic | linux-aws-tools-4.15.0-1178 | Advisory build | 4.15.0-1178.191 | USN-7344-1 |
| Ubuntu | bionic | linux-azure-4.15 | Advisory build | 4.15.0-1186.201 | USN-7344-2 |
| Ubuntu | bionic | linux-azure-4.15-cloud-tools-4.15.0-1186 | Advisory build | 4.15.0-1186.201 | USN-7344-2 |
| Ubuntu | bionic | linux-azure-4.15-headers-4.15.0-1186 | Advisory build | 4.15.0-1186.201 | USN-7344-2 |
| Ubuntu | bionic | linux-azure-4.15-tools-4.15.0-1186 | Advisory build | 4.15.0-1186.201 | USN-7344-2 |
| Ubuntu | bionic | linux-azure-5.4 | Advisory build | 5.4.0-1142.149~18.04.1 | USN-7195-2 |
| Ubuntu | bionic | linux-azure-5.4-cloud-tools-5.4.0-1142 | Advisory build | 5.4.0-1142.149~18.04.1 | USN-7195-2 |
| Ubuntu | bionic | linux-azure-5.4-headers-5.4.0-1142 | Advisory build | 5.4.0-1142.149~18.04.1 | USN-7195-2 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - BPF program loading is reachable only through local syscalls — `setsockopt(SO_ATTACH_FILTER)`, `seccomp()`/`prctl(PR_SET_SECCOMP)`, and `bpf(BPF_PROG_LOAD)`. No remote peer can drive `bpf_prog_select_runtime()`. AC:L - A local attacker can repeatedly load interpreted BPF programs in a loop while driving the machine into reclaim pressure, which is the condition that makes `split_large_page()`'s page-table allocation fail and return -ENOMEM out of `set_memory_ro()`. Memory pressure is attacker-influenceable rather than a state outside the attacker's control, so the higher-severity value applies. PR:L - `SO_ATTACH_FILTER` in net/core/sock.c:1465 has no capability check at all, and the seccomp path is gated only by `no_new_privs`, which any unprivileged task can set — so an ordinary user, including one inside a container or sandbox, reaches the vulnerable code with zero capabilities. UI:N - The attacker loads and attaches the BPF program entirely within its own process; no other user or victim action is involved. S:U - The unprotected memory and the resulting compromise are both within the kernel's own security authority — this is standard kernel privilege escalation, not a hypervisor or IOMMU boundary crossing. C:H - Kernel memory that the hardening design requires to be read-only remains writable, and the introducing commit 60a3b2253c41 states that a modifiable interpreter image yields "arbitrary read/write memory access"; rewriting the `insnsi[]` stream turns the BPF interpreter into an arbitrary kernel-memory read primitive. I:H - The unprotected region contains both the executed eBPF bytecode and the `bpf_func` function pointer, so the lost `set_memory_ro()` gives an attacker a path to arbitrary kernel writes and arbitrary function calls — exactly the integrity guarantee this code exists to enforce. A:H - A BPF program whose instruction stream or `bpf_func` pointer can be altered executes attacker-chosen kernel control flow, trivially producing an oops or panic, so the availability impact of the lost protection is a full kernel crash.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 60a3b2253c413cf601783b070507d7dd6620c954 to < a359696856ca9409fb97655c5a8ef0f549cb6e03 (affected · git)60a3b2253c413cf601783b070507d7dd6620c954 to < e4f602e3ff749ba770bf8ff10196e18358de6720 (affected · git)60a3b2253c413cf601783b070507d7dd6620c954 to < 2bbfffa802adc30b772d0e0f881a13c3804a965c (affected · git)60a3b2253c413cf601783b070507d7dd6620c954 to < 05412471beba313ecded95aa17b25fe84bb2551a (affected · git)60a3b2253c413cf601783b070507d7dd6620c954 to < 7d2cc63eca0c993c99d18893214abf8f85d566d8 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.18 (affected)0 to < 3.18 (unaffected · semver)5.15.162 through 5.15.* (unaffected · semver)6.1.97 through 6.1.* (unaffected · semver)6.6.160 through 6.6.* (unaffected · semver)6.9.8 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/05412471beba313ecded95aa17b25fe84bb2551a
- https://git.kernel.org/stable/c/2bbfffa802adc30b772d0e0f881a13c3804a965c
- https://git.kernel.org/stable/c/7d2cc63eca0c993c99d18893214abf8f85d566d8
- https://git.kernel.org/stable/c/a359696856ca9409fb97655c5a8ef0f549cb6e03
- https://git.kernel.org/stable/c/e3540e5a7054d6daaf9a1415a48aacb092112a89
- https://git.kernel.org/stable/c/e4f602e3ff749ba770bf8ff10196e18358de6720
- https://git.kernel.org/stable/c/fdd411af8178edc6b7bf260f8fa4fba1bedd0a6d
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
Provider assertions
3Linux · cna
bpf: Take return from set_memory_ro() into account with bpf_prog_lock_ro()
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 54e515c5f07b4f8d28cc4d0fef26c61c5313b45e52337db5ce1086eb7fe8cd8f
- Ingested
- 21 Oct 2026, 12:48:59 UTC
- Source record
- Official CVE record