HighFix available
bpf: Take return from set_memory_ro() into account with bpf_prog_lock_ro()
Type: advisorySources: OSV
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.162, 6.1.97, 6.6.160, 6.9.8
- CVEs
- CVE-2024-42068
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 18:37 UTC · Revision 1
Source evidence
bpf: Take return from set_memory_ro() into account with bpf_prog_lock_ro()
core-osv · Original sourcePublished 29 Jul 2024, 15:52 UTC
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.
osv:CVE-2024-42068
Kernel
Fixed versions: 5.15.162, 6.1.97, 6.6.160, 6.9.8
Complete source record
{
"id": "546f72a4db9cff98c45218ca831cb2a0425dfd95f4247b1194978c5655d52ccb",
"url": "https://osv.dev/vulnerability/CVE-2024-42068",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "bpf: Take return from set_memory_ro() into account with bpf_prog_lock_ro()",
"summary": "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.",
"evidence": "osv:CVE-2024-42068",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.162",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.97",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.160",
"evidence": "/affected/1/ranges"
},
{
"value": "6.9.8",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2024-42068",
"aliases": [
"CVE-2024-42068"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "60a3b2253c413cf601783b070507d7dd6620c954"
},
{
"fixed": "a359696856ca9409fb97655c5a8ef0f549cb6e03"
},
{
"fixed": "e4f602e3ff749ba770bf8ff10196e18358de6720"
},
{
"fixed": "2bbfffa802adc30b772d0e0f881a13c3804a965c"
},
{
"fixed": "05412471beba313ecded95aa17b25fe84bb2551a"
},
{
"fixed": "7d2cc63eca0c993c99d18893214abf8f85d566d8"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42068.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.18.0"
},
{
"fixed": "5.15.162"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.97"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.160"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.9.8"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42068.json"
}
}
],
"modified": "2026-10-28T02:30:38.164527753Z",
"provider": "osv",
"references": [
"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",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42068.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-42068",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42068.json"
}
},
"related_cves": [
{
"value": "CVE-2024-42068",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 505763,
"published_at": "2024-07-29T15:52:32.538+00:00"
}