# CVE-2026-99036: dm: fix reading free memory in do_resume

- Severity: not scored yet
- 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.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-10-23T12:21:49.410Z
- Modified: 2026-10-30T13:21:40.677Z
- Assigned by: Linux

## Description

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

dm: fix reading free memory in do_resume

When do_resume calls dm_table_get_mode(new_map), the call is done without
holding any locks (it only holds a reference to the md). It may be
possible that another concurrent ioctl on the same device will swap table
after dm_swap_table and before dm_table_get_mode. In this case,
dm_table_get_mode(new_map) reads freed memory.

This race condition was triggered by syzbot.

This commit fixes the race by reading mode of the new table before
dm_swap_table. Note that new_map is also passed to dm_ima_need_measure,
but this function doesn't attempt to dereference it, so this call should
be safe.

Note that this is not a security bug because only root can trigger it and
the commonly used tools such as lvm or cryptsetup do not call the ioctls
concurrently, so that they can't trigger it acceidentally.

(As written by CVE List.)

## Affected

- Linux Linux: from d58168763f74d1edbc296d7038c60efe6493fdd4 before 2bc5df0cf906f36a8f59ac864139ee2b7b53d3c0; from d58168763f74d1edbc296d7038c60efe6493fdd4 before 48169328021dfd59121f9a66cca919b7defcd3fa; from d58168763f74d1edbc296d7038c60efe6493fdd4 before 7a272c2338f758e3b6e664ebf7488ac40f48a2a4; from d58168763f74d1edbc296d7038c60efe6493fdd4 before 281f68d6cf8acb2547ebf0a849b8beae8fb0ec3c; from d58168763f74d1edbc296d7038c60efe6493fdd4 before 2c96d1a8324e7736e0f8a5790ecf39d36c2c4a82; from d58168763f74d1edbc296d7038c60efe6493fdd4 before e3bf232c913b7e0103d323f15e6342d37cb1b357; from d58168763f74d1edbc296d7038c60efe6493fdd4 before 301691c32b8ad023e3316d5dbb6a8cf52d47b0dc; from d58168763f74d1edbc296d7038c60efe6493fdd4 before c9417c1c5269e2bd0570fbe53e4ec03a8d31f008; 2.6.29 (not affected: before 2.6.29; from 5.10.273 up to 5.10.*; from 5.15.224 up to 5.15.*; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.113 up to 6.12.*; from 6.18.57 up to 6.18.*; from 7.2.11 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/2bc5df0cf906f36a8f59ac864139ee2b7b53d3c0>
- <https://git.kernel.org/stable/c/48169328021dfd59121f9a66cca919b7defcd3fa>
- <https://git.kernel.org/stable/c/7a272c2338f758e3b6e664ebf7488ac40f48a2a4>
- <https://git.kernel.org/stable/c/281f68d6cf8acb2547ebf0a849b8beae8fb0ec3c>
- <https://git.kernel.org/stable/c/2c96d1a8324e7736e0f8a5790ecf39d36c2c4a82>
- <https://git.kernel.org/stable/c/e3bf232c913b7e0103d323f15e6342d37cb1b357>
- <https://git.kernel.org/stable/c/301691c32b8ad023e3316d5dbb6a8cf52d47b0dc>
- <https://git.kernel.org/stable/c/c9417c1c5269e2bd0570fbe53e4ec03a8d31f008>

## Sources

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

---

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