В ядре Linux устранена следующая уязвимость:
Ввод: uinput — инициализировать нулевым значением uinput_ff_upload_compat, чтобы избежать утечки информации. Структура ff_effect_compat встроена внутрь дважды.
uinput_ff_upload_compat содержит внутреннее дополнение. В частности, там
это дыра после структуры ff_replay, чтобы удовлетворить требования выравнивания для
следующий член профсоюза.
Не очищая структуру,
copy_to_user() может привести к утечке данных стека в пространство пользователя. Инициализируйте ff_up_compat равным нулю перед заполнением допустимых полей.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: Input: uinput - zero-initialize uinput_ff_upload_compat to avoid info leak Struct ff_effect_compat is embedded twice inside uinput_ff_upload_compat, contains internal padding. In particular, there is a hole after struct ff_replay to satisfy alignment requirements for the following union member. Without clearing the structure, copy_to_user() may leak stack data to userspace. Initialize ff_up_compat to zero before filling valid fields.