В ядре Linux устранена следующая уязвимость:
hwmon: (powerz) Исправлено использование после освобождения при отключении USB.
После того, как powerz_disconnect() освобождает URB и освобождает мьютекс,
последующий вызов powerz_read() может получить мьютекс и вызвать
powerz_read_data(), который разыменовывает освобожденный указатель URB.
Исправить:
— Установка priv->urb в NULL в powerz_disconnect(), чтобы
powerz_read_data() может обнаружить состояние отключения.
— Добавление проверки !priv->urb в начале powerz_read_data().
чтобы вернуть -ENODEV на отключенном устройстве.
— Перемещение usb_set_intfdata() перед регистрацией hwmon, чтобы
Обработчик отключения всегда может найти указатель priv.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: hwmon: (powerz) Fix use-after-free on USB disconnect After powerz_disconnect() frees the URB and releases the mutex, a subsequent powerz_read() call can acquire the mutex and call powerz_read_data(), which dereferences the freed URB pointer. Fix by: - Setting priv->urb to NULL in powerz_disconnect() so that powerz_read_data() can detect the disconnected state. - Adding a !priv->urb check at the start of powerz_read_data() to return -ENODEV on a disconnected device. - Moving usb_set_intfdata() before hwmon registration so the disconnect handler can always find the priv pointer.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
— |
6.12.83
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.24
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
6.19.14
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
7.0
|
7.0.1
|