В ядре Linux устранена следующая уязвимость:
char: tlclk: исправлено использование после освобождения в tlclk_cleanup()
Этот патч улучшает процесс очистки модуля в драйвере tlclk.
предотвратить потенциальное использование после освобождения и условия гонки. В настоящее время структура file_operations не указывает .owner.
поле, которое может позволить выгрузить модуль, пока он находится в пользовательском пространстве.
процессы все еще взаимодействуют с устройством. Кроме того,
Функция tlclk_cleanup() освобождает память Alarm_events перед обеспечением
что заблокированные процессы в очереди ожидания полностью пробуждаются и что
Switchover_timer завершен.
Для решения этих случаев этот патч:
- Устанавливает '.owner = THIS_MODULE' в tlclk_fops для безопасной отсрочки модуля.
разгрузка во время использования устройства.
- Обновлена функция tlclk_cleanup() для явного пробуждения всех заблокированных читателей.
(wake_up_all), правильно освободить аппаратные области ввода-вывода и безопасно
удалите таймер (timer_delete_sync) перед освобождением памяти.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: char: tlclk: fix use-after-free in tlclk_cleanup() This patch improves the module cleanup process in the tlclk driver to prevent potential use-after-free and race conditions. Currently, the file_operations structure does not specify the .owner field, which could allow the module to be unloaded while user-space processes are still interacting with the device. Additionally, the tlclk_cleanup() function frees the alarm_events memory before ensuring that blocked processes in the waitqueue are fully awakened and that the switchover_timer has completed. To address these cases, this patch: - Sets '.owner = THIS_MODULE' in tlclk_fops to safely defer module unloading while the device is in use. - Updates tlclk_cleanup() to explicitly wake up all blocked readers (wake_up_all), properly release hardware I/O regions, and safely delete the timer (timer_delete_sync) prior to freeing memory.
Характеристики атаки
Последствия
Строка CVSS v3.1