md/raid1: free r1_bio when REQ_NOWAIT is set and read would block on retry
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5aa705039c4fca84575539bfa2b8a28454a3d2ca · < 69ad6ce47f9bf2b9fe0ed69b042db993d33bbf12| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
md/raid1: free r1_bio when REQ_NOWAIT is set and read would block on retry
When a read is retried, raid1_read_request() may be called with a pre-allocated r1_bio. If wait_read_barrier() fails for a REQ_NOWAIT read, the bio is completed and the function returns immediately. In this case the existing r1_bio is leaked.
This fixes a leak of pre-allocated r1_bio structures for retried reads.
From the CVE record · Linux
The Linux kernel's md/raid1 code can leak a pre-allocated r1_bio structure when a retried REQ_NOWAIT read would block. The read is completed, but the structure is not freed. The input does not specify attacker access or user-interaction requirements.
Engineers running Linux kernels with md/raid1 should check their versions; affected versions are not specified.