drivers:md:fix a potential use-after-free bug
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c · < d9b94c3ace549433de8a93eeb27b0391fc8ac406| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drivers:md:fix a potential use-after-free bug
In line 2884, "raid5_release_stripe(sh);" drops the reference to sh and may cause sh to be released. However, sh is subsequently used in lines 2886 "if (sh->batch_head && sh != sh->batch_head)". This may result in an use-after-free bug.
It can be fixed by moving "raid5_release_stripe(sh);" to the bottom of the function.
From the CVE record · Linux
The Linux kernel RAID5 driver may use a stripe after releasing it, causing a use-after-free. The input does not specify how an attacker could trigger the bug, or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check whether their kernel includes the affected RAID5 code; affected versions are not specified.