Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 45d76f492938cdc27ddadc16e1e75103f4cfbf56 before 84fc3f30b87e06a11d1807cd385603522610ed40; affected 45d76f492938cdc27ddadc16e1e75103f4cfbf56 before cc8beb70e70fc90e54efdbc1128cf7de799e6be4; affected 45d76f492938cdc27ddadc16e1e75103f4cfbf56 before 9eee6b90bee3df496ed9094d9e76d5e478d72d0a; affected 45d76f492938cdc27ddadc16e1e75103f4cfbf56 before 6443f4f20bdae726fe01cf5946fba9742a0ffda6 |
| Linux / Linux | affected 6.4; unaffected 0 before 6.4; unaffected 6.6.160 through 6.6.*; unaffected 6.12.111 through 6.12.*; unaffected 6.18.53 through 6.18.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.