# CVE-2026-74449: drm/amd/display: Fix divide-by-zero in calculate_mcache_setting on zero viewport

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-08-15T12:26:54.519Z
- Modified: 2026-10-21T13:19:44.547Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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)

(As written by CVE List.)

## Affected

- Linux Linux: from 70839da6360500a82e4d5f78499284474cbed7c1 before 70f5f4ddba0d2d89e77ec13b79cdcfbef33be0d9; from 70839da6360500a82e4d5f78499284474cbed7c1 before 23a541c31b45fa813b33269376f6bd53535429a8; from 70839da6360500a82e4d5f78499284474cbed7c1 before 1f93537881fd22712732a60ad12572a3fd40c0ec; from 70839da6360500a82e4d5f78499284474cbed7c1 before f327e389c07cfc3a2f6ff54f6214e1a52d457edc; 6.11 (not affected: before 6.11; from 6.12.114 up to 6.12.*; from 6.18.57 up to 6.18.*; from 7.1.8 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/70f5f4ddba0d2d89e77ec13b79cdcfbef33be0d9>
- <https://git.kernel.org/stable/c/23a541c31b45fa813b33269376f6bd53535429a8>
- <https://git.kernel.org/stable/c/1f93537881fd22712732a60ad12572a3fd40c0ec>
- <https://git.kernel.org/stable/c/f327e389c07cfc3a2f6ff54f6214e1a52d457edc>

## Sources

- CVE List: [CVE-2026-74449](https://www.cve.org/CVERecord?id=CVE-2026-74449), CVE Terms of Use, modified 2026-10-21
- NVD: [CVE-2026-74449](https://nvd.nist.gov/vuln/detail/CVE-2026-74449), Public domain, modified 2026-10-21

---

Page: https://cve.day/CVE-2026-74449 · Whole record: https://cve.day/CVE-2026-74449.json · Rebuilt by cve.day 2026-11-25T22:59:33.218Z
