CVE-2026-74449 PUBLISHED

drm/amd/display: Fix divide-by-zero in calculate_mcache_setting on zero viewport

Assigner: Linux
Reserved: 15.08.2026 Published: 15.08.2026 Updated: 15.08.2026

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)

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 1f93537881fd22712732a60ad12572a3fd40c0ec (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to f327e389c07cfc3a2f6ff54f6214e1a52d457edc (excl.)
  • affected from 0 to 7.1.8 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • unaffected from 7.1.8 to 7.1.* (incl.)
  • unaffected from 7.2-rc6 to * (incl.)

References