Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98213 Overview
CVE-2026-98213 is a use-after-free vulnerability in the Linux kernel's MMC (MultiMediaCard) core subsystem. The flaw affects the SDIO (Secure Digital Input Output) interrupt handling path in mmc_free_host(). A host controller using sdio_signal_irq() schedules host->sdio_irq_work from its interrupt handler. That work is cancelled only on the suspend path through mmc_sdio_suspend(), not on the remove or free path. 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(). The issue was discovered by an in-house static analysis tool.
Critical Impact
A race between SDIO interrupt work scheduling and host teardown can lead to a kernel use-after-free, enabling potential memory corruption, denial of service, or local privilege escalation on affected systems.
Affected Products
- Linux kernel MMC core subsystem (drivers/mmc/core)
- Systems using SDIO host controllers that call sdio_signal_irq()
- Multiple stable kernel branches referenced by the upstream fix commits
Discovery Timeline
- 2026-10-06 - CVE CVE-2026-98213 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-98213
Vulnerability Analysis
The vulnerability resides in the Linux kernel MMC core's handling of deferred SDIO interrupt work during host device teardown. SDIO host controllers that signal interrupts through sdio_signal_irq() queue a work item (host->sdio_irq_work) to defer processing out of hard IRQ context. The MMC core cancels this work during suspend via mmc_sdio_suspend(), but no equivalent cancellation exists in the removal path.
When a controller is removed, mmc_free_host() releases the mmc_host structure through mmc_host_classdev_release(). If an SDIO IRQ fired shortly before the controller freed its hardware IRQ line, the queued worker may still execute after the host has been freed. The worker then dereferences the stale pointer via container_of(), producing a classic use-after-free condition.
Root Cause
The root cause is incomplete object lifetime management. The driver model cancels host->detect delayed work on teardown, as added in commit 1036f69e2513, but omits the symmetric cancellation of host->sdio_irq_work. The missing cleanup allows a scheduled work item to outlive its owning object.
Attack Vector
The vulnerability is triggered during SDIO host controller removal or device unbinding while interrupt processing is in flight. Exploitation requires timing a race between the final SDIO interrupt and the free path. Local attackers with the ability to trigger device unbind events, or physical access to removable SDIO hardware, could attempt to trigger the race. No remote attack vector has been described.
No public proof-of-concept code is available. The fix adds a cancel_work_sync() call for host->sdio_irq_work inside mmc_free_host(), mirroring the existing host->detect drain. See the upstream patches for implementation details: Kernel Git Commit 0bf3d16 and Kernel Git Commit 2a86345.
Detection Methods for CVE-2026-98213
Indicators of Compromise
- Kernel oops or panic traces referencing sdio_irq_work, sdio_irq_thread, or mmc_host_classdev_release
- KASAN (Kernel Address Sanitizer) use-after-free reports naming the mmc_host object
- Unexpected kernel crashes correlated with SDIO device unbind, hot-removal, or driver module unload events
Detection Strategies
- Audit running kernel versions against the fixed commits listed in the vendor references to confirm patch status
- Enable KASAN on test or canary systems that exercise SDIO hardware to catch the race during QA
- Monitor dmesg and journal logs for MMC/SDIO stack traces following device removal operations
Monitoring Recommendations
- Centralize kernel log collection and alert on repeated oops or BUG entries from drivers/mmc/core
- Track kernel package versions across the fleet and flag hosts running pre-patch builds that use SDIO peripherals
- Correlate SDIO device add/remove events with subsequent kernel instability on embedded, IoT, and laptop endpoints
How to Mitigate CVE-2026-98213
Immediate Actions Required
- Apply the upstream Linux kernel patches that add cancel_work_sync(&host->sdio_irq_work) to mmc_free_host()
- Update to a distribution kernel that includes one of the referenced stable backports
- Reboot affected hosts after kernel updates to ensure the patched code paths are loaded
Patch Information
The fix cancels host->sdio_irq_work in mmc_free_host(), following the pattern established by commit 1036f69e2513 for host->detect. The patch has been backported across multiple stable branches. Refer to the upstream commits: Kernel Git Commit 0bf3d16, Kernel Git Commit 1d6e731, Kernel Git Commit 2a86345, Kernel Git Commit 4553b50, Kernel Git Commit 6feadbe, and Kernel Git Commit bae1cf4.
Workarounds
- Avoid dynamic unbind or hot-removal of SDIO host controllers on unpatched systems
- Where SDIO is not required, blacklist or unload SDIO host controller drivers to eliminate the vulnerable code path
- Restrict local access to device management interfaces that could trigger controller teardown
# Verify current kernel version and check for the fix
uname -r
# Example: on Debian/Ubuntu, update and reboot once a patched kernel is published
sudo apt update && sudo apt install --only-upgrade linux-image-$(uname -r | cut -d- -f3-)
sudo reboot
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

