Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-58017

MEDIUM 5.5EPSS 16%

printk: Fix signed integer overflow when defining LOG_BUF_LEN_MAX

Mitigation

  • No fix listed yet: follow the vendor advisory.

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

Vulnerability facts

Affected
Linux >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < 54c14022fa2ba427dc543455c2cf9225903a7174; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < dfb7b179741ee09506dc7719d92f9e1cea01f10e; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < 9a6d43844de2479a3ff8d674c3e2a16172e01598; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < 4acf6bab775dbd22a9a799030a808a7305e01d63; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < 404e5fd918a0b14abec06c7eca128f04c9b98e41; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < 4a2c4e7265b8eed83c25d86d702cea06493cab18; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < 3d6f83df8ff2d5de84b50377e4f0d45e25311c7a; 55b2c1ccb82143be1ed9e1922976dbe63917fe68; 089d475a4cdb5848998b3cb37e545413ed054784; …; Linux 4.20
Fixed in
Linux 54c14022fa2ba427dc543455c2cf9225903a7174, Linux 9a6d43844de2479a3ff8d674c3e2a16172e01598, Linux 4acf6bab775dbd22a9a799030a808a7305e01d63, Linux 404e5fd918a0b14abec06c7eca128f04c9b98e41, Linux 4a2c4e7265b8eed83c25d86d702cea06493cab18, Linux 3d6f83df8ff2d5de84b50377e4f0d45e25311c7a
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.31% chance of exploitation in 30 days (percentile 16, 2026-11-26)
CWE
CWE-190
Published
Modified

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

Package / productAffectedFixedSource
Linux>= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < 54c14022fa2ba427dc543455c2cf9225903a7174; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < dfb7b179741ee09506dc7719d92f9e1cea01f10e; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < 9a6d43844de2479a3ff8d674c3e2a16172e01598; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < 4acf6bab775dbd22a9a799030a808a7305e01d63; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < 404e5fd918a0b14abec06c7eca128f04c9b98e41; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < 4a2c4e7265b8eed83c25d86d702cea06493cab18; >= e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, < 3d6f83df8ff2d5de84b50377e4f0d45e25311c7a; 55b2c1ccb82143be1ed9e1922976dbe63917fe68; 089d475a4cdb5848998b3cb37e545413ed054784; …—cvelist
Linux4.20—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors