printk: Fix signed integer overflow when defining LOG_BUF_LEN_MAX

Summary

CVECVE-2024-58017
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-02-27 03:15:12 UTC
Updated2026-05-12 13:16:26 UTC
DescriptionIn 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.

Risk And Classification

Primary CVSS: v3.1 5.5 MEDIUM from [email protected]

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

Problem Types: CWE-190

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e 54c14022fa2ba427dc543455c2cf9225903a7174 git Not specified
CNA Linux Linux affected e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e dfb7b179741ee09506dc7719d92f9e1cea01f10e git Not specified
CNA Linux Linux affected e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1 git Not specified
CNA Linux Linux affected e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e 9a6d43844de2479a3ff8d674c3e2a16172e01598 git Not specified
CNA Linux Linux affected e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e 4acf6bab775dbd22a9a799030a808a7305e01d63 git Not specified
CNA Linux Linux affected e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e 404e5fd918a0b14abec06c7eca128f04c9b98e41 git Not specified
CNA Linux Linux affected e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e 4a2c4e7265b8eed83c25d86d702cea06493cab18 git Not specified
CNA Linux Linux affected e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e 3d6f83df8ff2d5de84b50377e4f0d45e25311c7a git Not specified
CNA Linux Linux affected 55b2c1ccb82143be1ed9e1922976dbe63917fe68 git Not specified
CNA Linux Linux affected 089d475a4cdb5848998b3cb37e545413ed054784 git Not specified
CNA Linux Linux affected 695583334b6b7f82c39ee124edfbfa48145ed571 git Not specified
CNA Linux Linux affected 3404019d6d0f4c0108b77d44e97e2e39ca937e6f git Not specified
CNA Linux Linux affected 4.20 Not specified
CNA Linux Linux unaffected 4.20 semver Not specified
CNA Linux Linux unaffected 5.4.291 5.4.* semver Not specified
CNA Linux Linux unaffected 5.10.235 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.179 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.129 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.78 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.14 6.12.* semver Not specified
CNA Linux Linux unaffected 6.13.3 6.13.* semver Not specified
CNA Linux Linux unaffected 6.14 * original_commit_for_fix Not specified
ADP Siemens SIMATIC S7-1500 TM MFP - GNU/Linux Subsystem affected * custom Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/54c14022fa2ba427dc543455c2cf9225903a7174 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
lists.debian.org/debian-lts-announce/2025/05/msg00030.html af854a3a-2127-422b-91ae-364da2661108 lists.debian.org
git.kernel.org/stable/c/404e5fd918a0b14abec06c7eca128f04c9b98e41 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
cert-portal.siemens.com/productcert/html/ssa-265688.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
git.kernel.org/stable/c/4a2c4e7265b8eed83c25d86d702cea06493cab18 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/dfb7b179741ee09506dc7719d92f9e1cea01f10e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/9a6d43844de2479a3ff8d674c3e2a16172e01598 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
lists.debian.org/debian-lts-announce/2025/03/msg00028.html af854a3a-2127-422b-91ae-364da2661108 lists.debian.org
git.kernel.org/stable/c/4acf6bab775dbd22a9a799030a808a7305e01d63 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/3d6f83df8ff2d5de84b50377e4f0d45e25311c7a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report