CVE-2024-26883
HighIn the Linux kernel, the following vulnerability has been resolved: bpf: Fix stackmap overflow check on 32-bit arches The stackmap code relies on roundup_pow_of_two() to compute the number of hash buckets, and contains an overflow check by checking if the resulting value is 0. However, on 32-bit arches, the roundup code itself can overflow by doing a 32-bit left-shift of an unsigned long value, which is undefined behaviour, so it is not guaranteed to truncate neatly. This was triggered by syzbot on the DEVMAP_HASH type, which contains the same check, copied from the hashtab code. The commit in the fixes tag actually attempted to fix this, but the fix did not account for the UB, so the fix only works on CPUs where an overflow does result in a neat truncation to zero, which is not guaranteed. Checking the value before rounding does not have this problem.
CVSS 3.1 score
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness type
CWE-119CVE-2024-26883 is a Buffer Overflow vulnerability
What is Buffer Overflow?
The product performs operations on a memory buffer but reads or writes outside its intended boundaries. Learn more on MITRE CWE
References
The following references provide additional information about CVE-2024-26883 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
Mailing List
-
Mailing List
-
-
PatchKernel patch commithttps://git.kernel.org/stable/c/0971126c8164abe2004b8536b49690a0d6005b0a
-
PatchKernel patch commithttps://git.kernel.org/stable/c/15641007df0f0d35fa28742b25c2a7db9dcd6895
-
PatchKernel patch commithttps://git.kernel.org/stable/c/21e5fa4688e1a4d3db6b72216231b24232f75c1d
Frequently asked questions
-
What is CVE-2024-26883?
CVE-2024-26883 is a High severity Linux kernel vulnerability with a CVSS score of 7.8 out of 10 , classified as a Buffer Overflow flaw (CWE-119) . CVE-2024-26883 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2024-26883?
CVE-2024-26883 has a CVSS score of 7.8 out of 10, rated High severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. -
Is there a patch available for CVE-2024-26883?
No patch is currently available for CVE-2024-26883. Monitor the NIST NVD and your Linux distribution's security advisories for updates.
-
Is CVE-2024-26883 actively exploited?
No — CVE-2024-26883 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
-
What is Buffer Overflow (CWE-119)?
The product performs operations on a memory buffer but reads or writes outside its intended boundaries. View CWE-119 on MITRE CWE →