199 lines
11 KiB
JSON
199 lines
11 KiB
JSON
{
|
|
"dataType": "CVE_RECORD",
|
|
"dataVersion": "5.2",
|
|
"cveMetadata": {
|
|
"cveId": "CVE-2024-45020",
|
|
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
|
|
"state": "PUBLISHED",
|
|
"assignerShortName": "Linux",
|
|
"dateReserved": "2024-08-21T05:34:56.683Z",
|
|
"datePublished": "2024-09-11T15:13:54.591Z",
|
|
"dateUpdated": "2026-08-05T11:37:44.844Z"
|
|
},
|
|
"containers": {
|
|
"cna": {
|
|
"providerMetadata": {
|
|
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
|
|
"shortName": "Linux",
|
|
"dateUpdated": "2026-08-05T11:37:44.844Z"
|
|
},
|
|
"descriptions": [
|
|
{
|
|
"lang": "en",
|
|
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix a kernel verifier crash in stacksafe()\n\nDaniel Hodges reported a kernel verifier crash when playing with sched-ext.\nFurther investigation shows that the crash is due to invalid memory access\nin stacksafe(). More specifically, it is the following code:\n\n if (exact != NOT_EXACT &&\n old->stack[spi].slot_type[i % BPF_REG_SIZE] !=\n cur->stack[spi].slot_type[i % BPF_REG_SIZE])\n return false;\n\nThe 'i' iterates old->allocated_stack.\nIf cur->allocated_stack < old->allocated_stack the out-of-bound\naccess will happen.\n\nTo fix the issue add 'i >= cur->allocated_stack' check such that if\nthe condition is true, stacksafe() should fail. Otherwise,\ncur->stack[spi].slot_type[i % BPF_REG_SIZE] memory access is legal."
|
|
}
|
|
],
|
|
"metrics": [
|
|
{
|
|
"cvssV3_1": {
|
|
"version": "3.1",
|
|
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
|
|
"baseScore": 7.8,
|
|
"baseSeverity": "HIGH"
|
|
},
|
|
"scenarios": [
|
|
{
|
|
"lang": "en",
|
|
"value": "AV:L - The vulnerability is reached through the bpf(BPF_PROG_LOAD) syscall, which requires local access to the system; there is no remote or adjacent-network path to the verifier.\nAC:L - The attacker fully authors the BPF program and deterministically constructs two converging paths with differing allocated_stack under an exact-comparison loop (as the upstream selftest demonstrates); no race or uncontrolled precondition is involved.\nPR:L - With unprivileged_bpf_disabled=0 an unprivileged local user can load SOCKET_FILTER/CGROUP_SKB programs, and BPF tokens (bpf_token_capable) delegate prog-load into unprivileged user namespaces; in both cases the verifier itself is the security boundary being broken.\nUI:N - The attacker triggers the bug entirely from their own process by loading a crafted BPF program; no action by any other user is required.\nS:U - The out-of-bounds access occurs in kernel memory within the same security authority as the attacking process; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - This is an out-of-bounds slab read reaching up to ~8KB past a small kmalloc'd bpf_stack_state array, far beyond a few bounded bytes, and the read bytes are compared against attacker-chosen slot_type values whose outcome is observable through verifier log/state-pruning behaviour, forming a heap-content oracle.\nI:H - Uncontrolled out-of-bounds heap data drives the state-equivalence verdict in exact-comparison mode, the mechanism that guarantees soundness of iterator and loop convergence; a wrongly-equal verdict prunes paths that were never verified, and an accepted unsafe program yields arbitrary kernel memory writes.\nA:H - When the compared frame has allocated_stack==0 the stack pointer is NULL/ZERO_SIZE_PTR, so the access is a deterministic kernel oops (the originally reported \"kernel verifier crash\"), and the slab case produces KASAN reports or faults on unmapped pages."
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"affected": [
|
|
{
|
|
"product": "Linux",
|
|
"vendor": "Linux",
|
|
"defaultStatus": "unaffected",
|
|
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
|
|
"programFiles": [
|
|
"kernel/bpf/verifier.c"
|
|
],
|
|
"versions": [
|
|
{
|
|
"version": "ab470fefce2837e66b771c60858118d50bb5bb10",
|
|
"lessThan": "7cad3174cc79519bf5f6c4441780264416822c08",
|
|
"status": "affected",
|
|
"versionType": "git"
|
|
},
|
|
{
|
|
"version": "2793a8b015f7f1caadb9bce9c63dc659f7522676",
|
|
"lessThan": "6e3987ac310c74bb4dd6a2fa8e46702fe505fb2b",
|
|
"status": "affected",
|
|
"versionType": "git"
|
|
},
|
|
{
|
|
"version": "2793a8b015f7f1caadb9bce9c63dc659f7522676",
|
|
"lessThan": "bed2eb964c70b780fb55925892a74f26cb590b25",
|
|
"status": "affected",
|
|
"versionType": "git"
|
|
},
|
|
{
|
|
"version": "6.6.15",
|
|
"lessThan": "6.6.48",
|
|
"status": "affected",
|
|
"versionType": "semver"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"product": "Linux",
|
|
"vendor": "Linux",
|
|
"defaultStatus": "affected",
|
|
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
|
|
"programFiles": [
|
|
"kernel/bpf/verifier.c"
|
|
],
|
|
"versions": [
|
|
{
|
|
"version": "6.7",
|
|
"status": "affected"
|
|
},
|
|
{
|
|
"version": "0",
|
|
"lessThan": "6.7",
|
|
"status": "unaffected",
|
|
"versionType": "semver"
|
|
},
|
|
{
|
|
"version": "6.6.48",
|
|
"lessThanOrEqual": "6.6.*",
|
|
"status": "unaffected",
|
|
"versionType": "semver"
|
|
},
|
|
{
|
|
"version": "6.10.7",
|
|
"lessThanOrEqual": "6.10.*",
|
|
"status": "unaffected",
|
|
"versionType": "semver"
|
|
},
|
|
{
|
|
"version": "6.11",
|
|
"lessThanOrEqual": "*",
|
|
"status": "unaffected",
|
|
"versionType": "original_commit_for_fix"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"cpeApplicability": [
|
|
{
|
|
"nodes": [
|
|
{
|
|
"operator": "OR",
|
|
"negate": false,
|
|
"cpeMatch": [
|
|
{
|
|
"vulnerable": true,
|
|
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
|
|
"versionStartIncluding": "6.6.15",
|
|
"versionEndExcluding": "6.6.48"
|
|
},
|
|
{
|
|
"vulnerable": true,
|
|
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
|
|
"versionStartIncluding": "6.7",
|
|
"versionEndExcluding": "6.10.7"
|
|
},
|
|
{
|
|
"vulnerable": true,
|
|
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
|
|
"versionStartIncluding": "6.7",
|
|
"versionEndExcluding": "6.11"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"references": [
|
|
{
|
|
"url": "https://git.kernel.org/stable/c/7cad3174cc79519bf5f6c4441780264416822c08"
|
|
},
|
|
{
|
|
"url": "https://git.kernel.org/stable/c/6e3987ac310c74bb4dd6a2fa8e46702fe505fb2b"
|
|
},
|
|
{
|
|
"url": "https://git.kernel.org/stable/c/bed2eb964c70b780fb55925892a74f26cb590b25"
|
|
}
|
|
],
|
|
"title": "bpf: Fix a kernel verifier crash in stacksafe()",
|
|
"x_generator": {
|
|
"engine": "bippy-1.2.0"
|
|
}
|
|
},
|
|
"adp": [
|
|
{
|
|
"metrics": [
|
|
{
|
|
"other": {
|
|
"type": "ssvc",
|
|
"content": {
|
|
"timestamp": "2024-09-29T15:48:14.999365Z",
|
|
"id": "CVE-2024-45020",
|
|
"options": [
|
|
{
|
|
"Exploitation": "none"
|
|
},
|
|
{
|
|
"Automatable": "no"
|
|
},
|
|
{
|
|
"Technical Impact": "partial"
|
|
}
|
|
],
|
|
"role": "CISA Coordinator",
|
|
"version": "2.0.3"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"title": "CISA ADP Vulnrichment",
|
|
"providerMetadata": {
|
|
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
|
|
"shortName": "CISA-ADP",
|
|
"dateUpdated": "2024-09-29T15:48:29.786Z"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
} |