mmc: via-sdmmc: cancel card-detect work on remove
- 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.112, 6.18.50, 7.2.4
- 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
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: mmc: via-sdmmc: cancel card-detect work on remove Disabling the device interrupt and freeing the IRQ prevents new card-detect work from being queued, but carddet_work already queued by the handler can still run after via_sd_remove() returns. via_sdc_card_detect() recovers the host through container_of() and dereferences its MMIO base; once remove() returns the host can be freed, so that work would touch freed memory. Cancel carddet_work after freeing the IRQ and before cancelling finish_bh_work, which the card-detect handler can also queue. carddet_work can re-enable the interrupt through via_reset_pcictrl(); mask it again afterwards. This issue was found by an in-house static analysis tool and confirmed by manual code review.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From f0bf7f61b8405224bc52fc9a3ccd167a68126e00 · fixed in 55d71c70f11d9f92c7d2653774001e98cb509deb; From f0bf7f61b8405224bc52fc9a3ccd167a68126e00 · fixed in 0a3c70191868fb007c03ff79693ad4e4b3fdcbb8; From f0bf7f61b8405224bc52fc9a3ccd167a68126e00 · fixed in f7ff3027ef004a331ef911a4886f12bc2e996037; From f0bf7f61b8405224bc52fc9a3ccd167a68126e00 · fixed in eaca730c6f5e3609df62a0469fb789235a93d276; From f0bf7f61b8405224bc52fc9a3ccd167a68126e00 · fixed in 57e5d877f898d5e5c9d672a77bb6bdd24f0d9bf5
- Linux Linux
2.6.31
- KernelLinux
From 2.6.31 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.112; From 6.13.0 · fixed in 6.18.50; From 6.19.0 · fixed in 7.2.4