CVE-2022-49987

md: call __md_stop_writes in md_stop

MEDIUM
5.5
CVSS Score
Published: June 18, 2025 at 11:00 AM UTC
Updated: June 17, 2026 at 05:19 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.12 ≤ v < 4.14.2924.12 ≤ v < 4.19.2574.12 ≤ v < 5.10.1404.12 ≤ v < 5.15.644.12 ≤ v < 5.19.64.12 ≤ v < 5.4.2124.12 ≤ v < 6.04.15 ≤ v < 4.19.2574.20 ≤ v < 5.4.2125.11 ≤ v < 5.15.645.16 ≤ v < 5.19.65.5 ≤ v < 5.10.1404.1248df498daf62e1292868005675331929305067f06.0 rc16.0 rc2
Vendor states this is fixed in 0dd84b319352bb8ba64752d4e45396d8b13e6018 (fixed)
Vendor states this is fixed in 1678ca35b80a94d474fdc31e2497ce5d7ed52512 (fixed)
Vendor states this is fixed in 661c01b2181d9413c799127f13143583b69f20fd (fixed)
Vendor states this is fixed in 690b5c90fd2d81fd1d2b6110fa36783232f6dce2 (fixed)
Vendor states this is fixed in 8e7fb19f1a744fd34e982633ced756fee0498ef7 (fixed)
Vendor states this is fixed in a5a58fab556bfe618b4c9719eb85712d78c6cb10 (fixed)
Vendor states this is fixed in f42a9819ba84bed2e609a4dff56af37063dcabdc (fixed)
Vendor states this is fixed in 4.12 (unaffected)
Vendor states this is fixed in 4.14.292 (unaffected)
Vendor states this is fixed in 4.19.257 (unaffected)
Vendor states this is fixed in 5.10.140 (unaffected)
Vendor states this is fixed in 5.15.64 (unaffected)
Vendor states this is fixed in 5.19.6 (unaffected)
Vendor states this is fixed in 5.4.212 (unaffected)
Vendor states this is fixed in 6.0 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0dd84b319352bb8ba64752d4e45396d8b13e6018
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1678ca35b80a94d474fdc31e2497ce5d7ed52512
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/661c01b2181d9413c799127f13143583b69f20fd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/690b5c90fd2d81fd1d2b6110fa36783232f6dce2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8e7fb19f1a744fd34e982633ced756fee0498ef7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a5a58fab556bfe618b4c9719eb85712d78c6cb10
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f42a9819ba84bed2e609a4dff56af37063dcabdc

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card