CVE-2022-50022

drivers:md:fix a potential use-after-free bug

HIGH
7.8
CVSS Score
Published: June 18, 2025 at 11:01 AM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.1 ≤ v < 4.14.2914.1 ≤ v < 4.19.2564.1 ≤ v < 4.9.3264.1 ≤ v < 5.10.1384.1 ≤ v < 5.15.634.1 ≤ v < 5.19.44.1 ≤ v < 5.4.2114.1 ≤ v < 6.04.10 ≤ v < 4.14.2914.15 ≤ v < 4.19.2564.20 ≤ v < 5.4.2115.11 ≤ v < 5.15.635.16 ≤ v < 5.19.45.5 ≤ v < 5.10.1384.159fc630b8b5f9f21c8ce3ba153341c107dce1b0c
Vendor states this is fixed in 09cf99bace7789d91caa8d10fbcfc8b2fb35857f (fixed)
Vendor states this is fixed in 104212471b1c1817b311771d817fb692af983173 (fixed)
Vendor states this is fixed in 5d8325fd15892c8ab1146edc1d7ed8463de39636 (fixed)
Vendor states this is fixed in 7470a4314b239e9a9580f248fdf4c9a92805490e (fixed)
Vendor states this is fixed in d9b94c3ace549433de8a93eeb27b0391fc8ac406 (fixed)
Vendor states this is fixed in e5b3dd2d92c4511e81f6e4ec9c5bb7ad25e03d13 (fixed)
Vendor states this is fixed in eb3a4f73f43f839df981dda5859e8e075067a360 (fixed)
Vendor states this is fixed in f5d46f1b47f65da1faf468277b261eb78c8e25b5 (fixed)
Vendor states this is fixed in 4.1 (unaffected)
Vendor states this is fixed in 4.14.291 (unaffected)
Vendor states this is fixed in 4.19.256 (unaffected)
Vendor states this is fixed in 4.9.326 (unaffected)
Vendor states this is fixed in 5.10.138 (unaffected)
Vendor states this is fixed in 5.15.63 (unaffected)
Vendor states this is fixed in 5.19.4 (unaffected)
Vendor states this is fixed in 5.4.211 (unaffected)
Vendor states this is fixed in 6.0 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/09cf99bace7789d91caa8d10fbcfc8b2fb35857f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/104212471b1c1817b311771d817fb692af983173
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5d8325fd15892c8ab1146edc1d7ed8463de39636
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7470a4314b239e9a9580f248fdf4c9a92805490e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d9b94c3ace549433de8a93eeb27b0391fc8ac406
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e5b3dd2d92c4511e81f6e4ec9c5bb7ad25e03d13
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/eb3a4f73f43f839df981dda5859e8e075067a360
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f5d46f1b47f65da1faf468277b261eb78c8e25b5

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card