CVE-2021-47435: Linux kernel device-mapper I/O completion race NULL-pointer dereference
- Vendor
- Linux
CVE-2021-47435 is a race condition in the Linux kernel device-mapper subsystem during I/O completion and concurrent device-mapper table replacement. The I/O completion path invoked end_io_acct() before freeing the associated dm_io object and decrementing the in-flight pending count. This ordering could wake a table-swap path, allowing it to suspend the target, replace the table, and destroy its mempools before the completion path subsequently invoked free_io(). The resulting call to mempool_free() dereferences a cleared mempool element pointer, causing a kernel NULL-pointer dereference.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
A successful trigger can panic or crash the kernel, producing a local denial of service. Red Hat rates the availability impact as high; confidentiality and integrity impact are not identified.
Mitigation
If you can’t patch tonight, do this now.
Until an updated kernel can be deployed, restrict local access and administrative capabilities that permit creation, reconfiguration, suspension, resumption, or table replacement of device-mapper devices. Avoid concurrent device-mapper table swaps while I/O is outstanding. These measures reduce exposure but do not correct the race.
Remediation
Patch, then assume compromise.
Install a Linux kernel update containing the upstream fix. The fix preserves the required dm_io member pointers, executes free_io() before end_io_acct(), and passes the preserved pointers to end_io_acct() afterward, preventing completion accounting from enabling mempool destruction before I/O resources are freed. Reboot after installing the updated kernel. For unsupported kernel releases, upgrade to a supported release with the fix available.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-47435 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2021-47435 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2021-47435?
- As of Oct 16, 2026, Mallory has found no public exploit for CVE-2021-47435.
- Is there a patch for CVE-2021-47435?
- Install a Linux kernel update containing the upstream fix. The fix preserves the required dm_io member pointers, executes free_io() before end_io_acct(), and passes the preserved pointers to end_io_acct() afterward, preventing completion accounting from enabling mempool destruction before I/O resources are freed.
- What products are affected by CVE-2021-47435?
- Linux Kernel.
- How severe is CVE-2021-47435?
- CVE-2021-47435 has a CVSS v3.1 score of 4.7 (Medium) and an EPSS score of 0.29% (14th percentile) as of Oct 16, 2026.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.