В ядре Linux была устранена следующая уязвимость: gpu: host1x: Avoid stack over-read in debug output helpers host1x_debug_output() and host1x_debug_cont() used vsnprintf(), который возвращает длину форматированной строки, достигаемой с неограниченным буфером. Это возвращаемое значение было передано непосредственно o->fn в виде количества байтов для излучения. Это может привести к прочитанию конца выходного буфера, если вызов host1x_debug_* произведет строку длиннее 256 байт.
Это повлияло только на файлы debugfs, так как раковина отладки printk игнорирует количество байтов. На практике это маловероятно. Исправьте, переключившись на vscnprintf (), который возвращает количество фактически записанных байтов.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: gpu: host1x: Avoid stack over-read in debug output helpers host1x_debug_output() and host1x_debug_cont() used vsnprintf(), which returns the length the formatted string would have reached with an unbounded buffer. That return value was passed straight to o->fn as the number of bytes to emit. This could cause a read past end of the output buffer if a call to host1x_debug_* produced a string longer than 256 bytes. This only affected the debugfs files as the printk debug sink ignores the number of bytes. In practice, this is very unlikely to occur. Fix by switching to vscnprintf(), which returns the number of bytes actually written.