Integer overflow in Linux
CVE-2024-58017
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.
Vulnerability class: Integer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.003, 17.1th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Linux — versions 089d475a4cdb5848998b3cb37e545413ed054784, 55b2c1ccb82143be1ed9e1922976dbe63917fe68, 6.6.78
- Linux Kernel
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (fkie-cad/nvd-json-data-feeds, w4zu/Debian_security). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- git.kernel.org/stable/c/54c14022fa2ba427dc543455c2cf9225903a7174
- git.kernel.org/stable/c/dfb7b179741ee09506dc7719d92f9e1cea01f10e
- git.kernel.org/stable/c/bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1
- git.kernel.org/stable/c/9a6d43844de2479a3ff8d674c3e2a16172e01598 (Patch)
- git.kernel.org/stable/c/4acf6bab775dbd22a9a799030a808a7305e01d63 (Patch)
- git.kernel.org/stable/c/404e5fd918a0b14abec06c7eca128f04c9b98e41 (Patch)
- git.kernel.org/stable/c/4a2c4e7265b8eed83c25d86d702cea06493cab18 (Patch)
- git.kernel.org/stable/c/3d6f83df8ff2d5de84b50377e4f0d45e25311c7a (Patch)
- lists.debian.org/debian-lts-announce/2025/03/msg00028.html
- lists.debian.org/debian-lts-announce/2025/05/msg00030.html