md/raid10: fix writes_pending and barrier reference leaks on discard failures
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel fea33968592559a55a3f5a96a6386bebcaf988a8, Kernel 5.16, Kernel 11b35d1906a7277a3d64afe34224133b44327328 and 9 more.
In the Linux kernel, the following vulnerability has been resolved: md/raid10: fix writes_pending and barrier reference leaks on discard failures raid10_make_request() acquires a writes_pending reference with md_write_start() before calling raid10_handle_discard(). Several failure paths in raid10_handle_discard() complete the bio and return without releasing the corresponding reference, causing md_write_end() to be skipped. Call md_write_end() before returning from these failure paths to keep writes_pending accounting balanced. Additionally, discard split allocation failures can occur after wait_barrier() succeeds. Those paths return without calling allow_barrier(), leaking the associated barrier reference. Release the barrier before returning from those paths.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=c9aa889b035fca4598ae985a0f0c76ebbb547ad2 <fea33968592559a55a3f5a96a6386bebcaf988a8, >=5.15.111 <5.16, >=c9aa889b035fca4598ae985a0f0c76ebbb547ad2 <11b35d1906a7277a3d64afe34224133b44327328, >=c9aa889b035fca4598ae985a0f0c76ebbb547ad2 <2d264c00beadcc67f16d683ab27eed28c047ba2e, >=c9aa889b035fca4598ae985a0f0c76ebbb547ad2 <393d687131d8aa8c7e4de2cb494438e145d20fc2, >=c9aa889b035fca4598ae985a0f0c76ebbb547ad2 <80ac31cce55432034a9eb98262c92ace7866e494, >=c9aa889b035fca4598ae985a0f0c76ebbb547ad2 <d1324b41dabd26787559efaeb430643c627c1eb0, =39db562b3fedb93978a7e42dd216b306740959f8, =5.17 | fea33968592559a55a3f5a96a6386bebcaf988a8, 5.16, 11b35d1906a7277a3d64afe34224133b44327328, 2d264c00beadcc67f16d683ab27eed28c047ba2e, 393d687131d8aa8c7e4de2cb494438e145d20fc2, 80ac31cce55432034a9eb98262c92ace7866e494, d1324b41dabd26787559efaeb430643c627c1eb0 |
| linux-kernel: Kernel | >=5.17.0 <6.1.191, >=6.13.0 <6.18.53, >=6.19.0 <7.1.5, >=6.2.0 <6.6.160, >=6.7.0 <6.12.111, >=5.15.111 <5.16 | 6.1.191, 6.18.53, 7.1.5, 6.6.160, 6.12.111, 5.16 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket