CVE-2024-26883

Updated: 2025-03-10 20:50:04.377764

Description:

In 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.


Links NIST CIRCL RHEL Ubuntu

Severity

Severity Score
CVSS Version 2.x 0
CVSS Version 3.x HIGH 7.8

Status

OS name Project name Version Score Severity Status Errata Last updated

Statement

AlmaLinux 9.2 ESU kernel 5.14.0 7.8 HIGH Released CLSA-2025:1743193221 2024-06-24 11:24:37
CentOS 6 ELS kernel 2.6.32 7.8 HIGH Not Vulnerable 2024-05-23 14:22:57
CentOS 7 ELS kernel 3.10.0 7.8 HIGH Not Vulnerable 2024-06-11 14:23:10
CentOS 8.4 ELS kernel 4.18.0 7.8 HIGH Not Vulnerable 2024-05-07 17:19:37
CentOS 8.5 ELS kernel 4.18.0 7.8 HIGH Not Vulnerable 2024-06-11 14:23:10
CentOS Stream 8 ELS kernel 4.18.0 7.8 HIGH Not Vulnerable 2024-06-11 14:21:02
CloudLinux 6 ELS kernel 2.6.32 7.8 HIGH Not Vulnerable 2024-05-23 14:22:57
CloudLinux 7 ELS kernel 3.10.0 7.8 HIGH Ignored 2025-01-10 22:43:54
Oracle Linux 6 ELS kernel 2.6.32 7.8 HIGH Not Vulnerable 2024-05-23 14:22:56
Oracle Linux 7 ELS kernel 3.10.0 7.8 HIGH Not Vulnerable 2025-05-11 04:36:21
Total: 13