mmc: hsq: Fix use-after-free in retry work
- CVE-2026-98212
- GHSA-9ffv-qr59-hrp8
- EUVD-2026-93140
Description
In the Linux kernel, the following vulnerability has been resolved: mmc: hsq: Fix use-after-free in retry work mmc_hsq_pump_requests() queues retry_work when request_atomic() returns -EBUSY; today sdhci-sprd is the only consumer that implements request_atomic(). The work is embedded in a devm-allocated mmc_hsq, but is never cancelled during driver removal. Work still pending at unbind can therefore run after the devm allocation has been released and dereference hsq->mmc and hsq->mrq. Use devm_work_autocancel() to cancel and drain retry_work before the devm allocation is released. By the time devres cleanup begins, mmc_remove_host() has already stopped the host, so no new requests can arm the work. This issue was found by an in-house static analysis tool.
Text from the CVE.org record.
Affected
Linux
- 5.8
- before 5.8: not affected
- from 6.1.193 up to 6.1.*: not affected
- from 6.6.158 up to 6.6.*: not affected
- from 6.12.112 up to 6.12.*: not affected
- from 6.18.54 up to 6.18.*: not affected
- from 7.2.8 up to 7.2.*: not affected
- from 7.3 onwards: not affected
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.