Linux
dm: fix race when loading and unloading a table
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 773bfda35c9511734d7f898e2ee73cd60d2a3f38, < b02e35b81176c7d61dd441cc7a2e5c324a82444b
- >= 1a581b72169968f4154b5793828f3bc28b258b35, < 0ea6e5ad4a5817e91f11b4cc1e022e575ed2e7ca
- >= 1a581b72169968f4154b5793828f3bc28b258b35, < a1af1884c960b98c621b6fe2fea1216b78c02152
- >= 1a581b72169968f4154b5793828f3bc28b258b35, < af1f32ccf8051f4691ced11feb452b9d13561727
- >= 1a581b72169968f4154b5793828f3bc28b258b35, < 00ad6f9ed27f91925d4d3fb7aab50a60d774f998
- >= 1a581b72169968f4154b5793828f3bc28b258b35, < 5380c7f6335cc6d77eb77d065105e81155c4d9d3
- 600593707c239bb99486925d65540a5020bc1e58
- >= 6.1.2, < 6.1.188
- >= 6.0.16, < 6.1
Fixed in b02e35b81176c7d61dd441cc7a2e5c324a82444b, 0ea6e5ad4a5817e91f11b4cc1e022e575ed2e7ca, a1af1884c960b98c621b6fe2fea1216b78c02152, af1f32ccf8051f4691ced11feb452b9d13561727, 00ad6f9ed27f91925d4d3fb7aab50a60d774f998, 5380c7f6335cc6d77eb77d065105e81155c4d9d3, 6.1.188, 6.1
- 6.2
Fixed in 0, 6.1.188, 6.6.157, 6.12.110, 6.18.51, 7.2.5, 7.3
Mitigation
Upgrade Linux to b02e35b81176c7d61dd441cc7a2e5c324a82444b or 0ea6e5ad4a5817e91f11b4cc1e022e575ed2e7ca or a1af1884c960b98c621b6fe2fea1216b78c02152 or af1f32ccf8051f4691ced11feb452b9d13561727 or 00ad6f9ed27f91925d4d3fb7aab50a60d774f998 or 5380c7f6335cc6d77eb77d065105e81155c4d9d3 or 6.1.188 or 6.1 or later.
Upgrade Linux to 0 or 6.1.188 or 6.6.157 or 6.12.110 or 6.18.51 or 7.2.5 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.