CVE-2022-49987

md: call __md_stop_writes in md_stop

State
Published
Severity
Not scored
Published
Jun 18, 2025
Updated
May 11, 2026
Reserved
Jun 18, 2025

Read the record on cve.org

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 48df498daf62e1292868005675331929305067f0 to before 1678ca35b80a94d474fdc31e2497ce5d7ed52512Affected
  • 48df498daf62e1292868005675331929305067f0 to before 690b5c90fd2d81fd1d2b6110fa36783232f6dce2Affected
  • 48df498daf62e1292868005675331929305067f0 to before 8e7fb19f1a744fd34e982633ced756fee0498ef7Affected
  • 48df498daf62e1292868005675331929305067f0 to before a5a58fab556bfe618b4c9719eb85712d78c6cb10Affected
  • 48df498daf62e1292868005675331929305067f0 to before 661c01b2181d9413c799127f13143583b69f20fdAffected
  • 48df498daf62e1292868005675331929305067f0 to before f42a9819ba84bed2e609a4dff56af37063dcabdcAffected
  • 48df498daf62e1292868005675331929305067f0 to before 0dd84b319352bb8ba64752d4e45396d8b13e6018Affected
LinuxLinux
  • 4.12Affected
  • before 4.12Not affected
  • 4.14.292 through 4.14.*Not affected
  • 4.19.257 through 4.19.*Not affected
  • 5.4.212 through 5.4.*Not affected
  • 5.10.140 through 5.10.*Not affected
  • 5.15.64 through 5.15.*Not affected
  • 5.19.6 through 5.19.*Not affected
  • 6.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.