CVE-2025-40218 Details
Description
In the Linux kernel, the following vulnerability has been resolved: mm/damon/vaddr: do not repeat pte_offset_map_lock() until success DAMON's virtual address space operation set implementation (vaddr) calls pte_offset_map_lock() inside the page table walk callback function. This is for reading and writing page table accessed bits. If pte_offset_map_lock() fails, it retries by returning the page table walk callback function with ACTION_AGAIN. pte_offset_map_lock() can continuously fail if the target is a pmd migration entry, though. Hence it could cause an infinite page table walk if the migration cannot be done until the page table walk is finished. This indeed caused a soft lockup when CPU hotplugging and DAMON were running in parallel. Avoid the infinite loop by simply not retrying the page table walk. DAMON is promising only a best-effort accuracy, so missing access to such pages is no problem.
A vulnerability in the Linux kernel's DAMON (Data Access Monitor) component can lead to an infinite loop during page table walks, causing a soft lockup. This issue occurs in versions of the Linux kernel through 6.5. The problem arises because DAMON's virtual address space operation calls the 'pte_offset_map_lock()' function to manage page table accessed bits. If this function fails, it retries by returning to the page table walk callback with 'ACTION_AGAIN'. However, this retry mechanism can create an infinite loop if the failure is due to a pmd migration entry, as the migration must be completed before the page table walk can resume. This vulnerability was reported to cause a soft lockup when CPU hotplugging and DAMON were running simultaneously.
Users can upgrade to the latest version of the Linux kernel to address this vulnerability. The issue has been fixed in the official Linux Git repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 4, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/0ccd91cf749536d41307a07e60ec14ab0dbf21f5 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/677ebfe5d00f94adec0c0204f6e6e2a82d3f77bf | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/ac42320ec873bfe726141069cfdd90ee5bc4e885 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/b93af2cc8e036754c0d9970d9ddc47f43cc94b9f | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 4, 2025 | New CVE Received | kernel.org |
Volerion