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

Status: published. Published: 2025-06-18. Updated: 2026-11-05.

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

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Linux / Linux: ≥ 48df498daf62e1292868005675331929305067f0; < 1678ca35b80a94d474fdc31e2497ce5d7ed52512 (affected, git); ≥ 48df498daf62e1292868005675331929305067f0; < 690b5c90fd2d81fd1d2b6110fa36783232f6dce2 (affected, git); ≥ 48df498daf62e1292868005675331929305067f0; < 8e7fb19f1a744fd34e982633ced756fee0498ef7 (affected, git); ≥ 48df498daf62e1292868005675331929305067f0; < a5a58fab556bfe618b4c9719eb85712d78c6cb10 (affected, git); ≥ 48df498daf62e1292868005675331929305067f0; < 661c01b2181d9413c799127f13143583b69f20fd (affected, git); ≥ 48df498daf62e1292868005675331929305067f0; < f42a9819ba84bed2e609a4dff56af37063dcabdc (affected, git); ≥ 48df498daf62e1292868005675331929305067f0; < 0dd84b319352bb8ba64752d4e45396d8b13e6018 (affected, git). Source: CNA: Linux
- Linux / Linux: 4.12 (affected); ≥ 0; < 4.12 (unaffected, semver); ≥ 4.14.292; ≤ 4.14.* (unaffected, semver); ≥ 4.19.257; ≤ 4.19.* (unaffected, semver); ≥ 5.4.212; ≤ 5.4.* (unaffected, semver); ≥ 5.10.140; ≤ 5.10.* (unaffected, semver); ≥ 5.15.64; ≤ 5.15.* (unaffected, semver); ≥ 5.19.6; ≤ 5.19.* (unaffected, semver); ≥ 6.0; ≤ * (unaffected, original_commit_for_fix). Source: CNA: Linux

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: 0.25% as of 2026-11-05; percentile 16.95%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: Not reported

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://git.kernel.org/stable/c/1678ca35b80a94d474fdc31e2497ce5d7ed52512 (CNA: Linux)

- https://git.kernel.org/stable/c/690b5c90fd2d81fd1d2b6110fa36783232f6dce2 (CNA: Linux)

- https://git.kernel.org/stable/c/8e7fb19f1a744fd34e982633ced756fee0498ef7 (CNA: Linux)

- https://git.kernel.org/stable/c/a5a58fab556bfe618b4c9719eb85712d78c6cb10 (CNA: Linux)

- https://git.kernel.org/stable/c/661c01b2181d9413c799127f13143583b69f20fd (CNA: Linux)

- https://git.kernel.org/stable/c/f42a9819ba84bed2e609a4dff56af37063dcabdc (CNA: Linux)

- https://git.kernel.org/stable/c/0dd84b319352bb8ba64752d4e45396d8b13e6018 (CNA: Linux)

## Provenance

- CNA: Linux: https://www.cve.org/CVERecord?id=CVE-2022-49987; retrieved 2026-11-05; source updated 2026-11-05

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2022-49987; retrieved 2026-11-05; source updated Not reported

Revision: 53e822a22235c66383859f12365b22ce8a54a3978ff2d84536c7dc3633890c60

Canonical: https://y2.dev/cve/CVE-2022-49987

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.