В ядре Linux была устранена следующая уязвимость: pds_core: quiesce DMA перед освобождением ресурсов pdsc_teardown() освобождает буферы DMA, но не отключает мастеринг шины, оставляя устройство способным выполнять DMA после освобождения буферов. Это может привести к use-after-free, если устройство записывает в свободную память. Добавьте pci_clear_master() в pdsc_teardown(), чтобы отключить мастеринг шины перед освобождением ресурсов, гарантируя, что все DMA спокоен.
Добавьте pci_set_master() в pdsc_setup(), чтобы повторно включить мастеринг шины, который необходим для пути восстановления прошивки, так как pdsc_teardown() теперь отключает его.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: pds_core: quiesce DMA before freeing resources pdsc_teardown() frees DMA buffers but does not disable bus mastering, leaving the device able to perform DMA after the buffers are freed. This can lead to use-after-free if the device writes to freed memory. Add pci_clear_master() to pdsc_teardown() to disable bus mastering before freeing resources, ensuring all DMA is quiesced. Add pci_set_master() to pdsc_setup() to re-enable bus mastering, which is needed for the firmware recovery path since pdsc_teardown() now disables it.