В ядре Linux устранена следующая уязвимость:
of: unittest: исправлено использование после освобождения в of_unittest_changeset()
Переменной «parent» ранее было присвоено значение «nchangeset».
функция, то есть обе указывают на одну и ту же структуру device_node. Звонок в
of_node_put(nchangeset) может уменьшить счетчик ссылок до нуля и
освободить узел, если других держателей нет. После этого код по-прежнему
использует «родитель» для проверки наличия свойства и чтения
строковое свойство, приводящее к использованию после освобождения.
Исправьте это, переместив вызов of_node_put() после последнего доступа к
«родитель», избегая ВСУ.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: of: unittest: fix use-after-free in of_unittest_changeset() The variable 'parent' is assigned the value of 'nchangeset' earlier in the function, meaning both point to the same struct device_node. The call to of_node_put(nchangeset) can decrement the reference count to zero and free the node if there are no other holders. After that, the code still uses 'parent' to check for the presence of a property and to read a string property, leading to a use-after-free. Fix this by moving the of_node_put() call after the last access to 'parent', avoiding the UAF.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 3
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.12
|
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
|