CVE-2026-98212

mmc: hsq: Fix use-after-free in retry work

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.

Key facts

Published
6 Oct 2026
Last changed
19 Oct 2026
Assigned by
Linux
EPSS
0.206% likely to be exploited in the next 30 days, higher than 10.643% of CVEs (scores for 17 Nov 2026)

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

No explicit remediation statement is available on this page yet. Consult the original record and vendor references before choosing a fix.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
LinuxLinux
  • Default status: unaffected
  • 6db96e5810e0a6a345b7d78549de7676ae5b2662 up to but excluding c50d6515bffb148c2c12be6d587ec201dfab4c34 (affected)
  • 6db96e5810e0a6a345b7d78549de7676ae5b2662 up to but excluding df2eb59fd9eb33663dc1053f5a4ed851e0aa1f67 (affected)
  • 6db96e5810e0a6a345b7d78549de7676ae5b2662 up to but excluding 8439bf262ce3267bcfee29d3c61605f1731a2271 (affected)
  • 6db96e5810e0a6a345b7d78549de7676ae5b2662 up to but excluding 45341b341642c377192c95e4d48e0a859cf85f42 (affected)
  • 6db96e5810e0a6a345b7d78549de7676ae5b2662 up to but excluding 5d132990475f02cfa1debe03d50b479432864ebd (affected)
LinuxLinux
  • Default status: affected
  • 5.8 (affected)
  • 0 up to but excluding 5.8 (unaffected)
  • 6.6.158 up to and including 6.6.* (unaffected)
  • 6.12.112 up to and including 6.12.* (unaffected)
  • 6.18.54 up to and including 6.18.* (unaffected)
  • 7.2.8 up to and including 7.2.* (unaffected)
  • 7.3 up to and including * (unaffected)

Timeline

  1. 6 Oct 2026 Published

References