dm: fix unlocked test for dm_suspended_md
CVE-2026-46327
Currently unrated
What is CVE-2026-46327?
In the Linux kernel, the following vulnerability has been resolved:
dm: fix unlocked test for dm_suspended_md
The function dm_blk_report_zones tests if the device is suspended with the "dm_suspended_md" call. However, this function is called without holding any locks, so the device may be suspended just after it.
Move the call to dm_suspended_md after dm_get_live_table, so that the device can't be suspended after the suspended state was tested.
Affected Version(s)
Linux f9c1bdf24615303d48a2d0fd629c88f3189563aa < 175ac0a6115400278d3900f5a04a58b17b3f6cd0
Linux 37f53a2c60d03743e0eacf7a0c01c279776fef4e < 7a3385e97af2b6f485fef11e82d8c29adee4be93
Linux 37f53a2c60d03743e0eacf7a0c01c279776fef4e