mm/damon/vaddr: do not repeat pte_offset_map_lock() until success
Summary
| CVE | CVE-2025-40218 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2025-12-04 15:15:57 UTC |
| Updated | 2026-10-19 21:10:00 UTC |
| 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. |
Risk And Classification
EPSS: 0.001870000 probability, percentile 0.078400000 (date 2026-10-19)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 7780d04046a2288ab85d88bedacc60fa4fad9971 677ebfe5d00f94adec0c0204f6e6e2a82d3f77bf git | Not specified |
| CNA | Linux | Linux | affected 7780d04046a2288ab85d88bedacc60fa4fad9971 ac42320ec873bfe726141069cfdd90ee5bc4e885 git | Not specified |
| CNA | Linux | Linux | affected 7780d04046a2288ab85d88bedacc60fa4fad9971 0ccd91cf749536d41307a07e60ec14ab0dbf21f5 git | Not specified |
| CNA | Linux | Linux | affected 7780d04046a2288ab85d88bedacc60fa4fad9971 b93af2cc8e036754c0d9970d9ddc47f43cc94b9f git | Not specified |
| CNA | Linux | Linux | affected 6.5 | Not specified |
| CNA | Linux | Linux | unaffected 6.5 semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.113 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.54 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.17.4 6.17.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/0ccd91cf749536d41307a07e60ec14ab0dbf21f5 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/b93af2cc8e036754c0d9970d9ddc47f43cc94b9f | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/ac42320ec873bfe726141069cfdd90ee5bc4e885 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/677ebfe5d00f94adec0c0204f6e6e2a82d3f77bf | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.