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,…
- CVSS
- 5.5Medium
- Chance of exploitation (EPSS)
- —
- Published
- Feb 27, 2025
- In the news
- 1 story
What to do
A moderate security flaw in Linux kernel that needs access to the machine itself. No attacks are reported yet; it can go in your normal patch cycle.
Action: Apply the vendor's update or follow its advisory.
Fixed in: 4.5, 4.10, 4.15, 4.20
Affected versions
- Linux
- 4.14.156 to before 4.15; 4.19.86 to before 4.20; 4.20; 4.4.203 to before 4.5; 4.9.203 to before 4.10
Description
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.
Affected products
Get alerts for these →Timeline 7
Latest change: Nessus plugin 230818: Linux Distros Unpatched Vulnerability : CVE-2024-58017 (Oct 30, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Sat, Oct 31, 2026
Thu, Oct 22, 2026
- AdvisorySiemens SIMATIC S7 Webserver APICISA · 12:00 UTC
- AdvisorySiemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFPCISA · 12:00 UTC
- AdvisorySiemens SIMATIC IPCsCISA · 12:00 UTC
- AdvisorySiemens SIMATIC S7 PLCs Web ServerCISA · 12:00 UTC
- AdvisorySiemens SIMATIC S7-1500 TM MFPCISA · 12:00 UTC
Thu, Feb 27, 2025
- CVECVE-2024-58017 published (CVSS 5.5)CVE Program · 03:15 UTC
References 12
- git.kernel.org Patch /stable/c/3d6f83df8ff2d5de84b50377e4f0d45e25311c7a
- git.kernel.org Patch /stable/c/404e5fd918a0b14abec06c7eca128f04c9b98e41
- git.kernel.org Patch /stable/c/4a2c4e7265b8eed83c25d86d702cea06493cab18
- git.kernel.org Patch /stable/c/4acf6bab775dbd22a9a799030a808a7305e01d63
- git.kernel.org Patch /stable/c/9a6d43844de2479a3ff8d674c3e2a16172e01598
- git.kernel.org /stable/c/54c14022fa2ba427dc543455c2cf9225903a7174
- git.kernel.org /stable/c/bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1
- git.kernel.org /stable/c/dfb7b179741ee09506dc7719d92f9e1cea01f10e
- lists.debian.org /debian-lts-announce/2025/03/msg00028.html
- lists.debian.org /debian-lts-announce/2025/05/msg00030.html
- cert-portal.siemens.com /productcert/html/ssa-265688.html
- cert-portal.siemens.com /productcert/html/ssa-784472.html