В ядре Linux устранена следующая уязвимость:
светодиоды: триггер: отмените регистрацию атрибутов sysfs перед вызовом deactivate()
Триггеры, имеющие определенные атрибуты sysfs, обычно хранят
связанные данные в данных триггера, выделенных обратным вызовом active() и
освобождается обратным вызовом deactivate(). Вызов device_remove_groups() после вызова deactivate() оставляет окно
где атрибуты sysfs показывают/сохраняют функции, которые могут быть вызваны после
деактивацию, а затем работать с только что освобожденными данными триггера. Переместите вызов device_remove_groups() перед deactivate(), чтобы закрыть
это окно гонки.
Это также заставляет путь деактивации правильно выполнять действия в обратном порядке.
пути активации, который вызывает обратный вызов active() перед вызовом
device_add_groups().
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: leds: trigger: Unregister sysfs attributes before calling deactivate() Triggers which have trigger specific sysfs attributes typically store related data in trigger-data allocated by the activate() callback and freed by the deactivate() callback. Calling device_remove_groups() after calling deactivate() leaves a window where the sysfs attributes show/store functions could be called after deactivation and then operate on the just freed trigger-data. Move the device_remove_groups() call to before deactivate() to close this race window. This also makes the deactivation path properly do things in reverse order of the activation path which calls the activate() callback before calling device_add_groups().
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.19
|
4.19.320
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.20
|
5.4.282
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.5
|
5.10.224
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.15.165
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.1.103
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.44
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.10.3
|