md/raid10: fix leak of 'r10bio->remaining' for recovery
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 24afd80d99f80a79d8824d2805114b8b067e9823 · < 11141630f03efffdfe260b3582b2d93d38171b97| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
md/raid10: fix leak of 'r10bio->remaining' for recovery
raid10_sync_request() will add 'r10bio->remaining' for both rdev and replacement rdev. However, if the read io fails, recovery_request_write() returns without issuing the write io, in this case, end_sync_request() is only called once and 'remaining' is leaked, cause an io hang.
Fix the problem by decreasing 'remaining' according to if 'bio' and 'repl_bio' is valid.
From the CVE record · Linux
A flaw in Linux kernel md/raid10 recovery handling can leave a request count uncleared when a read I/O fails. This can cause an I/O hang; the input does not establish whether an attacker can trigger it or whether access or user interaction is required.
Engineers running Linux kernel systems that use md/raid10 should check their kernel versions; affected versions are not specified.