Junglewise Threat Intelligence

CVE-2025-38312: Linux Kernel division by zero in fbdev fb_cvt_hperiod

CVE-2025-38312 · Severity: medium · CVSS 5.5 · Published 2025-07-10

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's display driver core could allow a local user to crash the system. The issue occurs when the system processes specific video timing parameters, leading to a mathematical error that stops the operating system. This could result in a denial-of-service, impacting system availability and ongoing operations.

Technical details

A division-by-zero vulnerability exists in the fbdev core within the fb_cvt_hperiod() function. In fb_find_mode_cvt(), if the mode refresh rate is set to 0x80000000, an integer overflow occurs when the value is multiplied by 2, resulting in cvt.f_refresh becoming 0. This zero value is subsequently used as a divisor in fb_cvt_hperiod(), triggering a kernel oops. The vulnerability is reachable by local users with sufficient privileges to modify or set video modes. Patches have been released across multiple stable kernel branches to add a sanity check for cvt.f_refresh.

Affected products

  • Linux Linux Kernel 2.6.14 to 5.4.295, 5.5 to 5.10.239, 5.11 to 5.15.186, 5.16 to 6.1.142, 6.2 to 6.6.94, 6.7 to 6.12.34, 6.13 to 6.15.3

Timeline

  • 2025-07-10: disclosed
  • 2025-07-10: advisory
  • 2025-05-31: patched: Initial patch in main kernel tree

References

Related threats