В ядре Linux устранена следующая уязвимость: Отменить «hwmon: (ibmpex) исправить использование после освобождения в хранилище с высоким/низким уровнем» Это отменяет фиксацию 6946c726c3f4c36f0f049e6f97e88c510b15f65d. Жан Дельвар отмечает, что патч не полностью исправить сообщенную проблему, которая на самом деле приводит к (новое) состояние гонки, и что оно может фактически не понадобиться в первое место. Различные обзоры ИИ совпадают.
Конкретные и актуальные отзывы ИИ:
"
Это изменение порядка устанавливает для данных драйвера значение NULL перед снятием датчика.
атрибуты в цикле ниже.
ibmpex_show_sensor() получает данные этого драйвера через dev_get_drvdata(), но
не проверяет, является ли он NULL, прежде чем разыменовывать его для доступа
данные->датчики[]. Если процесс пользовательского пространства считывает файл датчика (например, temp1_input) во время этого
функция удаления запущена, может ли она соревноваться с dev_set_drvdata(...,
NULL) позвоните сюда и произойдет сбой в ibmpex_show_sensor()?
Было бы безопаснее сохранить первоначальный порядок, в котором находится device_remove_file()?
вызывается перед очисткой данных драйвера? device_remove_file() должен подождать
для завершения любых активных обратных вызовов sysfs, что уже может помешать
use-after-free этот патч намерен исправить.
"
Верните проблемный патч. Если можно доказать, что первоначально сообщалось
предполагаемое состояние гонки действительно существует, его всегда можно ввести повторно
с полным исправлением.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: Revert "hwmon: (ibmpex) fix use-after-free in high/low store" This reverts commit 6946c726c3f4c36f0f049e6f97e88c510b15f65d. Jean Delvare points out that the patch does not completely fix the reported problem, that it in fact introduces a (new) race condition, and that it may actually not be needed in the first place. Various AI reviews agree. Specific and relevant AI feedback: " This reordering sets the driver data to NULL before removing the sensor attributes in the loop below. ibmpex_show_sensor() retrieves this driver data via dev_get_drvdata() but does not check if it is NULL before dereferencing it to access data->sensors[]. If a userspace process reads a sensor file (like temp1_input) while this delete function is running, could it race with the dev_set_drvdata(..., NULL) call here and crash in ibmpex_show_sensor()? Would it be safer to keep the original order where device_remove_file() is called before clearing the driver data? device_remove_file() should wait for any active sysfs callbacks to complete, which might already prevent the use-after-free this patch intends to fix. " Revert the offending patch. If it can be shown that the originally reported alleged race condition does indeed exist, it can always be re-introduced with a complete fix.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 14
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.10.248
|
5.10.252
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.1.160
|
6.1.165
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.6.120
|
6.6.128
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.12.64
|
6.12.75
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.18.3
|
6.18.14
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19.1
|
6.19.4
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:-:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc5:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc6:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc7:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc8:*:*:*:*:*:*
|
— | — |