CVE-2024-42068

bpf: Take return from set_memory_ro() into account with bpf_prog_lock_ro()

MEDIUM
5.5
CVSS Score
Published: July 29, 2024 at 03:52 PM UTC
Updated: October 21, 2026 at 01:17 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.15.1625.16 ≤ v < 6.1.976.2 ≤ v < 6.6.376.7 ≤ v < 6.9.83.1860a3b2253c413cf601783b070507d7dd6620c954
Vendor states this is fixed in 05412471beba313ecded95aa17b25fe84bb2551a (fixed)
Vendor states this is fixed in 7d2cc63eca0c993c99d18893214abf8f85d566d8 (fixed)
Vendor states this is fixed in a359696856ca9409fb97655c5a8ef0f549cb6e03 (fixed)
Vendor states this is fixed in e4f602e3ff749ba770bf8ff10196e18358de6720 (fixed)
Vendor states this is fixed in 3.18 (unaffected)
Vendor states this is fixed in 5.15.162 (unaffected)
Vendor states this is fixed in 6.1.97 (unaffected)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.6.160 (unaffected)
Affected range stops below 6.6.37, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.9.8 (unaffected)

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-252

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card