CVE-2025-38312

Updated on 10 Jul 2025

Severity

5.5 Medium severity

Details

CVSS score
5.5
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Overview

About vulnerability

In the Linux kernel, the following vulnerability has been resolved:

fbdev: core: fbcvt: avoid division by 0 in fb_cvt_hperiod()

In fb_find_mode_cvt(), iff mode->refresh somehow happens to be 0x80000000, cvt.f_refresh will become 0 when multiplying it by 2 due to overflow. It’s then passed to fb_cvt_hperiod(), where it’s used as a divider – division by 0 will result in kernel oops. Add a sanity check for cvt.f_refresh to avoid such overflow…

Found by Linux Verification Center (linuxtesting.org) with the Svace static analysis tool.

Details

Affected packages:
kernel @ 5.14.0 (+15 more)

In the Linux kernel, the following vulnerability has been resolved:

fbdev: core: fbcvt: avoid division by 0 in fb_cvt_hperiod()

In fb_find_mode_cvt(), iff mode->refresh somehow happens to be 0x80000000, cvt.f_refresh will become 0 when multiplying it by 2 due to overflow. It’s then passed to fb_cvt_hperiod(), where it’s used as a divider – division by 0 will result in kernel oops. Add a sanity check for cvt.f_refresh to avoid such overflow…

Found by Linux Verification Center (linuxtesting.org) with the Svace static analysis tool.

Fixes