Bug 2373600 (CVE-2022-49987) - CVE-2022-49987 kernel: md: call __md_stop_writes in md_stop
Summary: CVE-2022-49987 kernel: md: call __md_stop_writes in md_stop
Keywords:
Status: NEW
Alias: CVE-2022-49987
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 12:10 UTC by OSIDB Bzimport
Modified: 2025-06-20 09:55 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 12:10:11 UTC
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

Comment 1 Avinash Hanwate 2025-06-19 06:02:43 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061823-CVE-2022-49987-1daa@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.