В ядре Linux устранена следующая уязвимость:
из: unittest: исправлено использование после освобождения в testdrv_probe()
Функция testdrv_probe() извлекает узел_устройства из PCI.
устройство, применяет наложение, а затем немедленно вызывает of_node_put(dn). Это освобождает ссылку, удерживаемую ядром PCI, потенциально освобождая
узел, если счетчик ссылок упадет до нуля. Позже тот же освобожденный
указатель 'dn' передается в of_platform_default_populate(), что приводит к
использовать после бесплатно.
Ссылка на pdev->dev.of_node принадлежит модели устройства и
не должен быть отпущен водителем. Удалите ошибочный of_node_put().
во избежание преждевременного освобождения.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: of: unittest: fix use-after-free in testdrv_probe() The function testdrv_probe() retrieves the device_node from the PCI device, applies an overlay, and then immediately calls of_node_put(dn). This releases the reference held by the PCI core, potentially freeing the node if the reference count drops to zero. Later, the same freed pointer 'dn' is passed to of_platform_default_populate(), leading to a use-after-free. The reference to pdev->dev.of_node is owned by the device model and should not be released by the driver. Remove the erroneous of_node_put() to prevent premature freeing.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.6
|
6.6.140
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.86
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.27
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.4
|