CVE-2024-42068
bpf: Take return from set_memory_ro() into account with bpf_prog_lock_ro()
Check your servers for CVE-2024-42068
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-42068 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.31%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 25.4% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 60a3b2253c413cf601783b070507d7dd6620c954, before a359696856ca9409fb97655c5a8ef0f549cb6e03 affected from 60a3b2253c413cf601783b070507d7dd6620c954, before e4f602e3ff749ba770bf8ff10196e18358de6720 affected from 60a3b2253c413cf601783b070507d7dd6620c954, before 2bbfffa802adc30b772d0e0f881a13c3804a965c affected from 60a3b2253c413cf601783b070507d7dd6620c954, before 05412471beba313ecded95aa17b25fe84bb2551a affected from 60a3b2253c413cf601783b070507d7dd6620c954, before 7d2cc63eca0c993c99d18893214abf8f85d566d8
Other versions: unaffected
|
| Linux |
affected 3.18 unaffected before 3.18 unaffected from 5.15.162 up to and including 5.15.* unaffected from 6.1.97 up to and including 6.1.* unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.9.8 up to and including 6.9.* unaffected 6.10 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-42068 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-42068
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-42068
trivy image --scanners vuln IMAGE | grep CVE-2024-42068
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/a359696856ca9409fb97655c5a8ef0f549cb6e03 git.kernel.org
- https://git.kernel.org/stable/c/e4f602e3ff749ba770bf8ff10196e18358de6720 git.kernel.org
- https://git.kernel.org/stable/c/2bbfffa802adc30b772d0e0f881a13c3804a965c git.kernel.org
- https://git.kernel.org/stable/c/05412471beba313ecded95aa17b25fe84bb2551a git.kernel.org
- https://git.kernel.org/stable/c/7d2cc63eca0c993c99d18893214abf8f85d566d8 git.kernel.org
- https://git.kernel.org/stable/c/fdd411af8178edc6b7bf260f8fa4fba1bedd0a6d git.kernel.org
- https://git.kernel.org/stable/c/e3540e5a7054d6daaf9a1415a48aacb092112a89 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html lists.debian.org
Source: the record CVE-2024-42068 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse