Skip to contentSkip to conversation

CVE-2026-98210: mmc: mxcmmc: cancel data work and watchdog on remove

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 6

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

mmc: mxcmmc: cancel data work and watchdog on remove

mxcmci_remove() frees the host through the devm tail, but neither it nor mmc_remove_host() drains the driver's own asynchronous state. host->watchdog, a 10 s timer armed on the DMA path in mxcmci_setup_data(), is deleted only by the DMA- and IRQ-complete paths, which the remove path does not explicitly drain; it can therefore fire after the host is freed and dereference it in mxcmci_watchdog(). host->datawork, armed from the IRQ handler on the PIO path, is not cancelled by the remove path either.

Free the devm-registered IRQ, then cancel datawork and delete the watchdog in mxcmci_remove(), before dma_release_channel(). Freeing the IRQ first keeps a trailing handler from re-arming datawork between the cancel and the host free. Both callbacks are non-self-rearming.

This issue was found by an in-house static analysis tool.

The Linux kernel CVE team has assigned CVE-2026-98210 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 3.7 with commit f6ad0a481342223b2e7ae9f55b154e14f1391ada and fixed in 5.10.271 with commit 740f595f8ad678cb4d79f13edd12851df2492bdd
	Issue introduced in 3.7 with commit f6ad0a481342223b2e7ae9f55b154e14f1391ada and fixed in 5.15.222 with commit d3641afe6ee76d852834a34ef0669eefced32752
	Issue introduced in 3.7 with commit f6ad0a481342223b2e7ae9f55b154e14f1391ada and fixed in 6.1.189 with commit 314966b490323bdcfd3162a1398b00e587e0ced4
	Issue introduced in 3.7 with commit f6ad0a481342223b2e7ae9f55b154e14f1391ada and fixed in 6.6.158 with commit ae10838a7cdf0e54caa9d0a4f488704fd04e7f01
	Issue introduced in 3.7 with commit f6ad0a481342223b2e7ae9f55b154e14f1391ada and fixed in 6.12.112 with commit a1ff367e0dc961d73707add508a95df5c3509bd1
	Issue introduced in 3.7 with commit f6ad0a481342223b2e7ae9f55b154e14f1391ada and fixed in 6.18.54 with commit 23383e0578b58ba2dc0730cf9f7806bd66bf859a
	Issue introduced in 3.7 with commit f6ad0a481342223b2e7ae9f55b154e14f1391ada and fixed in 7.2.8 with commit e2948c4232209e87c861a680f20f1e3cf8a57fec
	Issue introduced in 3.7 with commit f6ad0a481342223b2e7ae9f55b154e14f1391ada and fixed in 7.3-rc4 with commit d3a421c82412344022982d5b91ba23194a0a6f29

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-98210

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/mmc/host/mxcmmc.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/740f595f8ad678cb4d79f13edd12851df2492bdd
	https://git.kernel.org/stable/c/d3641afe6ee76d852834a34ef0669eefced32752
	https://git.kernel.org/stable/c/314966b490323bdcfd3162a1398b00e587e0ced4
	https://git.kernel.org/stable/c/ae10838a7cdf0e54caa9d0a4f488704fd04e7f01
	https://git.kernel.org/stable/c/a1ff367e0dc961d73707add508a95df5c3509bd1
	https://git.kernel.org/stable/c/23383e0578b58ba2dc0730cf9f7806bd66bf859a
	https://git.kernel.org/stable/c/e2948c4232209e87c861a680f20f1e3cf8a57fec
	https://git.kernel.org/stable/c/d3a421c82412344022982d5b91ba23194a0a6f29