dm: fix race when loading and unloading a table
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1a581b72169968f4154b5793828f3bc28b258b35 · < 5380c7f6335cc6d77eb77d065105e81155c4d9d3| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
A race in the Linux kernel's device-mapper table loading can cause an invalid memory access. It occurs when userspace issues two concurrent table-load ioctls, one succeeds, and the other fails; the description does not specify authentication requirements or further attacker impact.
Engineers running the Linux kernel should check whether their installation includes the device-mapper race fix; affected versions are not specified.