printk: Fix signed integer overflow when defining LOG_BUF_LEN_MAX
Summary
| CVE | CVE-2024-58017 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2025-02-27 03:15:12 UTC |
| Updated | 2026-05-12 13:16:26 UTC |
| 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. |
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
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS: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)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Linux | Linux Kernel | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| 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
| Reference | Source | Link | Tags |
|---|---|---|---|
| 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 |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.