# CVE-2026-89998: dm: fix race when loading and unloading a table

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-02)
- Published: 2026-09-16T10:33:10.012Z
- Modified: 2026-10-19T09:18:47.160Z
- Assigned by: Linux

## Description

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

dm: fix race when loading and unloading a table

If the userspace calls two concurrent table load ioctls and one of them
succeeds and the other fails, there is a race condition because
dm_setup_md_queue walks &md->table_devices without any lock. If the walk
races with dm_table_destroy -> free_devices -> dm_put_table_device, there
is access to invalid memory.

Fix this race by extending the lock over the list walk.

(As written by CVE List.)

## Affected

- Linux Linux: from 773bfda35c9511734d7f898e2ee73cd60d2a3f38 before b02e35b81176c7d61dd441cc7a2e5c324a82444b; from 1a581b72169968f4154b5793828f3bc28b258b35 before 0ea6e5ad4a5817e91f11b4cc1e022e575ed2e7ca; from 1a581b72169968f4154b5793828f3bc28b258b35 before a1af1884c960b98c621b6fe2fea1216b78c02152; from 1a581b72169968f4154b5793828f3bc28b258b35 before af1f32ccf8051f4691ced11feb452b9d13561727; from 1a581b72169968f4154b5793828f3bc28b258b35 before 00ad6f9ed27f91925d4d3fb7aab50a60d774f998; from 1a581b72169968f4154b5793828f3bc28b258b35 before 5380c7f6335cc6d77eb77d065105e81155c4d9d3; 600593707c239bb99486925d65540a5020bc1e58; from 6.1.2 before 6.1.188; from 6.0.16 before 6.1; 6.2 (not affected: before 6.2; from 6.1.188 up to 6.1.*; from 6.6.157 up to 6.6.*; from 6.12.110 up to 6.12.*; from 6.18.51 up to 6.18.*; from 7.2.5 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/b02e35b81176c7d61dd441cc7a2e5c324a82444b>
- <https://git.kernel.org/stable/c/0ea6e5ad4a5817e91f11b4cc1e022e575ed2e7ca>
- <https://git.kernel.org/stable/c/a1af1884c960b98c621b6fe2fea1216b78c02152>
- <https://git.kernel.org/stable/c/af1f32ccf8051f4691ced11feb452b9d13561727>
- <https://git.kernel.org/stable/c/00ad6f9ed27f91925d4d3fb7aab50a60d774f998>
- <https://git.kernel.org/stable/c/5380c7f6335cc6d77eb77d065105e81155c4d9d3>

## Sources

- CVE List: [CVE-2026-89998](https://www.cve.org/CVERecord?id=CVE-2026-89998), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-89998](https://nvd.nist.gov/vuln/detail/CVE-2026-89998), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-89998 · Whole record: https://cve.day/CVE-2026-89998.json · Rebuilt by cve.day 2026-11-25T22:59:39.007Z
