# mm/migrate_device: don't add folio to be freed to LRU in migrate_device_finalize()

CVE record · `CVE-2025-21861`

- **Identifiers:** `CVE-2025-21861`
- **State:** Confirmed
- **Severity:** CVSS 5.5 Medium
- **Critical:** No
- **CNA:** Linux
- **Weakness (CWE):** [CWE-416](https://cwe.mitre.org/data/definitions/416.html)
- **Tags:** [Memory corruption](https://agentprime.io/advisories/tag/memory-corruption.md)
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 12 Mar 2025
- **Updated:** 10 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 12 Mar 2025, 09:42 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: `8763cb45ab967a92a5ee49e9c544c0f0ea90e2d6 to before 61fa824e304ed162fe965f64999068e6fcff2059` (git)
  - affected: `8763cb45ab967a92a5ee49e9c544c0f0ea90e2d6 to before 64397b0cb7c09e3ef3f9f5c7c17299c4eebd3875` (git)
  - affected: `8763cb45ab967a92a5ee49e9c544c0f0ea90e2d6 to before 4f52f7c50f5b6f5eeb06823e21fe546d90f9c595` (git)
  - affected: `8763cb45ab967a92a5ee49e9c544c0f0ea90e2d6 to before 20fb6fc51863fbff7868de8b5f6d249d2094df1f` (git)
  - affected: `8763cb45ab967a92a5ee49e9c544c0f0ea90e2d6 to before 78f579cb7d825134e071a1714d8d0c4fd0ffe459` (git)
  - affected: `8763cb45ab967a92a5ee49e9c544c0f0ea90e2d6 to before 3f9240d59e9a95d19f06120bfd1d0e681c6c0ac7` (git)
  - affected: `8763cb45ab967a92a5ee49e9c544c0f0ea90e2d6 to before 069dd21ea8262204f94737878389c2815a054a9e` (git)
  - affected: `8763cb45ab967a92a5ee49e9c544c0f0ea90e2d6 to before 41cddf83d8b00f29fd105e7a0777366edc69a5cf` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.14`
  - unaffected: `before 4.14` (semver)
  - unaffected: `5.4.300 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.245 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.194 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.155 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.109 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.17 to 6.12.*, inclusive` (semver)
  - unaffected: `6.13.5 to 6.13.*, inclusive` (semver)
  - unaffected: `6.14 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## 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

- 5.5 Medium, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`, from ADP (CISA-ADP)

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

## Timeline

- 12 Mar 2025, 09:42 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2025-21861)
- 12 Mar 2025, 10:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-21861)

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/61fa824e304ed162fe965f64999068e6fcff2059>
- <https://git.kernel.org/stable/c/64397b0cb7c09e3ef3f9f5c7c17299c4eebd3875>
- <https://git.kernel.org/stable/c/4f52f7c50f5b6f5eeb06823e21fe546d90f9c595>
- <https://git.kernel.org/stable/c/20fb6fc51863fbff7868de8b5f6d249d2094df1f>
- <https://git.kernel.org/stable/c/78f579cb7d825134e071a1714d8d0c4fd0ffe459>
- <https://git.kernel.org/stable/c/3f9240d59e9a95d19f06120bfd1d0e681c6c0ac7>
- <https://git.kernel.org/stable/c/069dd21ea8262204f94737878389c2815a054a9e>
- <https://git.kernel.org/stable/c/41cddf83d8b00f29fd105e7a0777366edc69a5cf>

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-21861>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

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