Junglewise Threat Intelligence

CVE-2024-49892: Linux Kernel AMD Display Driver divide by zero in DCN component

CVE-2024-49892 · Severity: medium · CVSS 5.5 · Published 2024-10-21

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's AMD display driver could allow a local user to cause a system crash. The issue stems from a mathematical error where the system attempts to divide by zero during display calculations. This primarily impacts system availability, potentially leading to a denial-of-service on affected machines using AMD graphics hardware.

Technical details

A divide-by-zero vulnerability exists in the AMD Display Core (DC) component of the Linux kernel DRM driver. Specifically, the function 'get_bytes_per_element' in 'display_rq_dlg_calc' (versions 20v2 and 21) could return a default value of 0. When this return value is subsequently used as a denominator in display-related calculations (such as bytes_per_element_y or bytes_per_element_c), it triggers a kernel panic. The fix involves initializing the default return value to 1 to ensure it is never zero. This issue was identified via Coverity static analysis and affects multiple stable kernel branches. An attacker with local access could potentially trigger this condition to cause a denial-of-service.

Affected products

  • Linux Linux Kernel up to 5.10.227, 5.11 to 5.15.168, 5.16 to 6.1.113, 6.2 to 6.6.55, 6.7 to 6.10.14, 6.11 to 6.11.3

Timeline

  • 2024-07-15: other: Patch authored
  • 2024-10-21: disclosed: CVE published
  • 2024-10-25: advisory: NIST analysis completed

References

Related threats