Vulnerabilities · 2024 · Linux
CVE-2024-58017
Linux Kernel vulnerability
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 products
Linux Kernel. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linux Kernel runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.kernel.org/stable/c/3d6f83df8ff2d5de84b50377e4f0d45e25311c7a · Patch
- git.kernel.org/stable/c/404e5fd918a0b14abec06c7eca128f04c9b98e41 · Patch
- git.kernel.org/stable/c/4a2c4e7265b8eed83c25d86d702cea06493cab18 · Patch
- git.kernel.org/stable/c/4acf6bab775dbd22a9a799030a808a7305e01d63 · Patch
- git.kernel.org/stable/c/9a6d43844de2479a3ff8d674c3e2a16172e01598 · Patch
- git.kernel.org/stable/c/54c14022fa2ba427dc543455c2cf9225903a7174
- git.kernel.org/stable/c/bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1
- git.kernel.org/stable/c/dfb7b179741ee09506dc7719d92f9e1cea01f10e
- nvd.nist.gov/vuln/detail/CVE-2024-58017
- cve.org/CVERecord?id=CVE-2024-58017
More vulnerabilities in Linux products
CVE-2026-46300CVE-2025-40364CVE-2025-40325CVE-2025-40300CVE-2025-40114CVE-2025-40014CVE-2025-39989CVE-2025-39967All 12,086
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.