В ядре Linux устранена следующая уязвимость:
idpf: исправлены ошибки двойного освобождения и использования после освобождения в путях ошибок дополнительных устройств. При сбое вспомогательного_device_add() в idpf_plug_vport_aux_dev() или
idpf_plug_core_aux_dev(), метка err_aux_dev_add вызывает
вспомогательный_device_uninit() и переходит к err_aux_dev_init.
вызов uninit вызовет put_device(), который вызывает выпуск
обратный вызов (idpf_vport_adev_release/idpf_core_adev_release), который освобождает
ядев. Затем провал считывает adev->id из освобожденного iadev для
ida_free() и дважды освобождает iadev с помощью kfree().
Освободите слот IDA и очистите обратный указатель перед uninit, пока adev
все еще действителен, то немедленно вернитесь. Зафиксировать 65637c3a1811 («idpf: исправить UAF в ядре RDMA и деинициализацию вспомогательной разработки»)
исправлено то же самое использование после освобождения в соответствующем пути отключения в этом файле, но
пропущены оба пути ошибки зонда.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: idpf: fix double free and use-after-free in aux device error paths When auxiliary_device_add() fails in idpf_plug_vport_aux_dev() or idpf_plug_core_aux_dev(), the err_aux_dev_add label calls auxiliary_device_uninit() and falls through to err_aux_dev_init. The uninit call will trigger put_device(), which invokes the release callback (idpf_vport_adev_release / idpf_core_adev_release) that frees iadev. The fall-through then reads adev->id from the freed iadev for ida_free() and double-frees iadev with kfree(). Free the IDA slot and clear the back-pointer before uninit, while adev is still valid, then return immediately. Commit 65637c3a1811 ("idpf: fix UAF in RDMA core aux dev deinitialization") fixed the same use-after-free in the matching unplug path in this file but missed both probe error paths.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.17
|
6.18.33
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.10
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
|
— | — |