CVE-2025-21861: Linux kernel · Use After Free
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 5.5 Medium.
Data as of 10 Nov 2026, 14:48 UTC
Thin evidence
One scorer or none| CISA-ADP | CVSS 3.1 | 5.5 |
|---|
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 12 Mar 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 10 Nov 2026.
What to do
AI-suggested
A fix for this vulnerability has been implemented in the Linux kernel. Users and administrators should update to the fixed kernel versions once available. Since this is a kernel-level issue, applying the official kernel updates from the Linux distribution or mainline kernel is the recommended mitigation. No additional workarounds or mitigations are indicated.
Description
CVE-2025-21861 is a vulnerability in the Linux kernel's memory management subsystem related to device memory migration. The issue occurs when a folio (a memory page structure) that is to be freed is incorrectly added to the Least Recently Used (LRU) list during the migration finalization process. This happens because the memcg_data field of the folio is zeroed or left unset, causing the kernel's memory control group (memcg) code to behave improperly. While this does not cause direct data corruption, it triggers warnings and unnecessary operations in the kernel's memory management code.
References
- git.kernel.org/stable/c/61fa824e304ed162fe965f64999068e6fcff2059 (opens in a new tab)
- git.kernel.org/stable/c/64397b0cb7c09e3ef3f9f5c7c17299c4eebd3875 (opens in a new tab)
- git.kernel.org/stable/c/4f52f7c50f5b6f5eeb06823e21fe546d90f9c595 (opens in a new tab)
- git.kernel.org/stable/c/20fb6fc51863fbff7868de8b5f6d249d2094df1f (opens in a new tab)
- git.kernel.org/stable/c/78f579cb7d825134e071a1714d8d0c4fd0ffe459 (opens in a new tab)
- git.kernel.org/stable/c/3f9240d59e9a95d19f06120bfd1d0e681c6c0ac7 (opens in a new tab)
- git.kernel.org/stable/c/069dd21ea8262204f94737878389c2815a054a9e (opens in a new tab)
- git.kernel.org/stable/c/41cddf83d8b00f29fd105e7a0777366edc69a5cf (opens in a new tab)
- cert-portal.siemens.com/productcert/html/ssa-019113.html (opens in a new tab)
- cert-portal.siemens.com/productcert/html/ssa-457936.html (opens in a new tab)