Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2026-74449

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

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)

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 70839da6360500a82e4d5f78499284474cbed7c1 to < 70f5f4ddba0d2d89e77ec13b79cdcfbef33be0d9affected
  • 70839da6360500a82e4d5f78499284474cbed7c1 to < 23a541c31b45fa813b33269376f6bd53535429a8affected
  • 70839da6360500a82e4d5f78499284474cbed7c1 to < 1f93537881fd22712732a60ad12572a3fd40c0ecaffected
  • 70839da6360500a82e4d5f78499284474cbed7c1 to < f327e389c07cfc3a2f6ff54f6214e1a52d457edcaffected

Linux Linux

Default version status: affected

  • 6.11affected
  • 0 to < 6.11unaffected
  • 6.12.114 to ≤ 6.12.*unaffected
  • 6.18.57 to ≤ 6.18.*unaffected
  • 7.1.8 to ≤ 7.1.*unaffected
  • 7.2 to ≤ *unaffected

References