# CVE-2026-98212: mmc: hsq: Fix use-after-free in retry work

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-10-06T08:44:48.498Z
- Modified: 2026-11-23T08:17:24.583Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 6db96e5810e0a6a345b7d78549de7676ae5b2662 before a59591ed641f1a5610019d99ff657d33c25ad426; from 6db96e5810e0a6a345b7d78549de7676ae5b2662 before c50d6515bffb148c2c12be6d587ec201dfab4c34; from 6db96e5810e0a6a345b7d78549de7676ae5b2662 before df2eb59fd9eb33663dc1053f5a4ed851e0aa1f67; from 6db96e5810e0a6a345b7d78549de7676ae5b2662 before 8439bf262ce3267bcfee29d3c61605f1731a2271; from 6db96e5810e0a6a345b7d78549de7676ae5b2662 before 45341b341642c377192c95e4d48e0a859cf85f42; from 6db96e5810e0a6a345b7d78549de7676ae5b2662 before 5d132990475f02cfa1debe03d50b479432864ebd; 5.8 (not affected: before 5.8; from 6.1.193 up to 6.1.*; from 6.6.158 up to 6.6.*; from 6.12.112 up to 6.12.*; from 6.18.54 up to 6.18.*; from 7.2.8 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/a59591ed641f1a5610019d99ff657d33c25ad426>
- <https://git.kernel.org/stable/c/c50d6515bffb148c2c12be6d587ec201dfab4c34>
- <https://git.kernel.org/stable/c/df2eb59fd9eb33663dc1053f5a4ed851e0aa1f67>
- <https://git.kernel.org/stable/c/8439bf262ce3267bcfee29d3c61605f1731a2271>
- <https://git.kernel.org/stable/c/45341b341642c377192c95e4d48e0a859cf85f42>
- <https://git.kernel.org/stable/c/5d132990475f02cfa1debe03d50b479432864ebd>

## Sources

- CVE List: [CVE-2026-98212](https://www.cve.org/CVERecord?id=CVE-2026-98212), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-98212](https://nvd.nist.gov/vuln/detail/CVE-2026-98212), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-98212 · Whole record: https://cve.day/CVE-2026-98212.json · Rebuilt by cve.day 2026-11-25T22:59:42.290Z
