В ядре Linux была устранена следующая уязвимость: ASoC: dapm: Fix off-by-one check on the second enum channel The snd_soc_dapm_put_enum_double() отклоняет элемент[0], как только он достигает e->items, но позволяет элементу[1] быть равным ему. Оба идут к snd_soc_enum_item_to_val (), который индексирует e->values без собственной границы, поэтому enum с таблицей значений читает один элемент после конца. Индексация пришла с консолидацией MUX, что ослабило элемент [1] чека в том же куске.
Значение обработчика MUX, которое он удалил, использовалось там , а snd_soc_put_enum_double () в soc-ops.c по-прежнему. Только adav80x соединяет таблицу значений с двумя сдвигами, а его второй канал выглядит случайным, но управление сообщает о двух значениях. Запись трех в него читает конец adav80x_mux_values.
Ядро ловит, что только под CONFIG_SND_CTL_INPUT_VALIDATION, который по умолчанию.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ASoC: dapm: Fix off-by-one check on the second enum channel The snd_soc_dapm_put_enum_double() rejects item[0] once it reaches e->items, but it lets item[1] be equal to it. Both go on to snd_soc_enum_item_to_val(), which indexes e->values with no bound of its own, so an enum with a value table reads one element past the end. The indexing arrived with the MUX consolidation, which relaxed the item[1] check in the same hunk. The value MUX handler it deleted used >= there, and the snd_soc_put_enum_double() in soc-ops.c still does. Only adav80x pairs a value table with two shifts, and its second channel looks accidental, but the control does report two values. Writing three into it reads off the end of adav80x_mux_values. The core catches that only under CONFIG_SND_CTL_INPUT_VALIDATION, which defaults off.