В ядре Linux устранена следующая уязвимость:
dma: исправлен порядок вызовов в dmam_free_coherent
dmam_free_coherent() освобождает выделение DMA, что делает
освобождает vaddr, доступный для повторного использования, затем вызывает devres_destroy()
удалить и освободить структуру данных, используемую для отслеживания DMA
распределение. Между двумя вызовами возможно
параллельная задача для выделения с тем же vaddr
и добавьте его в список разработчиков. Если это произойдет, в списке устройств будет две записи.
с помощью тех же vaddr и devres_destroy() можно освободить неправильные
запись, вызывающая WARN_ON() в dmam_match.
Исправьте, уничтожив запись devres перед освобождением DMA.
распределение.
коконут //сеть/шифрование
http://sponge2/b9145fe6-0f72-4325-ac2f-a84d81075b03
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: dma: fix call order in dmam_free_coherent dmam_free_coherent() frees a DMA allocation, which makes the freed vaddr available for reuse, then calls devres_destroy() to remove and free the data structure used to track the DMA allocation. Between the two calls, it is possible for a concurrent task to make an allocation with the same vaddr and add it to the devres list. If this happens, there will be two entries in the devres list with the same vaddr and devres_destroy() can free the wrong entry, triggering the WARN_ON() in dmam_match. Fix by destroying the devres entry before freeing the DMA allocation. kokonut //net/encryption http://sponge2/b9145fe6-0f72-4325-ac2f-a84d81075b03
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.21
|
4.19.320
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.20
|
5.4.282
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.5
|
5.10.224
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.15.165
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.1.103
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.44
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.10.3
|