Bug 2379184 (CVE-2025-38312) - CVE-2025-38312 kernel: fbdev: core: fbcvt: avoid division by 0 in fb_cvt_hperiod()
Summary: CVE-2025-38312 kernel: fbdev: core: fbcvt: avoid division by 0 in fb_cvt_hper...
Keywords:
Status: NEW
Alias: CVE-2025-38312
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-10 08:02 UTC by OSIDB Bzimport
Modified: 2025-07-11 11:19 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-07-10 08:02:15 UTC
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.

Comment 1 Avinash Hanwate 2025-07-11 11:10:24 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025071015-CVE-2025-38312-8693@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.