CVE-2024-58017

MediumCVSS 5.5/10Last modified Nov 5, 2026

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.

Metrics

CVSS 3.1 5.5/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Weakness enumeration

Affected software

VendorProductVersions
LinuxLinux>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < 54c14022fa2ba427dc543455c2cf9225903a7174; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < dfb7b179741ee09506dc7719d92f9e1cea01f10e; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < 9a6d43844de2479a3ff8d674c3e2a16172e01598; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < 4acf6bab775dbd22a9a799030a808a7305e01d63; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < 404e5fd918a0b14abec06c7eca128f04c9b98e41; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < 4a2c4e7265b8eed83c25d86d702cea06493cab18; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < 3d6f83df8ff2d5de84b50377e4f0d45e25311c7a; 55b2c1ccb82143be1ed9e1922976dbe63917fe68; 089d475a4cdb5848998b3cb37e545413ed054784; 695583334b6b7f82c39ee124edfbfa48145ed571; 3404019d6d0f4c0108b77d44e97e2e39ca937e6f; >= 4.4.203, < 4.5; >= 4.9.203, < 4.10; >= 4.14.156, < 4.15; >= 4.19.86, < 4.20
LinuxLinux4.20
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem< *
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem< *

References

Timeline

Published
Feb 27, 2025
Last modified
Nov 5, 2026
NVD status
Modified

Related CVEs from 2024

CVE-2024-580185.5In the Linux kernel, the following vulnerability has been resolved: nvkm: correctly calculate the available space of the GSP cmdq buffer rCVE-2024-580195.5In the Linux kernel, the following vulnerability has been resolved: nvkm/gsp: correctly advance the read pointer of GSP message queue A GSCVE-2024-58024.8The URL Shortener by Myhop WordPress plugin through 1.0.17 does not sanitise and escape some of its settings, which could allow high privileCVE-2024-580205.5In the Linux kernel, the following vulnerability has been resolved: HID: multitouch: Add NULL check in mt_input_configured devm_kasprintf(CVE-2024-580215.5In the Linux kernel, the following vulnerability has been resolved: HID: winwing: Add NULL check in winwing_init_led() devm_kasprintf() caCVE-2024-580225.5In the Linux kernel, the following vulnerability has been resolved: mailbox: th1520: Fix a NULL vs IS_ERR() bug The devm_ioremap() functioCVE-2024-580238.4Information disclosure in Bosch Configuration Manager in Version 7.72.0106 allows an attacker to access sensitive information.CVE-2024-58037.5The AVGUI.exe of AVG/Avast Antivirus before versions before 24.1 can allow a local attacker to escalate privileges via an COM hijack in a tiCVE-2024-580347.8In the Linux kernel, the following vulnerability has been resolved: memory: tegra20-emc: fix an OF node reference bug in tegra_emc_find_nodCVE-2024-580365.5Net::Dropbox::API 1.9 and earlier for Perl uses the rand() function as the default source of entropy, which is not cryptographically secure,CVE-2024-58044.3The Conditional Fields for Contact Form 7 plugin for WordPress is vulnerable to Cross-Site Request Forgery in versions up to, and including,CVE-2024-580409.1Crypt::RandomEncryption for Perl version 0.01 uses insecure rand() function during encryption.
CVE-2024-58017: Medium severity, CVSS 5.5 | Vulnix