CVE-2022-49987

Source
https://cve.org/CVERecord?id=CVE-2022-49987
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49987.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49987
Downstream
Related
Published
2025-06-18T11:00:48.687Z
Modified
2026-04-11T12:44:45.405953Z
Summary
md: call __md_stop_writes in md_stop
Details

In the Linux kernel, the following vulnerability has been resolved:

md: call _mdstopwrites in mdstop

From the link [1], we can see raid1d was running even after the path raiddtr -> mdstop -> _mdstop.

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

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49987.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
48df498daf62e1292868005675331929305067f0
Fixed
1678ca35b80a94d474fdc31e2497ce5d7ed52512
Fixed
690b5c90fd2d81fd1d2b6110fa36783232f6dce2
Fixed
8e7fb19f1a744fd34e982633ced756fee0498ef7
Fixed
a5a58fab556bfe618b4c9719eb85712d78c6cb10
Fixed
661c01b2181d9413c799127f13143583b69f20fd
Fixed
f42a9819ba84bed2e609a4dff56af37063dcabdc
Fixed
0dd84b319352bb8ba64752d4e45396d8b13e6018

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49987.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.12.0
Fixed
4.14.292
Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
4.19.257
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.212
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.140
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.64
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.19.6

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49987.json"