CVE-2024-58017
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-tools-devel | Amazon Linux | 6.1.129-138.220.amzn2023 |
| kernel-livepatch-6.1.129-138.220 | Amazon Linux | 1.0-0.amzn2023 |
| kernel-headers | Amazon Linux | 6.1.129-138.220.amzn2023 |
| kernel | Amazon Linux | 6.1.129-138.220.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 6.1.129-138.220.amzn2023 |
| kernel-modules-extra | Amazon Linux | 6.1.129-138.220.amzn2023 |
| linux_kernel | linux | 6.13.3, 6.12.14, 6.6.78, 6.1.129 |
| Linux | Linux | 4acf6bab775dbd22a9a799030a808a7305e01d63, 4a2c4e7265b8eed83c25d86d702cea06493cab18, 404e5fd918a0b14abec06c7eca128f04c9b98e41, 4.20, 4.15, 4.10, 4.5, 3d6f83df8ff2d5de84b50377e4f0d45e25311c7a |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e, e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e |
| Linux | Linux | 4.20, 0, 5.4.291 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-livepatch-6.1.129-138.220 | 0 |
| amazon:2023 | kernel-headers | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| Linux | Linux | 0, 5.4.291, 5.10.235 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| linux | linux_kernel | 4.19.86, 4.20, 4.20 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-tools | 0 |
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