CVE-2026-98213: mmc: core: Cancel SDIO IRQ work before freeing host
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
mmc: core: Cancel SDIO IRQ work before freeing host
A host controller that uses sdio_signal_irq() schedules host->sdio_irq_work from its interrupt handler. That work is only cancelled on the suspend path (mmc_sdio_suspend()), not on the remove/free path, so a worker armed just before the controller freed its IRQ can run after mmc_host_classdev_release() has freed the host and dereference it through container_of().
Cancel host->sdio_irq_work in mmc_free_host(), like the existing host->detect drain added by commit 1036f69e2513 ("mmc: core: Cancel delayed work before releasing host").
This issue was found by an in-house static analysis tool.
The Linux kernel CVE team has assigned CVE-2026-98213 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.13 with commit 682696605c7093d2800c498c04166831e5aedf87 and fixed in 6.1.189 with commit bae1cf4f9902b2065bd78b759c7fe6312855f05e Issue introduced in 4.13 with commit 682696605c7093d2800c498c04166831e5aedf87 and fixed in 6.6.158 with commit 0bf3d168a2cc20b120d6b50f0a8ac5b40ff4d589 Issue introduced in 4.13 with commit 682696605c7093d2800c498c04166831e5aedf87 and fixed in 6.12.112 with commit 1d6e7315ee1c992b4ca42c9b11c5ed0e925a00e0 Issue introduced in 4.13 with commit 682696605c7093d2800c498c04166831e5aedf87 and fixed in 6.18.54 with commit 4553b5004eca9c9eae29a421f1a9c4d5db2c9114 Issue introduced in 4.13 with commit 682696605c7093d2800c498c04166831e5aedf87 and fixed in 7.2.8 with commit 2a863458828ade0671c2bc2e469bbd7f2340eb03 Issue introduced in 4.13 with commit 682696605c7093d2800c498c04166831e5aedf87 and fixed in 7.3-rc4 with commit 6feadbecdae60a6324c967f3b1493741083793a3
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-98213
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/core/host.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/bae1cf4f9902b2065bd78b759c7fe6312855f05e https://git.kernel.org/stable/c/0bf3d168a2cc20b120d6b50f0a8ac5b40ff4d589 https://git.kernel.org/stable/c/1d6e7315ee1c992b4ca42c9b11c5ed0e925a00e0 https://git.kernel.org/stable/c/4553b5004eca9c9eae29a421f1a9c4d5db2c9114 https://git.kernel.org/stable/c/2a863458828ade0671c2bc2e469bbd7f2340eb03 https://git.kernel.org/stable/c/6feadbecdae60a6324c967f3b1493741083793a3