В ядре Linux устранена следующая уязвимость:
drm/amdgpu: исправлена обработка синхронизации в amdgpu_dma_buf_move_notify. Аннулирование dmabuf повлияет на других пользователей общего BO. В сценарии, когда процесс А перемещает БО, ему необходимо сообщить
процесс B о перемещении, и процесс B должен будет обновить свои
таблица страниц.
Коммит исправляет ошибку синхронизации, вызванную использованием
билет: amdgpu_vm_handle_moved ведет себя так, как будто обновляется
таблица страниц сразу оказалась правильной, но в данном случае это не так. Примером может служить следующий сценарий с двумя графическими процессорами и glxgears.
работает на GPU0, а Xorg работает на GPU1, в системе, где P2P
PCI не поддерживается:
глксгеарс:
экспортировать линейный буфер из GPU0 и импортировать с помощью GPU1
отправить рендеринг кадра на GPU0
отправить плиточный->линейный блит
Хорг:
копия линейного буфера
Последовательность работ будет такая:
drm_sched_job_run # GPU0, рендеринг кадров
drm_sched_job_queue # GPU0, блит
drm_sched_job_done # GPU0, рендеринг кадров
drm_sched_job_run # GPU0, блит
переместить линейный буфер для доступа к GPU1 #
amdgpu_dma_buf_move_notify -> обновить точку # GPU0
На этом этапе задание копирования на GPU0 все еще выполняется и будет
скорее всего, приведет к ошибке страницы.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: fix sync handling in amdgpu_dma_buf_move_notify Invalidating a dmabuf will impact other users of the shared BO. In the scenario where process A moves the BO, it needs to inform process B about the move and process B will need to update its page table. The commit fixes a synchronisation bug caused by the use of the ticket: it made amdgpu_vm_handle_moved behave as if updating the page table immediately was correct but in this case it's not. An example is the following scenario, with 2 GPUs and glxgears running on GPU0 and Xorg running on GPU1, on a system where P2P PCI isn't supported: glxgears: export linear buffer from GPU0 and import using GPU1 submit frame rendering to GPU0 submit tiled->linear blit Xorg: copy of linear buffer The sequence of jobs would be: drm_sched_job_run # GPU0, frame rendering drm_sched_job_queue # GPU0, blit drm_sched_job_done # GPU0, frame rendering drm_sched_job_run # GPU0, blit move linear buffer for GPU1 access # amdgpu_dma_buf_move_notify -> update pt # GPU0 It this point the blit job on GPU0 is still running and would likely produce a page fault.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 10
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.7
|
6.12.75
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.16
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
6.19.6
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*
|
— | — |