В ядре Linux устранена следующая уязвимость:
xhci: Sideband: исправить утечку страниц таблицы Ring SG
xhci_ring_to_sgtable() выделяет временный массив страниц и
использует его для построения возвращенной sg_table с помощью
sg_alloc_table_from_pages(). Пути ошибок освобождают массив страниц, но путь успеха
возвращает sg_table, не освобождая ее. Это приводит к утечке временного
массив каждый раз, когда клиент боковой полосы получает конечную точку или кольцо событий
буфер.
Освободите массив страниц после успешного завершения sg_alloc_table_from_pages(). Возвращенная таблица sg_table имеет свои собственные записи в списке разброса и не имеет
зависят от временного массива после построения.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: xhci: sideband: fix ring sg table pages leak xhci_ring_to_sgtable() allocates a temporary pages array and uses it to build the returned sg_table with sg_alloc_table_from_pages(). The error paths free the pages array, but the success path returns the sg_table without freeing it. This leaks the temporary array every time a sideband client gets an endpoint or event ring buffer. Free the pages array after sg_alloc_table_from_pages() succeeds. The returned sg_table has its own scatterlist entries and does not depend on the temporary array after construction.