VDB

CVE-2024-58017

CVE-2024-58017 PUBLISHED

printk: Fix signed integer overflow when defining LOG_BUF_LEN_MAX

Reported by linux · Published February 27, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-tools-develAmazon Linux6.1.129-138.220.amzn2023
kernel-livepatch-6.1.129-138.220Amazon Linux1.0-0.amzn2023
kernel-headersAmazon Linux6.1.129-138.220.amzn2023
kernelAmazon Linux6.1.129-138.220.amzn2023
kernel-modules-extra-commonAmazon Linux6.1.129-138.220.amzn2023
kernel-modules-extraAmazon Linux6.1.129-138.220.amzn2023
linux_kernellinux6.13.3, 6.12.14, 6.6.78, 6.1.129
LinuxLinux4acf6bab775dbd22a9a799030a808a7305e01d63, 4a2c4e7265b8eed83c25d86d702cea06493cab18, 404e5fd918a0b14abec06c7eca128f04c9b98e41, 4.20, 4.15, 4.10, 4.5, 3d6f83df8ff2d5de84b50377e4f0d45e25311c7a

Affected products

VendorProductVersions
LinuxLinuxe6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e
LinuxLinux4.20, 0, 5.4.291
amazon:2023kernel-tools-devel0
amazon:2023kernel-livepatch-6.1.129-138.2200
amazon:2023kernel-headers0
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0
amazon:2023kernel0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-modules-extra0
LinuxLinux0, 5.4.291, 5.10.235
amazon:2023bpftool0
amazon:2023kernel-libbpf0
amazon:2023kernel-devel0
amazon:2023kernel-libbpf-static0
linuxlinux_kernel4.19.86, 4.20, 4.20
amazon:2023python3-perf0
amazon:2023perf0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-tools0

Timeline

  • Feb 27, 2025 CVE Published
  • Mar 4, 2025 Coalition ESS Score (10 in total, the first dated here)
  • Mar 14, 2025 EPSS Score (29 in total, the first dated here)
  • Dec 29, 2025 Security Advisory (389 in total, the first dated here)
  • Apr 29, 2026 Distribution Patch (344 in total, the first dated here)
  • Nov 11, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-58017
vulnetix vdb fixes CVE-2024-58017

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-58017/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›