dm: fix reading free memory in do_resume

Summary

CVECVE-2026-99036
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-10-23 13:17:26 UTC
Updated2026-10-26 07:17:18 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected d58168763f74d1edbc296d7038c60efe6493fdd4 281f68d6cf8acb2547ebf0a849b8beae8fb0ec3c git Not specified
CNA Linux Linux affected d58168763f74d1edbc296d7038c60efe6493fdd4 2c96d1a8324e7736e0f8a5790ecf39d36c2c4a82 git Not specified
CNA Linux Linux affected d58168763f74d1edbc296d7038c60efe6493fdd4 e3bf232c913b7e0103d323f15e6342d37cb1b357 git Not specified
CNA Linux Linux affected d58168763f74d1edbc296d7038c60efe6493fdd4 301691c32b8ad023e3316d5dbb6a8cf52d47b0dc git Not specified
CNA Linux Linux affected d58168763f74d1edbc296d7038c60efe6493fdd4 c9417c1c5269e2bd0570fbe53e4ec03a8d31f008 git Not specified
CNA Linux Linux affected 2.6.29 Not specified
CNA Linux Linux unaffected 2.6.29 semver Not specified
CNA Linux Linux unaffected 6.6.160 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.113 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.57 6.18.* semver Not specified
CNA Linux Linux unaffected 7.2.11 7.2.* semver Not specified
CNA Linux Linux unaffected 7.3 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/e3bf232c913b7e0103d323f15e6342d37cb1b357 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/281f68d6cf8acb2547ebf0a849b8beae8fb0ec3c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2c96d1a8324e7736e0f8a5790ecf39d36c2c4a82 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/301691c32b8ad023e3316d5dbb6a8cf52d47b0dc 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/c9417c1c5269e2bd0570fbe53e4ec03a8d31f008 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report