md/bitmap: fix GPF in write_page caused by resize race
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.10.252, Kernel 5.15.202, Kernel 6.1.165 and 12 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=3.5 <5.10.252, >=5.11 <5.15.202, >=5.16 <6.1.165, >=6.13 <6.18.16, >=6.19 <6.19.6, >=6.2 <6.6.128, >=6.7 <6.12.75, >=d60b479d177a5735b6b4db6ee5280ef6653f50e7 <46ef85f854dfa9d5226b3c1c46493d79556c9589, >=d60b479d177a5735b6b4db6ee5280ef6653f50e7 <5f73c8b33df9a605a591eab72d43a969600c1f8c, >=d60b479d177a5735b6b4db6ee5280ef6653f50e7 <9a6f8cd28bb9bb6ed86a6df19331fb08016dee7f, >=d60b479d177a5735b6b4db6ee5280ef6653f50e7 <a437e3bf30e32846079e470c1ba5ee790bccdf89, >=d60b479d177a5735b6b4db6ee5280ef6653f50e7 <d3af62411e19752c663fe4f424dbf49d95a4cc7c, >=d60b479d177a5735b6b4db6ee5280ef6653f50e7 <d92b8fac294b5f915c50e65ce4ae2262e53614ec, >=d60b479d177a5735b6b4db6ee5280ef6653f50e7 <ebcacc7ca22d5e8a03a970f0621ae1d1356b9ae8, =3.5, >=d60b479d177a5735b6b4db6ee5280ef6653f50e7 <140cc839fbeb1ddb33a8da8811b716d88d3905b7 | 5.10.252, 5.15.202, 6.1.165, 6.18.16, 6.19.6, 6.6.128, 6.12.75, 46ef85f854dfa9d5226b3c1c46493d79556c9589, 5f73c8b33df9a605a591eab72d43a969600c1f8c, 9a6f8cd28bb9bb6ed86a6df19331fb08016dee7f, a437e3bf30e32846079e470c1ba5ee790bccdf89, d3af62411e19752c663fe4f424dbf49d95a4cc7c, d92b8fac294b5f915c50e65ce4ae2262e53614ec, ebcacc7ca22d5e8a03a970f0621ae1d1356b9ae8, 140cc839fbeb1ddb33a8da8811b716d88d3905b7 |
| linux-kernel: Kernel | >=3.5.0 <5.10.252, >=5.11.0 <5.15.202, >=5.16.0 <6.1.165, >=6.13.0 <6.18.16, >=6.19.0 <6.19.6, >=6.2.0 <6.6.128, >=6.7.0 <6.12.75 | 5.10.252, 5.15.202, 6.1.165, 6.18.16, 6.19.6, 6.6.128, 6.12.75 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket