# CVE-2024-58017: printk: Fix signed integer overflow when defining LOG\_BUF\_LEN\_MAX

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-190
- **Published:** 2025-02-27T02:12:09.075Z
- **Modified:** 2026-11-05T21:17:39.127Z

## Who should check

- Anyone running Linux \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< 54c14022fa2ba427dc543455c2cf9225903a7174; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< dfb7b179741ee09506dc7719d92f9e1cea01f10e; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< 9a6d43844de2479a3ff8d674c3e2a16172e01598; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< 4acf6bab775dbd22a9a799030a808a7305e01d63; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< 404e5fd918a0b14abec06c7eca128f04c9b98e41; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< 4a2c4e7265b8eed83c25d86d702cea06493cab18; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< 3d6f83df8ff2d5de84b50377e4f0d45e25311c7a; 55b2c1ccb82143be1ed9e1922976dbe63917fe68; 089d475a4cdb5848998b3cb37e545413ed054784; …
- Anyone running Linux 4.20

## 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.

## Affected and fixed versions

- Linux: \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< 54c14022fa2ba427dc543455c2cf9225903a7174; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< dfb7b179741ee09506dc7719d92f9e1cea01f10e; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< 9a6d43844de2479a3ff8d674c3e2a16172e01598; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< 4acf6bab775dbd22a9a799030a808a7305e01d63; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< 404e5fd918a0b14abec06c7eca128f04c9b98e41; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< 4a2c4e7265b8eed83c25d86d702cea06493cab18; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< 3d6f83df8ff2d5de84b50377e4f0d45e25311c7a; 55b2c1ccb82143be1ed9e1922976dbe63917fe68; 089d475a4cdb5848998b3cb37e545413ed054784; … (cvelist)
- Linux: 4.20 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-58017. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-58017.md
Affected: Linux >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < 54c14022fa2ba427dc543455c2cf9225903a7174; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < dfb7b179741ee09506dc7719d92f9e1cea01f10e; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1; >= e6fe3e5b7d16e8f146a4ae7…
Fixed in: Linux 54c14022fa2ba427dc543455c2cf9225903a7174, Linux 9a6d43844de2479a3ff8d674c3e2a16172e01598, Linux 4acf6bab775dbd22a9a799030a808a7305e01d63, Linux 404e5fd918a0b14abec06c7eca128f04c9b98e41, Linux 4a2c4e7265b8eed83c25d86d702cea06493cab18, Linux 3d6f83df8ff2d5de84b50377e4f0d45e25311c7a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-58017 being exploited?

There is no confirmed exploitation: CVE-2024-58017 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-58017?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-58017?

Linux \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< 54c14022fa2ba427dc543455c2cf9225903a7174; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< dfb7b179741ee09506dc7719d92f9e1cea01f10e; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< 9a6d43844de2479a3ff8d674c3e2a16172e01598; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< 4acf6bab775dbd22a9a799030a808a7305e01d63; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< 404e5fd918a0b14abec06c7eca128f04c9b98e41; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< 4a2c4e7265b8eed83c25d86d702cea06493cab18; \>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, \< 3d6f83df8ff2d5de84b50377e4f0d45e25311c7a; 55b2c1ccb82143be1ed9e1922976dbe63917fe68; 089d475a4cdb5848998b3cb37e545413ed054784; …; Linux 4.20.

### Is there a fix for CVE-2024-58017?

Yes. Fixed in Linux 54c14022fa2ba427dc543455c2cf9225903a7174, Linux 9a6d43844de2479a3ff8d674c3e2a16172e01598, Linux 4acf6bab775dbd22a9a799030a808a7305e01d63, Linux 404e5fd918a0b14abec06c7eca128f04c9b98e41, Linux 4a2c4e7265b8eed83c25d86d702cea06493cab18, Linux 3d6f83df8ff2d5de84b50377e4f0d45e25311c7a. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-58017?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/9a6d43844de2479a3ff8d674c3e2a16172e01598>
- patch: <https://git.kernel.org/stable/c/4acf6bab775dbd22a9a799030a808a7305e01d63>
- patch: <https://git.kernel.org/stable/c/404e5fd918a0b14abec06c7eca128f04c9b98e41>
- patch: <https://git.kernel.org/stable/c/4a2c4e7265b8eed83c25d86d702cea06493cab18>
- patch: <https://git.kernel.org/stable/c/3d6f83df8ff2d5de84b50377e4f0d45e25311c7a>
- other: <https://git.kernel.org/stable/c/54c14022fa2ba427dc543455c2cf9225903a7174>
- other: <https://git.kernel.org/stable/c/dfb7b179741ee09506dc7719d92f9e1cea01f10e>
- other: <https://git.kernel.org/stable/c/bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-58017>

HTML: <https://flawdb.com/CVE-2024-58017> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-58017>
