CVE-2022-49987
md: call __md_stop_writes in md_stop
Check your servers for CVE-2022-49987
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-49987 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:
md: call __md_stop_writes in md_stop
From the link [1], we can see raid1d was running even after the path raid_dtr -> md_stop -> __md_stop.
Let's stop write first in destructor to align with normal md-raid to fix the KASAN issue.
[1]. https://lore.kernel.org/linux-raid/CAPhsuW5gc4AakdGNdF8ubpezAuDLFOYUO_sfMZcec6hQFm8nhg@mail.gmail.com/T/#m7f12bf90481c02c6d2da68c64aeed4779b7df74a
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.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 48df498daf62e1292868005675331929305067f0, before 1678ca35b80a94d474fdc31e2497ce5d7ed52512 affected from 48df498daf62e1292868005675331929305067f0, before 690b5c90fd2d81fd1d2b6110fa36783232f6dce2 affected from 48df498daf62e1292868005675331929305067f0, before 8e7fb19f1a744fd34e982633ced756fee0498ef7 affected from 48df498daf62e1292868005675331929305067f0, before a5a58fab556bfe618b4c9719eb85712d78c6cb10 affected from 48df498daf62e1292868005675331929305067f0, before 661c01b2181d9413c799127f13143583b69f20fd affected from 48df498daf62e1292868005675331929305067f0, before f42a9819ba84bed2e609a4dff56af37063dcabdc affected from 48df498daf62e1292868005675331929305067f0, before 0dd84b319352bb8ba64752d4e45396d8b13e6018
Other versions: unaffected
|
| Linux |
affected 4.12 unaffected before 4.12 unaffected from 4.14.292 up to and including 4.14.* unaffected from 4.19.257 up to and including 4.19.* unaffected from 5.4.212 up to and including 5.4.* unaffected from 5.10.140 up to and including 5.10.* unaffected from 5.15.64 up to and including 5.15.* unaffected from 5.19.6 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-49987 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49987
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-49987
trivy image --scanners vuln IMAGE | grep CVE-2022-49987
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/1678ca35b80a94d474fdc31e2497ce5d7ed52512 git.kernel.org
- https://git.kernel.org/stable/c/690b5c90fd2d81fd1d2b6110fa36783232f6dce2 git.kernel.org
- https://git.kernel.org/stable/c/8e7fb19f1a744fd34e982633ced756fee0498ef7 git.kernel.org
- https://git.kernel.org/stable/c/a5a58fab556bfe618b4c9719eb85712d78c6cb10 git.kernel.org
- https://git.kernel.org/stable/c/661c01b2181d9413c799127f13143583b69f20fd git.kernel.org
- https://git.kernel.org/stable/c/f42a9819ba84bed2e609a4dff56af37063dcabdc git.kernel.org
- https://git.kernel.org/stable/c/0dd84b319352bb8ba64752d4e45396d8b13e6018 git.kernel.org
Source: the record CVE-2022-49987 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse