В ядре Linux была устранена следующая уязвимость: mtdchar: fix integer overflow in read/write ioctls The "req.start» и «req.len» переменные — это значения u64, которые исходят от пользователя в начале функции. Мы маскируем высокие 32 бита «req.len», так что это ограничено U32_MAX, но переменная «req.start» может подняться до U64_MAX, что означает, что сложение все еще может быть переполнено целым. Используйте check_add_overflow(), чтобы исправить эту ошибку.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: mtdchar: fix integer overflow in read/write ioctls The "req.start" and "req.len" variables are u64 values that come from the user at the start of the function. We mask away the high 32 bits of "req.len" so that's capped at U32_MAX but the "req.start" variable can go up to U64_MAX which means that the addition can still integer overflow. Use check_add_overflow() to fix this bug.