В ядре Linux устранена следующая уязвимость:
ntb: ntb_hw_switchtec: исправлено использование после бесплатного использования уязвимости в switchtec_ntb_remove из-за состояния гонки. В функции switchtec_ntb_add он может вызывать switchtec_ntb_init_sndev.
функция, то &sndev->check_link_status_work связана с
check_link_status_work. switchtec_ntb_link_notification может быть вызван
чтобы начать работу. Если мы удалим модуль, который будет вызывать switchtec_ntb_remove, чтобы сделать
очистки, он освободит sndev через kfree(sndev), в то время как работа
упомянутое выше будет использоваться.
Последовательность действий, которая может привести
ошибка UAF заключается в следующем:
ЦП0 ЦП1
| check_link_status_work
switchtec_ntb_remove |
kfree (сндев); |
| если (sndev->link_force_down)
| // используем sndev
Исправьте это, убедившись, что работа отменена, прежде чем продолжить
очистка в switchtec_ntb_remove.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ntb: ntb_hw_switchtec: Fix use after free vulnerability in switchtec_ntb_remove due to race condition In the switchtec_ntb_add function, it can call switchtec_ntb_init_sndev function, then &sndev->check_link_status_work is bound with check_link_status_work. switchtec_ntb_link_notification may be called to start the work. If we remove the module which will call switchtec_ntb_remove to make cleanup, it will free sndev through kfree(sndev), while the work mentioned above will be used. The sequence of operations that may lead to a UAF bug is as follows: CPU0 CPU1 | check_link_status_work switchtec_ntb_remove | kfree(sndev); | | if (sndev->link_force_down) | // use sndev Fix it by ensuring that the work is canceled before proceeding with the cleanup in switchtec_ntb_remove.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
— |
5.10.227
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.15.168
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.1.113
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.57
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.11.4
|