CVE-2026-89997: dm: fix resume-vs-remove race
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
dm: fix resume-vs-remove race
If the user issues the resume ioctl and the remove ioctl at the same time, it may be possible that the device is resumed after it is suspended in __dm_destroy. The result is that the table is destroyed without calling the postsuspend method.
Dm targets expect that they may be removed only after the postsuspend method method was called. If we break this expectation, it can cause misbehavior in various targets. For example - in the dm-integrity target, the reboot notifier is not unregistered, leading to use-after-free.
Fix this bug by refusing to resume if the device is being destroyed.
The Linux kernel CVE team has assigned CVE-2026-89997 to this issue.
Affected and fixed versions
===========================
Fixed in 5.10.270 with commit 9757367bcf1d5d2c50b94d005abca21f3eedd7c3 Fixed in 5.15.221 with commit 1ede2bce2bd640605df83db1356fd727159bc9ed Fixed in 6.1.188 with commit 3f04e6520d9a53adb1d1daf4dc5d31a60fc77d1f Fixed in 6.6.157 with commit 94f3d399c1ddba763c1c5a6501f7375d533d789f Fixed in 6.12.110 with commit 3b59530b14fde693e41d8e39bc326df6cbf07b76 Fixed in 6.18.51 with commit 36177beff2a9df035991ad8d16ccf8d363ed93ee Fixed in 7.2.5 with commit 94380ecd5ff9b2a2b9f6e8a0b5c465159ccfaf71 Fixed in 7.3-rc1 with commit 44b43ec132f1cf3275ecc182d0c82f50c3c4c3d5
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-89997
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/md/dm.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/9757367bcf1d5d2c50b94d005abca21f3eedd7c3 https://git.kernel.org/stable/c/1ede2bce2bd640605df83db1356fd727159bc9ed https://git.kernel.org/stable/c/3f04e6520d9a53adb1d1daf4dc5d31a60fc77d1f https://git.kernel.org/stable/c/94f3d399c1ddba763c1c5a6501f7375d533d789f https://git.kernel.org/stable/c/3b59530b14fde693e41d8e39bc326df6cbf07b76 https://git.kernel.org/stable/c/36177beff2a9df035991ad8d16ccf8d363ed93ee https://git.kernel.org/stable/c/94380ecd5ff9b2a2b9f6e8a0b5c465159ccfaf71 https://git.kernel.org/stable/c/44b43ec132f1cf3275ecc182d0c82f50c3c4c3d5