5.5medium
md raid: fix hang when stopping arrays with metadata through dm-raid
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: md raid: fix hang when stopping arrays with metadata through dm-raid When using device-mapper's dm-raid target, stopping a RAID array can cause the system to hang under specific conditions. This occurs when: - A dm-raid managed device tree is suspended from top to bottom (the top-level RAID device is suspended first, followed by its underlying metadata and data devices) - The top-level RAID device is then removed Removing the top-level device triggers a hang in the following sequence: the dm-raid destructor calls md_stop(), which tries to flush the write-intent bitmap by writing to the metadata sub-devices. However, these devices are already suspended, making them unable to complete the write-intent operations and causing an indefinite block. Fix: - Prevent bitmap flushing when md_stop() is called from dm-raid destructor context and avoid a quiescing/unquescing cycle which could also cause I/O - Still allow write-intent bitmap flushing when called from dm-raid suspend context This ensures that RAID array teardown can complete successfully even when the underlying devices are in a suspended state. This second patch uses md_is_rdwr() to distinguish between suspend and destructor paths as elaborated on above.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 0dd84b319352bb8ba64752d4e45396d8b13e6018 before 63054027d95200b04f3cf624faa7817e0555d56a, from 0dd84b319352bb8ba64752d4e45396d8b13e6018 before 24783dd06de870d646c25207bae186f78195f912, from 0dd84b319352bb8ba64752d4e45396d8b13e6018 before 338378dfffbdbb8d37a18f0a0c0358812671f91e, from 0dd84b319352bb8ba64752d4e45396d8b13e6018 before cefcb9297fbdb6d94b61787b4f8d84f55b741470, 1678ca35b80a94d474fdc31e2497ce5d7ed52512, 690b5c90fd2d81fd1d2b6110fa36783232f6dce2, 8e7fb19f1a744fd34e982633ced756fee0498ef7, a5a58fab556bfe618b4c9719eb85712d78c6cb10 and 9 more Not affected: before 6.0, from 6.12.114 up to 6.12.*, from 6.18.16 up to 6.18.*, from 6.19.6 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 4.14.292 before 4.15, from 4.19.257 before 4.20, from 5.4.212 before 5.5, from 5.10.140 before 5.11, from 5.15.64 before 5.16, from 5.19.6 before 6.0, from 6.0.1 before 6.18.16, from 6.19 before 6.19.6 and 1 more | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: md raid: fix hang when stopping arrays with metadata through dm-raid When using device-mapper's dm-raid target, stopping a RAID array can cause the system to hang under specific conditions. This occurs when: - A dm-raid managed device tree is suspended from top to bottom (the top-level RAID device is suspended first, followed by its underlying metadata and data devices) - The top-level RAID device is then removed Removing the top-level device triggers a hang in the following sequence: the dm-raid destructor calls md_stop(), which tries to flush the write-intent bitmap by writing to the metadata sub-devices. However, these devices are already suspended, making them unable to complete the write-intent operations and causing an indefinite block. Fix: - Prevent bitmap flushing when md_stop() is called from dm-raid destructor context and avoid a quiescing/unquescing cycle which could also cause I/O - Still allow write-intent bitmap flushing when called from dm-raid suspend context This ensures that RAID array teardown can complete successfully even when the underlying devices are in a suspended state. This second patch uses md_is_rdwr() to distinguish between suspend and destructor paths as elaborated on above.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: md raid: corrige el cuelgue al detener arreglos con metadatos a través de dm-raid Al usar el objetivo dm-raid de device-mapper, detener un arreglo RAID puede provocar que el sistema se cuelgue bajo condiciones específicas. Esto ocurre cuando: - Un árbol de dispositivos gestionado por dm-raid se suspende de arriba a abajo (el dispositivo RAID de nivel superior se suspende primero, seguido de sus dispositivos subyacentes de metadatos y datos) - El dispositivo RAID de nivel superior se elimina a continuación La eliminación del dispositivo de nivel superior desencadena un cuelgue en la siguiente secuencia: el destructor de dm-raid llama a md_stop(), que intenta vaciar el mapa de bits de intención de escritura escribiendo en los subdispositivos de metadatos. Sin embargo, estos dispositivos ya están suspendidos, lo que les impide completar las operaciones de intención de escritura y provoca un bloqueo indefinido. Solución: - Evitar el vaciado del mapa de bits cuando se llama a md_stop() desde el contexto del destructor de dm-raid y evitar un ciclo de quiescencia/desquiescencia que también podría causar E/S - Seguir permitiendo el vaciado del mapa de bits de intención de escritura cuando se llama desde el contexto de suspensión de dm-raid Esto asegura que el desmantelamiento del arreglo RAID pueda completarse con éxito incluso cuando los dispositivos subyacentes están en un estado suspendido. Este segundo parche utiliza md_is_rdwr() para distinguir entre las rutas de suspensión y de destructor, como se explicó anteriormente.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43309 changed 2026-11-06 | CVE Terms of Use |
| NVD | CVE-2026-43309 changed 2026-11-11 | Public domain |