В ядре Linux устранена следующая уязвимость:
из: unittest: исправлена утечка памяти в unittest_data_add(). В unittest_data_add(), если функция of_resolve_phandles() терпит неудачу, выделенные
unittest_data не освобождается, что приводит к утечке памяти. Исправьте это, используя помощник очистки на основе области действия __free(kfree) для автоматической очистки.
очистка ресурса.
Это гарантирует автоматическое освобождение unittest_data при
он выходит за рамки в путях ошибок. Для пути успеха используйте continue_and_null_ptr() для передачи права собственности.
памяти в дерево устройств и предотвратить двойное освобождение.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: of: unittest: Fix memory leak in unittest_data_add() In unittest_data_add(), if of_resolve_phandles() fails, the allocated unittest_data is not freed, leading to a memory leak. Fix this by using scope-based cleanup helper __free(kfree) for automatic resource cleanup. This ensures unittest_data is automatically freed when it goes out of scope in error paths. For the success path, use retain_and_null_ptr() to transfer ownership of the memory to the device tree and prevent double freeing.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
3.18
|
6.18.6
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc4:*:*:*:*:*:*
|
— | — |