CVE-2024-42068
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.31% (higher than 25% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 60a3b2253c413cf601783b070507d7dd6620c954 before a359696856ca9409fb97655c5a8ef0f549cb6e03, from 60a3b2253c413cf601783b070507d7dd6620c954 before e4f602e3ff749ba770bf8ff10196e18358de6720, from 60a3b2253c413cf601783b070507d7dd6620c954 before 2bbfffa802adc30b772d0e0f881a13c3804a965c, from 60a3b2253c413cf601783b070507d7dd6620c954 before 05412471beba313ecded95aa17b25fe84bb2551a, from 60a3b2253c413cf601783b070507d7dd6620c954 before 7d2cc63eca0c993c99d18893214abf8f85d566d8, 3.18
Not affected: before 3.18, from 5.15.162 up to 5.15.*, from 6.1.97 up to 6.1.*, from 6.6.160 up to 6.6.*, from 6.9.8 up to 6.9.*, from 6.10 up to *
CVE List
linux linux_kernelbefore 5.15.162, from 5.16 before 6.1.97, from 6.2 before 6.6.37, from 6.7 before 6.9.8NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-252

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux se ha resuelto la siguiente vulnerabilidad: bpf: Tener en cuenta el retorno de set_memory_ro() con bpf_prog_lock_ro() set_memory_ro() puede fallar, dejando la memoria desprotegida. Comprueba su devolución y tenlo en cuenta como error.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-42068 changed 2026-10-21CVE Terms of Use
NVDCVE-2024-42068 changed 2026-10-21Public domain