CVE-2024-58017
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.
How to fix
- linux linux_kernel6.1.129, 6.6.78, 6.12.14, 6.13.3 or later
- git.kernel.org/stable/c/3d6f83df8ff2d5de84b50377e4f0d45e25311c7a
- git.kernel.org/stable/c/404e5fd918a0b14abec06c7eca128f04c9b98e41
- git.kernel.org/stable/c/4a2c4e7265b8eed83c25d86d702cea06493cab18
- git.kernel.org/stable/c/4acf6bab775dbd22a9a799030a808a7305e01d63
- git.kernel.org/stable/c/9a6d43844de2479a3ff8d674c3e2a16172e01598
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| linux linux_kernel | v < 6.1.129, 6.2 ≤ v < 6.6.78, 6.7 ≤ v < 6.12.14, 6.13 ≤ v < 6.13.3 | 6.1.129, 6.6.78, 6.12.14, 6.13.3 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.