md/raid1,raid10: fix deadlock in read error recovery path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
md/raid1,raid10: fix deadlock in read error recovery path
raid1d and raid10d may resubmit a split md cloned bio while handling a read error. In this case, resubmitting the bio can lead to a deadlock if the array is suspended before md_handle_request() acquires an active_io reference via percpu_ref_tryget_live().
Since the cloned bio already holds an active_io reference, trying to acquire another reference via percpu_ref_tryget_live() can lead to a deadlock while the array is suspended.
Fix this by using percpu_ref_get() for md cloned bios.
From the CVE record · Linux
The Linux kernel's md/raid1 and raid10 read error recovery path can deadlock when a cloned read request is resubmitted while the array is suspended. The input does not describe an attacker action, access requirements, or user interaction.
Engineers running Linux kernel RAID1 or RAID10 arrays should check their kernel versions; affected versions are not specified.