CVE-2022-50022
drivers:md:fix a potential use-after-free bug
Check your servers for CVE-2022-50022
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50022 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.27%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 20.7% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c, before 7470a4314b239e9a9580f248fdf4c9a92805490e affected from 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c, before 09cf99bace7789d91caa8d10fbcfc8b2fb35857f affected from 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c, before e5b3dd2d92c4511e81f6e4ec9c5bb7ad25e03d13 affected from 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c, before f5d46f1b47f65da1faf468277b261eb78c8e25b5 affected from 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c, before 5d8325fd15892c8ab1146edc1d7ed8463de39636 affected from 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c, before d9b94c3ace549433de8a93eeb27b0391fc8ac406 affected from 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c, before eb3a4f73f43f839df981dda5859e8e075067a360 affected from 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c, before 104212471b1c1817b311771d817fb692af983173
Other versions: unaffected
|
| Linux |
affected 4.1 unaffected before 4.1 unaffected from 4.9.326 up to and including 4.9.* unaffected from 4.14.291 up to and including 4.14.* unaffected from 4.19.256 up to and including 4.19.* unaffected from 5.4.211 up to and including 5.4.* unaffected from 5.10.138 up to and including 5.10.* unaffected from 5.15.63 up to and including 5.15.* unaffected from 5.19.4 up to and including 5.19.* unaffected 6.0 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50022 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50022
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-50022
trivy image --scanners vuln IMAGE | grep CVE-2022-50022
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/7470a4314b239e9a9580f248fdf4c9a92805490e git.kernel.org
- https://git.kernel.org/stable/c/09cf99bace7789d91caa8d10fbcfc8b2fb35857f git.kernel.org
- https://git.kernel.org/stable/c/e5b3dd2d92c4511e81f6e4ec9c5bb7ad25e03d13 git.kernel.org
- https://git.kernel.org/stable/c/f5d46f1b47f65da1faf468277b261eb78c8e25b5 git.kernel.org
- https://git.kernel.org/stable/c/5d8325fd15892c8ab1146edc1d7ed8463de39636 git.kernel.org
- https://git.kernel.org/stable/c/d9b94c3ace549433de8a93eeb27b0391fc8ac406 git.kernel.org
- https://git.kernel.org/stable/c/eb3a4f73f43f839df981dda5859e8e075067a360 git.kernel.org
- https://git.kernel.org/stable/c/104212471b1c1817b311771d817fb692af983173 git.kernel.org
Source: the record CVE-2022-50022 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse