В ядре Linux устранена следующая уязвимость:
iommu/dma: не пытайтесь выполнить iommu_map область длиной 0 в swiotlb.
iommu_dma_iova_link_swiotlb() обрабатывает сопоставление, которое не выровнено в трех
части, голова, середина и концевик. Если середина пуста, потому что там
нет выровненных страниц, он будет вызывать iommu_map() с размером 0
который реализация iommupt завершится неудачей как незаконный. Затем он пытается устранить ошибку и начинает с неправильного места.
повреждение сопоставления, поэтому возможное уничтожение вызывает WARN_ON.
Проверьте длину 0, избегайте сопоставления и используйте смещение, отличное от 0, в качестве начального.
укажите, чтобы отменить связь. Это часто происходит при использовании некоторых типов Thunderbolt NVMe.
диски, которые запускают принудительный SWIOTLB для невыровненной памяти. NVMe, кажется,
передавать нечетно выровненные буферы для команд сквозной передачи из smartctl
которые попали в это состояние.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: iommu/dma: Do not try to iommu_map a 0 length region in swiotlb iommu_dma_iova_link_swiotlb() processes a mapping that is unaligned in three parts, the head, middle and trailer. If the middle is empty because there are no aligned pages it will call down to iommu_map() with a 0 size which the iommupt implementation will fail as illegal. It then tries to do an error unwind and starts from the wrong spot corrupting the mapping so the eventual destruction triggers a WARN_ON. Check for 0 length and avoid mapping and use offset not 0 as the starting point to unlink. This is frequently triggered by using some kinds of thunderbolt NVMe drives that trigger forced SWIOTLB for unaligned memory. NVMe seems to pass in oddly aligned buffers for the passthrough commands from smartctl that hit this condition.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 9
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.16
|
6.18.36
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.13
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc6:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc7:*:*:*:*:*:*
|
— | — |