CVE-2024-58017
MEDIUMLinux Kernel - Integer Overflow in printk LOG_BUF_LEN_MAX Definition
Title source: llmDescription
In the Linux kernel, the following vulnerability has been resolved: printk: Fix signed integer overflow when defining LOG_BUF_LEN_MAX Shifting 1 << 31 on a 32-bit int causes signed integer overflow, which leads to undefined behavior. To prevent this, cast 1 to u32 before performing the shift, ensuring well-defined behavior. This change explicitly avoids any potential overflow by ensuring that the shift occurs on an unsigned 32-bit integer.
References (11)
Core 11
Core References
Vendor Advisory
https://cert-portal.siemens.com/productcert/html/ssa-265688.html
Scores
CVSS v3
5.5
EPSS
0.0021
EPSS Percentile
11.2%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Details
CWE
CWE-190
Status
published
Products (34)
linux/Kernel
4.20.0 - 5.4.291linux
linux/Kernel
5.11.0 - 5.15.179linux
linux/Kernel
5.16.0 - 6.1.129linux
linux/Kernel
5.5.0 - 5.10.235linux
linux/Kernel
6.13.0 - 6.13.3linux
linux/Kernel
6.2.0 - 6.6.78linux
linux/Kernel
6.7.0 - 6.12.14linux
Linux/Linux
< 4.20
Linux/Linux
089d475a4cdb5848998b3cb37e545413ed054784
Linux/Linux
3404019d6d0f4c0108b77d44e97e2e39ca937e6f
... and 24 more
Published
Feb 27, 2025
Tracked Since
Feb 18, 2026