CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's AMD display driver, specifically in the `calculate_mcache_setting` function, which can lead to a divide-by-zero panic when a zero-area viewport is processed. This flaw poses a risk of system instability and potential crashes, particularly in environments where graphics processing is critical. Organizations using Linux systems with AMD graphics should prioritize this update to mitigate the risk of unexpected failures.
Original NVD Description
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)