md/raid10: fix writes_pending leak on write request failures
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c9aa889b035fca4598ae985a0f0c76ebbb547ad2 · < e045d6ed33f8faa3e3dd6dc33c62ec01e3ad275d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
md/raid10: fix writes_pending leak on write request failures
raid10_make_request() acquires a writes_pending reference with md_write_start() before dispatching write requests. Several failure paths in raid10_write_request() complete the bio and return without reaching the normal write completion path, causing the corresponding md_write_end() to be skipped.
Make raid10_write_request() return a status indicating whether the write request was successfully queued. This allows raid10_make_request() to release the writes_pending reference with md_write_end() when a write request fails.
From the CVE record · Linux
The Linux kernel’s md/raid10 code can leak a writes_pending reference when a RAID10 write request fails before it is queued. This occurs on write-request failure paths; the input does not specify authentication requirements or whether user interaction is needed.
Engineers running Linux kernels with md/raid10 should check whether their kernel includes the fix; affected versions are not specified.