pds_core: quiesce DMA before freeing resources
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.160, 6.12.111, 6.18.53
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 45d76f492938cdc27ddadc16e1e75103f4cfbf56 · fixed in 84fc3f30b87e06a11d1807cd385603522610ed40; From 45d76f492938cdc27ddadc16e1e75103f4cfbf56 · fixed in cc8beb70e70fc90e54efdbc1128cf7de799e6be4; From 45d76f492938cdc27ddadc16e1e75103f4cfbf56 · fixed in 9eee6b90bee3df496ed9094d9e76d5e478d72d0a; From 45d76f492938cdc27ddadc16e1e75103f4cfbf56 · fixed in 6443f4f20bdae726fe01cf5946fba9742a0ffda6
- Linux Linux
6.4
- KernelLinux
From 6.4.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.111; From 6.13.0 · fixed in 6.18.53