CVE-2024-45020
MediumIn the Linux kernel, the following vulnerability has been resolved: bpf: Fix a kernel verifier crash in stacksafe() Daniel Hodges reported a kernel verifier crash when playing with sched-ext. Further investigation shows that the crash is due to invalid memory access in stacksafe(). More specifically, it is the following code: if (exact != NOT_EXACT && old->stack[spi].slot_type[i % BPF_REG_SIZE] != cur->stack[spi].slot_type[i % BPF_REG_SIZE]) return false; The 'i' iterates old->allocated_stack. If cur->allocated_stack < old->allocated_stack the out-of-bound access will happen. To fix the issue add 'i >= cur->allocated_stack' check such that if the condition is true, stacksafe() should fail. Otherwise, cur->stack[spi].slot_type[i % BPF_REG_SIZE] memory access is legal.
CVSS 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness type
CWE-787CVE-2024-45020 is a Out-of-bounds Write vulnerability
What is Out-of-bounds Write?
The product writes data past the end or before the beginning of the intended buffer. Learn more on MITRE CWE
Affected versions
Linux kernel versions
6.6.15,
6.7
and later are affected. Fixed in
6.6.48,
6.10.7,
6.11
and their respective stable series.
References
The following references provide additional information about CVE-2024-45020 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/6e3987ac310c74bb4dd6a2fa8e46702fe505fb2b
-
PatchKernel patch commithttps://git.kernel.org/stable/c/7cad3174cc79519bf5f6c4441780264416822c08
-
PatchKernel patch commithttps://git.kernel.org/stable/c/bed2eb964c70b780fb55925892a74f26cb590b25
Frequently asked questions
-
What is CVE-2024-45020?
CVE-2024-45020 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 , classified as an Out-of-bounds Write flaw (CWE-787) . It affects Linux kernel versions from 6.6.15 onward and has been patched in 6.6.48, 6.10.7 and 6.11. CVE-2024-45020 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2024-45020?
CVE-2024-45020 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2024-45020?
Yes — CVE-2024-45020 has been patched. Fixed versions include 6.6.48, 6.10.7 and 6.11. If you are running Linux kernel 6.6.15 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2024-45020 actively exploited?
No — CVE-2024-45020 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
-
What is Out-of-bounds Write (CWE-787)?
The product writes data past the end or before the beginning of the intended buffer. View CWE-787 on MITRE CWE →