{"id":"CVE-2026-89998","state":"PUBLISHED","title":"dm: fix race when loading and unloading a table","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm: fix race when loading and unloading a table\n\nIf the userspace calls two concurrent table load ioctls and one of them\nsucceeds and the other fails, there is a race condition because\ndm_setup_md_queue walks &md->table_devices without any lock. If the walk\nraces with dm_table_destroy -> free_devices -> dm_put_table_device, there\nis access to invalid memory.\n\nFix this race by extending the lock over the list walk.","publishedAt":"2026-09-16T10:33:10.012Z","updatedAt":"2026-10-19T08:56:12.250Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"773bfda35c9511734d7f898e2ee73cd60d2a3f38","status":"affected","lessThan":"b02e35b81176c7d61dd441cc7a2e5c324a82444b","versionType":"git"},{"version":"1a581b72169968f4154b5793828f3bc28b258b35","status":"affected","lessThan":"0ea6e5ad4a5817e91f11b4cc1e022e575ed2e7ca","versionType":"git"},{"version":"1a581b72169968f4154b5793828f3bc28b258b35","status":"affected","lessThan":"a1af1884c960b98c621b6fe2fea1216b78c02152","versionType":"git"},{"version":"1a581b72169968f4154b5793828f3bc28b258b35","status":"affected","lessThan":"af1f32ccf8051f4691ced11feb452b9d13561727","versionType":"git"},{"version":"1a581b72169968f4154b5793828f3bc28b258b35","status":"affected","lessThan":"00ad6f9ed27f91925d4d3fb7aab50a60d774f998","versionType":"git"},{"version":"1a581b72169968f4154b5793828f3bc28b258b35","status":"affected","lessThan":"5380c7f6335cc6d77eb77d065105e81155c4d9d3","versionType":"git"},{"version":"600593707c239bb99486925d65540a5020bc1e58","status":"affected","versionType":"git"},{"version":"6.1.2","status":"affected","lessThan":"6.1.188","versionType":"semver"},{"version":"6.0.16","status":"affected","lessThan":"6.1","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.51","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.5","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm.c"]}],"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"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:26.108Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/89xxx/CVE-2026-89998.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-89998","state":"PUBLISHED","datePublished":"2026-09-16T10:33:10.012Z","dateUpdated":"2026-10-19T08:56:12.250Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.780Z"},"containers":{"cna":{"title":"dm: fix race when loading and unloading a table","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm: fix race when loading and unloading a table\n\nIf the userspace calls two concurrent table load ioctls and one of them\nsucceeds and the other fails, there is a race condition because\ndm_setup_md_queue walks &md->table_devices without any lock. If the walk\nraces with dm_table_destroy -> free_devices -> dm_put_table_device, there\nis access to invalid memory.\n\nFix this race by extending the lock over the list walk."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"773bfda35c9511734d7f898e2ee73cd60d2a3f38","status":"affected","lessThan":"b02e35b81176c7d61dd441cc7a2e5c324a82444b","versionType":"git"},{"version":"1a581b72169968f4154b5793828f3bc28b258b35","status":"affected","lessThan":"0ea6e5ad4a5817e91f11b4cc1e022e575ed2e7ca","versionType":"git"},{"version":"1a581b72169968f4154b5793828f3bc28b258b35","status":"affected","lessThan":"a1af1884c960b98c621b6fe2fea1216b78c02152","versionType":"git"},{"version":"1a581b72169968f4154b5793828f3bc28b258b35","status":"affected","lessThan":"af1f32ccf8051f4691ced11feb452b9d13561727","versionType":"git"},{"version":"1a581b72169968f4154b5793828f3bc28b258b35","status":"affected","lessThan":"00ad6f9ed27f91925d4d3fb7aab50a60d774f998","versionType":"git"},{"version":"1a581b72169968f4154b5793828f3bc28b258b35","status":"affected","lessThan":"5380c7f6335cc6d77eb77d065105e81155c4d9d3","versionType":"git"},{"version":"600593707c239bb99486925d65540a5020bc1e58","status":"affected","versionType":"git"},{"version":"6.1.2","status":"affected","lessThan":"6.1.188","versionType":"semver"},{"version":"6.0.16","status":"affected","lessThan":"6.1","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.51","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.5","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b02e35b81176c7d61dd441cc7a2e5c324a82444b"},{"url":"https://git.kernel.org/stable/c/0ea6e5ad4a5817e91f11b4cc1e022e575ed2e7ca"},{"url":"https://git.kernel.org/stable/c/a1af1884c960b98c621b6fe2fea1216b78c02152"},{"url":"https://git.kernel.org/stable/c/af1f32ccf8051f4691ced11feb452b9d13561727"},{"url":"https://git.kernel.org/stable/c/00ad6f9ed27f91925d4d3fb7aab50a60d774f998"},{"url":"https://git.kernel.org/stable/c/5380c7f6335cc6d77eb77d065105e81155c4d9d3"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The race is reached only through local DM_TABLE_LOAD ioctls on /dev/mapper/control (ctl_ioctl → table_load → dm_setup_md_queue walking md->table_devices). No network, Bluetooth, or physical-bus path loads a device-mapper table.\nAC:L - The attacker issues two concurrent table-load ioctls on a mapped device they created, owning both sides of the race: one load fails after populate_table added devices and dm_table_destroy frees them while the other walks the list. Device-mapper is a standard distro component, not a rare config.\nPR:L - ctl_ioctl requires capable(CAP_SYS_ADMIN). In the most severe reasonable deployment that capability is held by a container, CSI, or LVM/storage-stack administrator with delegated /dev/mapper/control rather than exclusive host root, matching kernel-CNA scoring of other device-mapper ioctl bugs as Low.\nUI:N - The attacker performs every step with its own ioctls (DM_DEV_CREATE then concurrent DM_TABLE_LOAD). No separate victim action such as mounting a filesystem or opening a file is required.\nS:U - The use-after-free of struct table_device stays inside the host kernel's security authority. This is standard kernel memory corruption, not a VM, IOMMU, or sandbox boundary crossing.\nC:H - dm_setup_md_queue walks md->table_devices and dereferences td->dm_dev.bdev after a concurrent dm_table_destroy has kfree'd the table_device. Reclaiming that slab object yields an arbitrary kernel read, so confidentiality is High.\nI:H - The same use-after-free lets an attacker spray a replacement object so bd_link_disk_holder writes through an attacker-controlled bdev pointer, a classic heap UAF write and control-flow hijack primitive, so integrity is High.\nA:H - Walking a freed table_device list entry or calling bd_link_disk_holder on a dangling bdev causes a kernel oops, panic, or hang, which is a complete availability impact."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T08:56:12.250Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.2","versionEndExcluding":"6.1.188"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.6.157"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.12.110"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.18.51"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"7.2.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"7.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0.16"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}