Memory Management Vulnerability in Linux Kernel: CVE-2025-21861

linux Updated 02 Oct 2025

Summary

12/03/2025
N/A
No i
Medium
5.5

CVE-2025-21861: In the Linux kernel, the following vulnerability has been resolved: mm/migrate_device: don't add folio to be freed to LRU in migrate_device_finalize() If migration succeeded, we called folio_migrate_flags()->mem_cgroup_m... Affects linux versions 5.10.103-1 – 6.9.9-1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux kernel is the core component of many operating systems, providing essential services for hardware management and system resources. It is known for its stability, performance, and security features. However, like any complex software, it is susceptible to vulnerabilities that can affect system integrity and performance. CVE-2025-21861 specifically addresses an issue in the memory management subsystem, particularly in the migration of memory pages, which can lead to improper handling of memory control groups (memcg).

Vulnerability Detail

CVE-2025-21861 is a vulnerability in the Linux kernel's memory management system, specifically in the migrate_device_finalize function. When migrating memory pages, if the migration succeeds, the old folio's memory control group data is set to zero. If the migration fails, the destination folio's memory control group data remains unset. This inconsistency can lead to the folio being incorrectly added to the least recently used (LRU) list, causing potential issues with memory management and leading to warnings in the system logs. The vulnerability can result in system instability and performance degradation, particularly when running memory-intensive applications.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

Currently, no specific workarounds are provided for this vulnerability. It is advisable to monitor system logs for any warnings related to memory management and to apply the patch as soon as it is available.

Conclusion

CVE-2025-21861 is a significant vulnerability in the Linux kernel that affects memory management during page migration. It is crucial for users to update their systems to the patched versions to ensure stability and performance. Monitoring tools like Vulert can assist in identifying vulnerabilities in your software.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-21861 is a vulnerability in the Linux kernel that affects memory management during the migration of memory pages.

This vulnerability can lead to improper handling of memory control groups, potentially causing system instability and performance issues.

You can use tools like Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.

While no specific workarounds are available, it is important to monitor system logs for any related warnings and plan to update as soon as possible.

Detailed information can be found in the official CVE database and through security advisories related to the Linux kernel.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback