ZeroDay Brief
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,…

CVSS
5.5Medium
Chance of exploitation (EPSS)
—
Published
Feb 27, 2025
In the news
1 story
Vendor advisory More from this vendor

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.

CWE-190

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.

Thu, Oct 22, 2026

  1. AdvisorySiemens SIMATIC S7 Webserver APICISA · 12:00 UTC
  2. AdvisorySiemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFPCISA · 12:00 UTC
  3. AdvisorySiemens SIMATIC IPCsCISA · 12:00 UTC
  4. AdvisorySiemens SIMATIC S7 PLCs Web ServerCISA · 12:00 UTC
  5. AdvisorySiemens SIMATIC S7-1500 TM MFPCISA · 12:00 UTC

Thu, Feb 27, 2025

  1. CVECVE-2024-58017 published (CVSS 5.5)CVE Program · 03:15 UTC

References 12

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”