# md/raid1: Fix stack memory use after return in raid1_reshape

CVE record · `CVE-2025-38445`

- **Identifiers:** `CVE-2025-38445`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 25 Jul 2025
- **Updated:** 5 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 25 Jul 2025, 15:27 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `afeee514ce7f4cab605beedd03be71ebaf0c5fc8 to before d8a6853d00fbaa810765c8ed2f452a5832273968` (git)
  - affected: `afeee514ce7f4cab605beedd03be71ebaf0c5fc8 to before 12b00ec99624f8da8c325f2dd6e807df26df0025` (git)
  - affected: `afeee514ce7f4cab605beedd03be71ebaf0c5fc8 to before 48da050b4f54ed639b66278d0ae6f4107b2c4e2d` (git)
  - affected: `afeee514ce7f4cab605beedd03be71ebaf0c5fc8 to before 5f35e48b76655e45522df338876dfef88dafcc71` (git)
  - affected: `afeee514ce7f4cab605beedd03be71ebaf0c5fc8 to before df5894014a92ff0196dbc212a7764e97366fd2b7` (git)
  - affected: `afeee514ce7f4cab605beedd03be71ebaf0c5fc8 to before 776e6186dc9ecbdb8a1b706e989166c8a99bbf64` (git)
  - affected: `afeee514ce7f4cab605beedd03be71ebaf0c5fc8 to before 61fd5e93006cf82ec8ee5c115ab5cf4bbd104bdb` (git)
  - affected: `afeee514ce7f4cab605beedd03be71ebaf0c5fc8 to before d67ed2ccd2d1dcfda9292c0ea8697a9d0f2f0d98` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.18`
  - unaffected: `before 4.18` (semver)
  - unaffected: `5.4.296 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.240 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.189 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.146 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.99 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.39 to 6.12.*, inclusive` (semver)
  - unaffected: `6.15.7 to 6.15.*, inclusive` (semver)
  - unaffected: `6.16 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel md/raid1 driver, from 4.18 before the fixed releases, can access a memory pool that was allocated on the stack during a RAID1 reshape after that stack frame has returned, which can cause a kernel panic. The source gives few details on what an attacker needs. Upgrade to 5.4.296, 5.10.240, 5.15.189, 6.1.146, or a later release in those series.

Written 16 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0020, the 9th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 25 Jul 2025, 15:27 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2025-38445)
- 25 Jul 2025, 16:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-38445)

## Sources

- [CVE List: CVE-2025-38445](https://www.cve.org/CVERecord?id=CVE-2025-38445)
- [NVD: CVE-2025-38445](https://nvd.nist.gov/vuln/detail/CVE-2025-38445)

### References from the CNA

- <https://git.kernel.org/stable/c/d8a6853d00fbaa810765c8ed2f452a5832273968>
- <https://git.kernel.org/stable/c/12b00ec99624f8da8c325f2dd6e807df26df0025>
- <https://git.kernel.org/stable/c/48da050b4f54ed639b66278d0ae6f4107b2c4e2d>
- <https://git.kernel.org/stable/c/5f35e48b76655e45522df338876dfef88dafcc71>
- <https://git.kernel.org/stable/c/df5894014a92ff0196dbc212a7764e97366fd2b7>
- <https://git.kernel.org/stable/c/776e6186dc9ecbdb8a1b706e989166c8a99bbf64>
- <https://git.kernel.org/stable/c/61fd5e93006cf82ec8ee5c115ab5cf4bbd104bdb>
- <https://git.kernel.org/stable/c/d67ed2ccd2d1dcfda9292c0ea8697a9d0f2f0d98>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2025-38445>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2025-38445/>. Everything for agents: <https://agentprime.io/llms.txt>.
