{"api_version":"1","generated_at":"2026-10-24T08:41:30+00:00","cve":"CVE-2025-40218","urls":{"html":"https://cve.report/CVE-2025-40218","api":"https://cve.report/api/cve/CVE-2025-40218.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-40218","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-40218"},"summary":{"title":"mm/damon/vaddr: do not repeat pte_offset_map_lock() until success","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/vaddr: do not repeat pte_offset_map_lock() until success\n\nDAMON's virtual address space operation set implementation (vaddr) calls\npte_offset_map_lock() inside the page table walk callback function.  This\nis for reading and writing page table accessed bits.  If\npte_offset_map_lock() fails, it retries by returning the page table walk\ncallback function with ACTION_AGAIN.\n\npte_offset_map_lock() can continuously fail if the target is a pmd\nmigration entry, though.  Hence it could cause an infinite page table walk\nif the migration cannot be done until the page table walk is finished. \nThis indeed caused a soft lockup when CPU hotplugging and DAMON were\nrunning in parallel.\n\nAvoid the infinite loop by simply not retrying the page table walk.  DAMON\nis promising only a best-effort accuracy, so missing access to such pages\nis no problem.","state":"PUBLISHED","assigner":"Linux","published_at":"2025-12-04 15:15:57","updated_at":"2026-10-19 21:10:00"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/0ccd91cf749536d41307a07e60ec14ab0dbf21f5","name":"https://git.kernel.org/stable/c/0ccd91cf749536d41307a07e60ec14ab0dbf21f5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b93af2cc8e036754c0d9970d9ddc47f43cc94b9f","name":"https://git.kernel.org/stable/c/b93af2cc8e036754c0d9970d9ddc47f43cc94b9f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ac42320ec873bfe726141069cfdd90ee5bc4e885","name":"https://git.kernel.org/stable/c/ac42320ec873bfe726141069cfdd90ee5bc4e885","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/677ebfe5d00f94adec0c0204f6e6e2a82d3f77bf","name":"https://git.kernel.org/stable/c/677ebfe5d00f94adec0c0204f6e6e2a82d3f77bf","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-40218","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40218","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7780d04046a2288ab85d88bedacc60fa4fad9971 677ebfe5d00f94adec0c0204f6e6e2a82d3f77bf git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7780d04046a2288ab85d88bedacc60fa4fad9971 ac42320ec873bfe726141069cfdd90ee5bc4e885 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7780d04046a2288ab85d88bedacc60fa4fad9971 0ccd91cf749536d41307a07e60ec14ab0dbf21f5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7780d04046a2288ab85d88bedacc60fa4fad9971 b93af2cc8e036754c0d9970d9ddc47f43cc94b9f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.5","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.5 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.113 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.54 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.17.4 6.17.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2025","cve_id":"40218","cve":"CVE-2025-40218","epss":"0.001870000","percentile":"0.078400000","score_date":"2026-10-19","updated_at":"2026-10-20 00:13:48"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["mm/damon/vaddr.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"677ebfe5d00f94adec0c0204f6e6e2a82d3f77bf","status":"affected","version":"7780d04046a2288ab85d88bedacc60fa4fad9971","versionType":"git"},{"lessThan":"ac42320ec873bfe726141069cfdd90ee5bc4e885","status":"affected","version":"7780d04046a2288ab85d88bedacc60fa4fad9971","versionType":"git"},{"lessThan":"0ccd91cf749536d41307a07e60ec14ab0dbf21f5","status":"affected","version":"7780d04046a2288ab85d88bedacc60fa4fad9971","versionType":"git"},{"lessThan":"b93af2cc8e036754c0d9970d9ddc47f43cc94b9f","status":"affected","version":"7780d04046a2288ab85d88bedacc60fa4fad9971","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["mm/damon/vaddr.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.5"},{"lessThan":"6.5","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.113","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.54","versionType":"semver"},{"lessThanOrEqual":"6.17.*","status":"unaffected","version":"6.17.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"6.18","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.113","versionStartIncluding":"6.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.54","versionStartIncluding":"6.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.17.4","versionStartIncluding":"6.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18","versionStartIncluding":"6.5","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/vaddr: do not repeat pte_offset_map_lock() until success\n\nDAMON's virtual address space operation set implementation (vaddr) calls\npte_offset_map_lock() inside the page table walk callback function.  This\nis for reading and writing page table accessed bits.  If\npte_offset_map_lock() fails, it retries by returning the page table walk\ncallback function with ACTION_AGAIN.\n\npte_offset_map_lock() can continuously fail if the target is a pmd\nmigration entry, though.  Hence it could cause an infinite page table walk\nif the migration cannot be done until the page table walk is finished. \nThis indeed caused a soft lockup when CPU hotplugging and DAMON were\nrunning in parallel.\n\nAvoid the infinite loop by simply not retrying the page table walk.  DAMON\nis promising only a best-effort accuracy, so missing access to such pages\nis no problem."}],"providerMetadata":{"dateUpdated":"2026-05-11T21:45:03.319Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/677ebfe5d00f94adec0c0204f6e6e2a82d3f77bf"},{"url":"https://git.kernel.org/stable/c/ac42320ec873bfe726141069cfdd90ee5bc4e885"},{"url":"https://git.kernel.org/stable/c/0ccd91cf749536d41307a07e60ec14ab0dbf21f5"},{"url":"https://git.kernel.org/stable/c/b93af2cc8e036754c0d9970d9ddc47f43cc94b9f"}],"title":"mm/damon/vaddr: do not repeat pte_offset_map_lock() until success","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2025-40218","datePublished":"2025-12-04T14:50:41.873Z","dateReserved":"2025-04-16T07:20:57.179Z","dateUpdated":"2026-05-11T21:45:03.319Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2025-12-04 15:15:57","lastModifiedDate":"2026-10-19 21:10:00","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2025","CveId":"40218","Ordinal":"1","Title":"mm/damon/vaddr: do not repeat pte_offset_map_lock() until succes","CVE":"CVE-2025-40218","Year":"2025"},"notes":[{"CveYear":"2025","CveId":"40218","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/vaddr: do not repeat pte_offset_map_lock() until success\n\nDAMON's virtual address space operation set implementation (vaddr) calls\npte_offset_map_lock() inside the page table walk callback function.  This\nis for reading and writing page table accessed bits.  If\npte_offset_map_lock() fails, it retries by returning the page table walk\ncallback function with ACTION_AGAIN.\n\npte_offset_map_lock() can continuously fail if the target is a pmd\nmigration entry, though.  Hence it could cause an infinite page table walk\nif the migration cannot be done until the page table walk is finished. \nThis indeed caused a soft lockup when CPU hotplugging and DAMON were\nrunning in parallel.\n\nAvoid the infinite loop by simply not retrying the page table walk.  DAMON\nis promising only a best-effort accuracy, so missing access to such pages\nis no problem.","Type":"Description","Title":"mm/damon/vaddr: do not repeat pte_offset_map_lock() until succes"}]}}}