В ядре Linux устранена следующая уязвимость:
трассировка/таймерлат: очищать таймер только в том случае, если существует kthread. Трассировщик timerlat может использовать потоки пользовательского пространства для проверки osnoise и
задержка таймера. Если программа, использующая это, завершается с помощью SIGTERM,
потоки закрываются по одному, и может запуститься другой экземпляр трассировки
сброс тем до того, как они полностью закроются.
Это приводит к
hrtimer, назначенный kthread, который будет отключен и освобожден дважды, когда
умирающий поток наконец закрывает файловые дескрипторы, вызывая использование после освобождения.
ошибка. Отменяйте hrtimer только в том случае, если связанный поток все еще существует. Также добавьте
интерфейс_lock вокруг сброса tlat_var->kthread.
Обратите внимание: это всего лишь быстрое исправление, которое можно перенести в стабильную версию. Настоящий исправление состоит в том, чтобы улучшить синхронизацию между выключением старых нитей и создание новых.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: tracing/timerlat: Only clear timer if a kthread exists The timerlat tracer can use user space threads to check for osnoise and timer latency. If the program using this is killed via a SIGTERM, the threads are shutdown one at a time and another tracing instance can start up resetting the threads before they are fully closed. That causes the hrtimer assigned to the kthread to be shutdown and freed twice when the dying thread finally closes the file descriptors, causing a use-after-free bug. Only cancel the hrtimer if the associated thread is still around. Also add the interface_lock around the resetting of the tlat_var->kthread. Note, this is just a quick fix that can be backported to stable. A real fix is to have a better synchronization between the shutdown of old threads and the starting of new ones.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 8
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.5
|
6.6.51
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.10.10
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.11:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.11:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.11:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.11:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.11:rc5:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.11:rc6:*:*:*:*:*:*
|
— | — |