CVE-2022-49987 md: call __md_stop_writes in md_stop
A race condition in the Linux kernel MD driver can cause a KASAN issue and potential denial of service when stopping RAID devices.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-49987?
CVE-2022-49987 is a medium-severity vulnerability in Linux kernel, published on 18 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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
Which versions are affected by CVE-2022-49987?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-49987?
Apply the vendor's patch.
Is CVE-2022-49987 being exploited?
There is no known exploitation of CVE-2022-49987 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-49987, GHSA-x238-pmq6-pv77, UBUNTU-CVE-2022-49987.