CVE-2024-26885
HighIn the Linux kernel, the following vulnerability has been resolved: bpf: Fix DEVMAP_HASH overflow check on 32-bit arches The devmap code allocates a number hash buckets equal to the next power of two of the max_entries value provided when creating the map. When rounding up to the next power of two, the 32-bit variable storing the number of buckets can overflow, and the code checks for overflow by checking if the truncated 32-bit value is equal to 0. However, on 32-bit arches the rounding up itself can overflow mid-way through, because it ends up doing a left-shift of 32 bits on an unsigned long value. If the size of an unsigned long is four bytes, this is undefined behaviour, so there is no guarantee that we'll end up with a nice and tidy 0-value at the end. Syzbot managed to turn this into a crash on arm32 by creating a DEVMAP_HASH with max_entries > 0x80000000 and then trying to update it. Fix this by moving the overflow check to before the rounding up operation.
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-26885 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
Affected versions
Linux kernel versions
5.4
and later are affected. Fixed in
5.4.285,
5.10.227,
5.15.153,
6.1.83,
6.6.23,
6.7.11,
6.8.2,
6.9
and their respective stable series.
References
11 total-
Patch
-
Patch
-
Patch
-
Patch
-
Patch
Frequently asked questions
-
What is CVE-2024-26885?
CVE-2024-26885 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) . It affects Linux kernel versions from 5.4 onward and has been patched in 5.4.285, 5.10.227, 5.15.153 and others. CVE-2024-26885 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2024-26885?
CVE-2024-26885 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-26885?
Yes. CVE-2024-26885 has been patched. Fixed versions include 5.4.285, 5.10.227, 5.15.153 and others. If you are running Linux kernel 5.4 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2024-26885 actively exploited?
No. CVE-2024-26885 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.