CVE-2024-58017CWE-190

CVE-2024-58017

Medium · published February 27, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
16.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00254 · 16.1th percentile
Weakness
CWE-190 · Integer Overflow or Wraparound
Published
2025-02-27T08:15Z
Affected products (4)
ProductVersionsFixed in
linux/linux_kernel< 6.1.1296.1.129
linux/linux_kernel≥ 6.2, < 6.6.786.6.78
linux/linux_kernel≥ 6.7, < 6.12.146.12.14
linux/linux_kernel≥ 6.13, < 6.13.36.13.3
References (12)
EPSS history
Timeline
  • 27 FEB 02:12Z
    printk: Fix signed integer overflow when defining LOG_BUF_LEN_MAX
    cvelistv5