drm/sysfb: ofdrm: Fix integer overflow in fb_size calculation
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ded6ad826fe0fd059333d3a3b3e1742c8e45ff41, Kernel 0cec951667a624fafaca2695c46042f45851caec, Kernel 711fe7949d37656a5586244afee9523b9e5e37e9 and 6 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=c8a17756c42581ba1a567d1dd3b69e8f5619a7d8 <ded6ad826fe0fd059333d3a3b3e1742c8e45ff41, >=c8a17756c42581ba1a567d1dd3b69e8f5619a7d8 <0cec951667a624fafaca2695c46042f45851caec, >=c8a17756c42581ba1a567d1dd3b69e8f5619a7d8 <711fe7949d37656a5586244afee9523b9e5e37e9, >=c8a17756c42581ba1a567d1dd3b69e8f5619a7d8 <c6f48e59ece0123f6a11527ad4d89b21c2d65b87, >=c8a17756c42581ba1a567d1dd3b69e8f5619a7d8 <d9daf9a6e7a6f82ef338a09386eefc6807100d3f, =6.2 | ded6ad826fe0fd059333d3a3b3e1742c8e45ff41, 0cec951667a624fafaca2695c46042f45851caec, 711fe7949d37656a5586244afee9523b9e5e37e9, c6f48e59ece0123f6a11527ad4d89b21c2d65b87, d9daf9a6e7a6f82ef338a09386eefc6807100d3f |
| linux-kernel: Kernel | >=6.19.0 <7.2.5, >=6.2.0 <6.6.160, >=6.7.0 <6.12.112, >=6.13.0 <6.18.51 | 7.2.5, 6.6.160, 6.12.112, 6.18.51 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket