CVE-2026-74449 drm/amd/display: Fix divide-by-zero in calculate_mcache_setting on zero viewport
설명
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Fix divide-by-zero in calculate_mcache_setting on zero viewport If a plane reaches calculate_mcache_setting with a zero-area viewport, calculate_mcache_setting exits early with num_mcaches == 0 and mvmpg_width/height == 0. This will cause a divide-by-zero panic and can also cause an underflow on num_mcaches. Fix this by changing calculate_mcache_setting to bool and adding guards after each calculate_mcache_row_bytes call. If num_mcaches or mvmpg_width/height is zero, return a false. Callers will propagate the failure as a rejected mode, which prevents the panic. (cherry picked from commit 29c0f7c655f47bcbd575ff75e58480df6ec3c9da)
영향 받는 제품 제품 1개
-
해결 버전 있음
Linux
Linux
영향 받는 버전
- 6.11
해결 버전
- 6.11 미만
- 6.12.114 이상
- 6.18.57 이상
- 7.1.8 이상
참고 자료 4건
- git.kernel.org https://git.kernel.org/stable/c/1f93537881fd22712732a60ad12572a3fd40c0ec (새 창)
- git.kernel.org https://git.kernel.org/stable/c/23a541c31b45fa813b33269376f6bd53535429a8 (새 창)
- git.kernel.org https://git.kernel.org/stable/c/70f5f4ddba0d2d89e77ec13b79cdcfbef33be0d9 (새 창)
- git.kernel.org https://git.kernel.org/stable/c/f327e389c07cfc3a2f6ff54f6214e1a52d457edc (새 창)