В ядре Linux была устранена следующая уязвимость: drm/sysfb: ofdrm: Fix integer overflow in fb_size Вычисление размера framebuffer fb_size linebytes * height может переполнять, когда оба значения велики (например, 46341 * 46341 > INT_MAX). Поскольку линейные байты и высота являются типами int, умножение выполняется как int * int, что приводит к неопределенному поведению при переполнении. Используйте check_mul_overflow() для обнаружения и предотвращения этого переполнения, в соответствии с подходом, используемым в simpledrm.c и corebootdrm.c.
Показать оригинальное описание (EN)
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.
Характеристики атаки
Последствия
Строка CVSS v3.1