4.7medium
md/bitmap: fix GPF in write_page caused by resize race
- Severity
- 4.7medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.09% (higher than 0% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: md/bitmap: fix GPF in write_page caused by resize race A General Protection Fault occurs in write_page() during array resize: RIP: 0010:write_page+0x22b/0x3c0 [md_mod] This is a use-after-free race between bitmap_daemon_work() and __bitmap_resize(). The daemon iterates over `bitmap->storage.filemap` without locking, while the resize path frees that storage via md_bitmap_file_unmap(). `quiesce()` does not stop the md thread, allowing concurrent access to freed pages. Fix by holding `mddev->bitmap_info.mutex` during the bitmap update.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from d60b479d177a5735b6b4db6ee5280ef6653f50e7 before 140cc839fbeb1ddb33a8da8811b716d88d3905b7, from d60b479d177a5735b6b4db6ee5280ef6653f50e7 before ebcacc7ca22d5e8a03a970f0621ae1d1356b9ae8, from d60b479d177a5735b6b4db6ee5280ef6653f50e7 before d3af62411e19752c663fe4f424dbf49d95a4cc7c, from d60b479d177a5735b6b4db6ee5280ef6653f50e7 before d92b8fac294b5f915c50e65ce4ae2262e53614ec, from d60b479d177a5735b6b4db6ee5280ef6653f50e7 before a437e3bf30e32846079e470c1ba5ee790bccdf89, from d60b479d177a5735b6b4db6ee5280ef6653f50e7 before 9a6f8cd28bb9bb6ed86a6df19331fb08016dee7f, from d60b479d177a5735b6b4db6ee5280ef6653f50e7 before 5f73c8b33df9a605a591eab72d43a969600c1f8c, from d60b479d177a5735b6b4db6ee5280ef6653f50e7 before 46ef85f854dfa9d5226b3c1c46493d79556c9589 and 1 more Not affected: before 3.5, from 5.10.252 up to 5.10.*, from 5.15.202 up to 5.15.*, from 6.1.165 up to 6.1.*, from 6.6.128 up to 6.6.*, from 6.12.75 up to 6.12.* | CVE List |
| linux linux_kernel | from 3.5 before 5.10.252, from 5.11 before 5.15.202, from 5.16 before 6.1.165, from 6.2 before 6.6.128, from 6.7 before 6.12.75, from 6.13 before 6.18.16, from 6.19 before 6.19.6 | 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/bitmap: fix GPF in write_page caused by resize race A General Protection Fault occurs in write_page() during array resize: RIP: 0010:write_page+0x22b/0x3c0 [md_mod] This is a use-after-free race between bitmap_daemon_work() and __bitmap_resize(). The daemon iterates over `bitmap->storage.filemap` without locking, while the resize path frees that storage via md_bitmap_file_unmap(). `quiesce()` does not stop the md thread, allowing concurrent access to freed pages. Fix by holding `mddev->bitmap_info.mutex` during the bitmap update.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: md/bitmap: corregir GPF en write_page causado por una carrera de redimensionamiento Ocurre un Fallo de Protección General en write_page() durante el redimensionamiento del array: RIP: 0010:write_page+0x22b/0x3c0 [md_mod] Esto es una carrera de uso después de liberación entre bitmap_daemon_work() y __bitmap_resize(). El demonio itera sobre ’bitmap -> storage.filemap’ sin bloqueo, mientras que la ruta de redimensionamiento libera ese almacenamiento a través de md_bitmap_file_unmap(). ’quiesce()’ no detiene el hilo md, permitiendo acceso concurrente a páginas liberadas. Se corrige manteniendo ’mddev -> bitmap_info.mutex’ durante la actualización del mapa de bits.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43163 changed 2026-11-06 | CVE Terms of Use |
| NVD | CVE-2026-43163 changed 2026-11-11 | Public domain |