CVE-2022-50022: drivers:md:fix a potential use-after-free bug
Vulnerability summary
CVE-2022-50022 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.26% chance of exploitation in the next 30 days, higher than 17.5% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 16 · Related 7Timeline
- 18-06-2025PublishedVulnerability first disclosed.
- 05-08-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.26%
Chance of exploitation in the next 30 days
Percentile
18%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.25% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu111 products
- linuxAll versions (No fix recorded) | < 4.15.0-197.208 | < 5.4.0-132.148 | < 5.15.0-53.59
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 4.15.0-1143.155 | < 5.4.0-1089.97 | < 5.15.0-1023.27
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c, < 7470a4314b239e9a9580f248fdf4c9a92805490e | ≥ 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c, < 09cf99bace7789d91caa8d10fbcfc8b2fb35857f | ≥ 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c, < e5b3dd2d92c4511e81f6e4ec9c5bb7ad25e03d13 | ≥ 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c, < f5d46f1b47f65da1faf468277b261eb78c8e25b5 | ≥ 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c, < 5d8325fd15892c8ab1146edc1d7ed8463de39636 | ≥ 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c, < d9b94c3ace549433de8a93eeb27b0391fc8ac406 | ≥ 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c, < eb3a4f73f43f839df981dda5859e8e075067a360 | ≥ 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c, < 104212471b1c1817b311771d817fb692af983173 | 4.1
- 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
Debian1 product
- linux< 6.0.2-1
3 vendors · 114 products