CVE-2024-58017
printk: Fix signed integer overflow when defining LOG_BUF_LEN_MAX
Check your servers for CVE-2024-58017
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-58017 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 18.5% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, before 54c14022fa2ba427dc543455c2cf9225903a7174 affected from e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, before dfb7b179741ee09506dc7719d92f9e1cea01f10e affected from e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, before bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1 affected from e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, before 9a6d43844de2479a3ff8d674c3e2a16172e01598 affected from e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, before 4acf6bab775dbd22a9a799030a808a7305e01d63 affected from e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, before 404e5fd918a0b14abec06c7eca128f04c9b98e41 affected from e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, before 4a2c4e7265b8eed83c25d86d702cea06493cab18 affected from e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, before 3d6f83df8ff2d5de84b50377e4f0d45e25311c7a affected 55b2c1ccb82143be1ed9e1922976dbe63917fe68 affected 089d475a4cdb5848998b3cb37e545413ed054784 affected 695583334b6b7f82c39ee124edfbfa48145ed571 affected 3404019d6d0f4c0108b77d44e97e2e39ca937e6f affected from 4.4.203, before 4.5 affected from 4.9.203, before 4.10 affected from 4.14.156, before 4.15 affected from 4.19.86, before 4.20
Other versions: unaffected
|
| Linux |
affected 4.20 unaffected before 4.20 unaffected from 5.4.291 up to and including 5.4.* unaffected from 5.10.235 up to and including 5.10.* unaffected from 5.15.179 up to and including 5.15.* unaffected from 6.1.129 up to and including 6.1.* unaffected from 6.6.78 up to and including 6.6.* unaffected from 6.12.14 up to and including 6.12.* unaffected from 6.13.3 up to and including 6.13.* unaffected 6.14 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-58017 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-58017
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-58017
trivy image --scanners vuln IMAGE | grep CVE-2024-58017
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/54c14022fa2ba427dc543455c2cf9225903a7174 git.kernel.org
- https://git.kernel.org/stable/c/dfb7b179741ee09506dc7719d92f9e1cea01f10e git.kernel.org
- https://git.kernel.org/stable/c/bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1 git.kernel.org
- https://git.kernel.org/stable/c/9a6d43844de2479a3ff8d674c3e2a16172e01598 git.kernel.org
- https://git.kernel.org/stable/c/4acf6bab775dbd22a9a799030a808a7305e01d63 git.kernel.org
- https://git.kernel.org/stable/c/404e5fd918a0b14abec06c7eca128f04c9b98e41 git.kernel.org
- https://git.kernel.org/stable/c/4a2c4e7265b8eed83c25d86d702cea06493cab18 git.kernel.org
- https://git.kernel.org/stable/c/3d6f83df8ff2d5de84b50377e4f0d45e25311c7a git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html cert-portal.siemens.com
Source: the record CVE-2024-58017 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse