CVE-2022-50022 Details
Description
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.
A use-after-free vulnerability has been identified in the Linux kernel's RAID5 driver. The issue arises because the function 'raid5_release_stripe' releases a reference to a stripe handle, which may lead to the handle being freed while it is still in use. This flaw can potentially be exploited to cause memory corruption.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/09cf99bace7789d91caa8d10fbcfc8b2fb35857f | kernel.org | Patch |
| https://git.kernel.org/stable/c/104212471b1c1817b311771d817fb692af983173 | kernel.org | Patch |
| https://git.kernel.org/stable/c/5d8325fd15892c8ab1146edc1d7ed8463de39636 | kernel.org | Patch |
| https://git.kernel.org/stable/c/7470a4314b239e9a9580f248fdf4c9a92805490e | kernel.org | Patch |
| https://git.kernel.org/stable/c/d9b94c3ace549433de8a93eeb27b0391fc8ac406 | kernel.org | Patch |
| https://git.kernel.org/stable/c/e5b3dd2d92c4511e81f6e4ec9c5bb7ad25e03d13 | kernel.org | Patch |
| https://git.kernel.org/stable/c/eb3a4f73f43f839df981dda5859e8e075067a360 | kernel.org | Patch |
| https://git.kernel.org/stable/c/f5d46f1b47f65da1faf468277b261eb78c8e25b5 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.1, < 4.9.326 >= 4.10, < 4.14.291 >= 4.15, < 4.19.256 >= 4.20, < 5.4.211 >= 5.5, < 5.10.138 >= 5.11, < 5.15.63 >= 5.16, < 5.19.4 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 13, 2025 | Initial Analysis | [email protected] |
| Jun 18, 2025 | New CVE Received | kernel.org |