CVE-2024-58017printk: Fix signed integer overflow when defining LOG_BUF_LEN_MAX
- 5.5MediumCVSS base score
- 0.25%Exploitation in 30 daysEPSS · top 83% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By Linux
Published
- 21 months later
· 21 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.25% · top 83% of all CVEs (14 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Affected products
- affected e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e – < 54c14022fa2ba427dc543455c2cf9225903a7174
- affected e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e – < dfb7b179741ee09506dc7719d92f9e1cea01f10e
- affected e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e – < bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1
- affected e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e – < 9a6d43844de2479a3ff8d674c3e2a16172e01598
- affected e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e – < 4acf6bab775dbd22a9a799030a808a7305e01d63
- affected e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e – < 404e5fd918a0b14abec06c7eca128f04c9b98e41
- affected e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e – < 4a2c4e7265b8eed83c25d86d702cea06493cab18
- affected e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e – < 3d6f83df8ff2d5de84b50377e4f0d45e25311c7a
- affected 55b2c1ccb82143be1ed9e1922976dbe63917fe68
- affected 089d475a4cdb5848998b3cb37e545413ed054784
- affected 695583334b6b7f82c39ee124edfbfa48145ed571
- affected 3404019d6d0f4c0108b77d44e97e2e39ca937e6f
- affected 4.4.203 – < 4.5
- affected 4.9.203 – < 4.10
- affected 4.14.156 – < 4.15
- affected 4.19.86 – < 4.20
- affected 4.20
- unaffected < 4.20
- unaffected 5.4.291 – ≤ 5.4.*
- unaffected 5.10.235 – ≤ 5.10.*
- unaffected 5.15.179 – ≤ 5.15.*
- unaffected 6.1.129 – ≤ 6.1.*
- unaffected 6.6.78 – ≤ 6.6.*
- unaffected 6.12.14 – ≤ 6.12.*
- unaffected 6.13.3 – ≤ 6.13.*
- unaffected 6.14 – ≤ *
References
References12
- https://git.kernel.org/stable/c/54c14022fa2ba427dc543455c2cf9225903a7174 (opens in a new tab)
- https://git.kernel.org/stable/c/dfb7b179741ee09506dc7719d92f9e1cea01f10e (opens in a new tab)
- https://git.kernel.org/stable/c/bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1 (opens in a new tab)
- https://git.kernel.org/stable/c/9a6d43844de2479a3ff8d674c3e2a16172e01598 (opens in a new tab)
- https://git.kernel.org/stable/c/4acf6bab775dbd22a9a799030a808a7305e01d63 (opens in a new tab)
- https://git.kernel.org/stable/c/404e5fd918a0b14abec06c7eca128f04c9b98e41 (opens in a new tab)
- https://git.kernel.org/stable/c/4a2c4e7265b8eed83c25d86d702cea06493cab18 (opens in a new tab)
- https://git.kernel.org/stable/c/3d6f83df8ff2d5de84b50377e4f0d45e25311c7a (opens in a new tab)
- https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html (opens in a new tab)
- https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-5212 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-58017)Record last updated .