# CVE-2022-49987: md: call __md_stop_writes in md_stop

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2025-06-18T11:00:48.687Z
- Modified: 2026-11-05T20:17:19.710Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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

(As written by CVE List.)

## Affected

- Linux Linux: from 48df498daf62e1292868005675331929305067f0 before 1678ca35b80a94d474fdc31e2497ce5d7ed52512; from 48df498daf62e1292868005675331929305067f0 before 690b5c90fd2d81fd1d2b6110fa36783232f6dce2; from 48df498daf62e1292868005675331929305067f0 before 8e7fb19f1a744fd34e982633ced756fee0498ef7; from 48df498daf62e1292868005675331929305067f0 before a5a58fab556bfe618b4c9719eb85712d78c6cb10; from 48df498daf62e1292868005675331929305067f0 before 661c01b2181d9413c799127f13143583b69f20fd; from 48df498daf62e1292868005675331929305067f0 before f42a9819ba84bed2e609a4dff56af37063dcabdc; from 48df498daf62e1292868005675331929305067f0 before 0dd84b319352bb8ba64752d4e45396d8b13e6018; 4.12 (not affected: before 4.12; from 4.14.292 up to 4.14.*; from 4.19.257 up to 4.19.*; from 5.4.212 up to 5.4.*; from 5.10.140 up to 5.10.*; from 5.15.64 up to 5.15.*; from 5.19.6 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 4.12 before 4.14.292; from 4.15 before 4.19.257; from 4.20 before 5.4.212; from 5.5 before 5.10.140; from 5.11 before 5.15.64; from 5.16 before 5.19.6; 6.0

## References

- <https://git.kernel.org/stable/c/1678ca35b80a94d474fdc31e2497ce5d7ed52512> (patch)
- <https://git.kernel.org/stable/c/690b5c90fd2d81fd1d2b6110fa36783232f6dce2> (patch)
- <https://git.kernel.org/stable/c/8e7fb19f1a744fd34e982633ced756fee0498ef7> (patch)
- <https://git.kernel.org/stable/c/a5a58fab556bfe618b4c9719eb85712d78c6cb10> (patch)
- <https://git.kernel.org/stable/c/661c01b2181d9413c799127f13143583b69f20fd> (patch)
- <https://git.kernel.org/stable/c/f42a9819ba84bed2e609a4dff56af37063dcabdc> (patch)
- <https://git.kernel.org/stable/c/0dd84b319352bb8ba64752d4e45396d8b13e6018> (patch)

## Sources

- CVE List: [CVE-2022-49987](https://www.cve.org/CVERecord?id=CVE-2022-49987), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2022-49987](https://nvd.nist.gov/vuln/detail/CVE-2022-49987), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2022-49987 · Whole record: https://cve.day/CVE-2022-49987.json · Rebuilt by cve.day 2026-11-25T22:58:20.996Z
