{"id":"CVE-2024-58017","summary":"printk: Fix signed integer overflow when defining LOG_BUF_LEN_MAX","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nprintk: Fix signed integer overflow when defining LOG_BUF_LEN_MAX\n\nShifting 1 \u003c\u003c 31 on a 32-bit int causes signed integer overflow, which\nleads to undefined behavior. To prevent this, cast 1 to u32 before\nperforming the shift, ensuring well-defined behavior.\n\nThis change explicitly avoids any potential overflow by ensuring that\nthe shift occurs on an unsigned 32-bit integer.","modified":"2026-04-02T12:25:28.831934Z","published":"2025-02-27T02:12:09.075Z","related":["SUSE-SU-2025:01600-1","SUSE-SU-2025:01919-1","SUSE-SU-2025:1177-1","SUSE-SU-2025:1178-1","SUSE-SU-2025:1180-1","SUSE-SU-2025:20190-1","SUSE-SU-2025:20192-1","SUSE-SU-2025:20260-1","SUSE-SU-2025:20270-1","USN-7521-2"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58017.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3d6f83df8ff2d5de84b50377e4f0d45e25311c7a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/404e5fd918a0b14abec06c7eca128f04c9b98e41"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4a2c4e7265b8eed83c25d86d702cea06493cab18"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4acf6bab775dbd22a9a799030a808a7305e01d63"},{"type":"WEB","url":"https://git.kernel.org/stable/c/54c14022fa2ba427dc543455c2cf9225903a7174"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9a6d43844de2479a3ff8d674c3e2a16172e01598"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dfb7b179741ee09506dc7719d92f9e1cea01f10e"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58017.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58017"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e"},{"fixed":"54c14022fa2ba427dc543455c2cf9225903a7174"},{"fixed":"dfb7b179741ee09506dc7719d92f9e1cea01f10e"},{"fixed":"bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1"},{"fixed":"9a6d43844de2479a3ff8d674c3e2a16172e01598"},{"fixed":"4acf6bab775dbd22a9a799030a808a7305e01d63"},{"fixed":"404e5fd918a0b14abec06c7eca128f04c9b98e41"},{"fixed":"4a2c4e7265b8eed83c25d86d702cea06493cab18"},{"fixed":"3d6f83df8ff2d5de84b50377e4f0d45e25311c7a"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"55b2c1ccb82143be1ed9e1922976dbe63917fe68"},{"last_affected":"089d475a4cdb5848998b3cb37e545413ed054784"},{"last_affected":"695583334b6b7f82c39ee124edfbfa48145ed571"},{"last_affected":"3404019d6d0f4c0108b77d44e97e2e39ca937e6f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-58017.json"}}],"schema_version":"1.7.5"}