Shellfeed logo Shellfeed

CVE-2026-98212 · UNKNOWN

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

EPSS: 0.2% probability of exploitation in the next 30 days (percentile 10.6).

Details

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.

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [6db96e5810e0a6a345b7d78549de7676ae5b2662 – c50d6515bffb148c2c12be6d587ec201dfab4c34]
  • Linux Kernel [5.8.0 – 6.6.158] [6.7.0 – 6.12.112] [6.13.0 – 6.18.54] [6.19.0 – 7.2.8]

References