CVE-2024-58017

printk: Fix signed integer overflow when defining LOG_BUF_LEN_MAX

MEDIUM
5.5
CVSS Score
Published: February 27, 2025 at 02:12 AM UTC
Updated: October 15, 2026 at 02:17 AM UTC
2 products affected across 2 vendorsLinux KernelSIMATIC S7-1500 TM MFP

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

All versionsv < 6.1.1296.13 ≤ v < 6.13.36.2 ≤ v < 6.6.786.7 ≤ v < 6.12.143404019d6d0f4c0108b77d44e97e2e39ca937e6f4.14.1564.19.864.204.4.2034.9.20355b2c1ccb82143be1ed9e1922976dbe63917fe68695583334b6b7f82c39ee124edfbfa48145ed57189d475a4cdb5848998b3cb37e545413ed54784e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e
Vendor states this is fixed in 3d6f83df8ff2d5de84b50377e4f0d45e25311c7a (fixed)
Vendor states this is fixed in 404e5fd918a0b14abec06c7eca128f04c9b98e41 (fixed)
Vendor states this is fixed in 4a2c4e7265b8eed83c25d86d702cea06493cab18 (fixed)
Vendor states this is fixed in 4acf6bab775dbd22a9a799030a808a7305e01d63 (fixed)
Vendor states this is fixed in 54c14022fa2ba427dc543455c2cf9225903a7174 (fixed)
Vendor states this is fixed in 9a6d43844de2479a3ff8d674c3e2a16172e01598 (fixed)
Vendor states this is fixed in bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1 (fixed)
Vendor states this is fixed in dfb7b179741ee09506dc7719d92f9e1cea01f10e (fixed)
Affected range stops below 4.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.15, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 4.20 (unaffected)
Affected range stops below 4.5, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5.10.235 (unaffected)
Vendor states this is fixed in 5.15.179 (unaffected)
Vendor states this is fixed in 5.4.291 (unaffected)
Vendor states this is fixed in 6.1.129 (unaffected)
Vendor states this is fixed in 6.12.14 (unaffected)
Vendor states this is fixed in 6.13.3 (unaffected)
Vendor states this is fixed in 6.14 (unaffected)
Vendor states this is fixed in 6.6.78 (unaffected)

References (12)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-190

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card