mm/damon/vaddr: do not repeat pte_offset_map_lock() until success

Summary

CVECVE-2025-40218
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-12-04 15:15:57 UTC
Updated2026-10-19 21:10:00 UTC
DescriptionIn 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

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report