CVE-2024-58017 printk: Fix signed integer overflow when defining LOG_BUF_LEN_MAX
설명
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.
영향 받는 제품 제품 1개
-
해결 버전 있음
Linux
Linux
영향 받는 버전
- 4.4.203 이상 4.5 미만
- 4.9.203 이상 4.10 미만
- 4.14.156 이상 4.15 미만
- 4.19.86 이상 4.20 미만
- 4.20
해결 버전
- 4.5 이상
- 4.10 이상
- 4.15 이상
- 4.20 이상
- 4.20 미만
- 5.4.291 이상
- 5.10.235 이상
- 5.15.179 이상
외 4개 구간 펼치기
- 6.1.129 이상
- 6.6.78 이상
- 6.12.14 이상
- 6.13.3 이상
참고 자료 8건
- git.kernel.org https://git.kernel.org/stable/c/3d6f83df8ff2d5de84b50377e4f0d45e25311c7a (새 창)
- git.kernel.org https://git.kernel.org/stable/c/404e5fd918a0b14abec06c7eca128f04c9b98e41 (새 창)
- git.kernel.org https://git.kernel.org/stable/c/4a2c4e7265b8eed83c25d86d702cea06493cab18 (새 창)
- git.kernel.org https://git.kernel.org/stable/c/4acf6bab775dbd22a9a799030a808a7305e01d63 (새 창)
- git.kernel.org https://git.kernel.org/stable/c/54c14022fa2ba427dc543455c2cf9225903a7174 (새 창)
- git.kernel.org https://git.kernel.org/stable/c/9a6d43844de2479a3ff8d674c3e2a16172e01598 (새 창)
- git.kernel.org https://git.kernel.org/stable/c/bb8ff054e19fe27f4e5eaac1b05e462894cfe9b1 (새 창)
- git.kernel.org https://git.kernel.org/stable/c/dfb7b179741ee09506dc7719d92f9e1cea01f10e (새 창)