CVE-2026-89806: drm/sysfb: ofdrm: Fix integer overflow in fb_size calculation
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/sysfb: ofdrm: Fix integer overflow in fb_size calculation
The framebuffer size calculation fb_size = linebytes * height can overflow when both values are large (e.g., 46341 * 46341 > INT_MAX). Since linebytes and height are both int types, the multiplication is performed as int * int, which results in undefined behavior on overflow.
Use check_mul_overflow() to detect and prevent this overflow, consistent with the approach used in simpledrm.c and corebootdrm.c.
The Linux kernel CVE team has assigned CVE-2026-89806 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.2 with commit c8a17756c42581ba1a567d1dd3b69e8f5619a7d8 and fixed in 6.18.51 with commit ded6ad826fe0fd059333d3a3b3e1742c8e45ff41 Issue introduced in 6.2 with commit c8a17756c42581ba1a567d1dd3b69e8f5619a7d8 and fixed in 7.2.5 with commit d9daf9a6e7a6f82ef338a09386eefc6807100d3f Issue introduced in 6.2 with commit c8a17756c42581ba1a567d1dd3b69e8f5619a7d8 and fixed in 7.3-rc2 with commit c6f48e59ece0123f6a11527ad4d89b21c2d65b87
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-89806
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/gpu/drm/sysfb/ofdrm.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/ded6ad826fe0fd059333d3a3b3e1742c8e45ff41 https://git.kernel.org/stable/c/d9daf9a6e7a6f82ef338a09386eefc6807100d3f https://git.kernel.org/stable/c/c6f48e59ece0123f6a11527ad4d89b21c2d65b87