В ядре Linux устранена следующая уязвимость:
ALSA: ядро: исправлено назначение нулевого указателя модуля при инициализации карты. Коммит 81033c6b584b («ALSA: ядро: предупреждение о пустом модуле»)
введен WARN_ON() для указателя NULL модуля, переданного в snd_card
создание объекта, а также оборачивает его код с помощью '#ifdef
МОДУЛЬ». В большинстве случаев это работает, но черти всегда внутри.
детали. «МОДУЛЬ» определяется, когда целевой код (т. е. звук
ядро) построено как модуль; но это не значит, что звонящий
также встроенный или нет.
А именно, когда встроено только звуковое ядро
(CONFIG_SND=y), если драйвер является модулем (CONFIG_SND_USB_AUDIO=m),
переданный указатель модуля игнорируется, даже если он не равен NULL, и
card->module остается NULL. Это приведет к отсутствию модуля
вверх/вниз при открытии/закрытии устройства, что приводит к гонке с
выполнение кода после удаления модуля. Для устранения ошибки снова переместите назначение карты->модуля.
из ifdef. WARN_ON() все еще заключен в ifdef, потому что
модуль может иметь значение NULL, если все звуковые драйверы встроены.
Обратите внимание, что мы сохраняем ifdef MODULE для WARN_ON(), иначе это будет
привести к ложноположительной проверке модуля NULL. Правда, не поймает
идеально, т. е. проверка не выполняется, если CONFIG_SND=y. Но это нет
реальная проблема, так как это только для отладки, и состояние довольно
редкость.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ALSA: core: Fix NULL module pointer assignment at card init The commit 81033c6b584b ("ALSA: core: Warn on empty module") introduced a WARN_ON() for a NULL module pointer passed at snd_card object creation, and it also wraps the code around it with '#ifdef MODULE'. This works in most cases, but the devils are always in details. "MODULE" is defined when the target code (i.e. the sound core) is built as a module; but this doesn't mean that the caller is also built-in or not. Namely, when only the sound core is built-in (CONFIG_SND=y) while the driver is a module (CONFIG_SND_USB_AUDIO=m), the passed module pointer is ignored even if it's non-NULL, and card->module remains as NULL. This would result in the missing module reference up/down at the device open/close, leading to a race with the code execution after the module removal. For addressing the bug, move the assignment of card->module again out of ifdef. The WARN_ON() is still wrapped with ifdef because the module can be really NULL when all sound drivers are built-in. Note that we keep 'ifdef MODULE' for WARN_ON(), otherwise it would lead to a false-positive NULL module check. Admittedly it won't catch perfectly, i.e. no check is performed when CONFIG_SND=y. But, it's no real problem as it's only for debugging, and the condition is pretty rare.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 6
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.9
|
5.10.219
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.15.161
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.1.93
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.33
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.8.12
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.9
|
6.9.3
|