В ядре Linux устранена следующая уязвимость:
drm/xe: исправлена утечка вложений dma-buf в xe_gem_prime_import(). При ошибке xe_dma_buf_init_obj() вложение из
dma_buf_dynamic_attach() не отсоединен. Добавьте dma_buf_detach() перед
возврат ошибки.
Примечание: здесь мы не можем использовать goto out_err, потому что
xe_dma_buf_init_obj() уже освобождает bo в случае сбоя, а out_err будет
освободите его дважды.
(вишня выбрана из коммита a828eb185aac41800df8eae4b60501ccc0dbbe51)
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import() When xe_dma_buf_init_obj() fails, the attachment from dma_buf_dynamic_attach() is not detached. Add dma_buf_detach() before returning the error. Note: we cannot use goto out_err here because xe_dma_buf_init_obj() already frees bo on failure, and out_err would double-free it. (cherry picked from commit a828eb185aac41800df8eae4b60501ccc0dbbe51)
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.8
|
6.12.90
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.32
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.9
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
|
— | — |