{"id":"CVE-2025-40353","state":"PUBLISHED","title":"arm64: mte: Do not warn if the page is already tagged in copy_highpage()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\narm64: mte: Do not warn if the page is already tagged in copy_highpage()\n\nThe arm64 copy_highpage() assumes that the destination page is newly\nallocated and not MTE-tagged (PG_mte_tagged unset) and warns\naccordingly. However, following commit 060913999d7a (\"mm: migrate:\nsupport poisoned recover from migrate folio\"), folio_mc_copy() is called\nbefore __folio_migrate_mapping(). If the latter fails (-EAGAIN), the\ncopy will be done again to the same destination page. Since\ncopy_highpage() already set the PG_mte_tagged flag, this second copy\nwill warn.\n\nReplace the WARN_ON_ONCE(page already tagged) in the arm64\ncopy_highpage() with a comment.","publishedAt":"2025-12-16T13:30:26.273Z","updatedAt":"2026-05-11T21:47:43.712Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"060913999d7a9e50c283fdb15253fc27974ddadc","status":"affected","lessThan":"5ff5765a1fc526f07d3bbaedb061d970eb13bcf4","versionType":"git"},{"version":"060913999d7a9e50c283fdb15253fc27974ddadc","status":"affected","lessThan":"0bbf3fc6e9211fce9889fe8efbb89c220504d617","versionType":"git"},{"version":"060913999d7a9e50c283fdb15253fc27974ddadc","status":"affected","lessThan":"b98c94eed4a975e0c80b7e90a649a46967376f58","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/mm/copypage.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.56","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.17.6","status":"unaffected","lessThanOrEqual":"6.17.*","versionType":"semver"},{"version":"6.18","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/mm/copypage.c"]}],"references":["https://git.kernel.org/stable/c/5ff5765a1fc526f07d3bbaedb061d970eb13bcf4","https://git.kernel.org/stable/c/0bbf3fc6e9211fce9889fe8efbb89c220504d617","https://git.kernel.org/stable/c/b98c94eed4a975e0c80b7e90a649a46967376f58"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/40xxx/CVE-2025-40353.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-40353","state":"PUBLISHED","datePublished":"2025-12-16T13:30:26.273Z","dateUpdated":"2026-05-11T21:47:43.712Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T07:20:57.187Z"},"containers":{"cna":{"title":"arm64: mte: Do not warn if the page is already tagged in copy_highpage()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\narm64: mte: Do not warn if the page is already tagged in copy_highpage()\n\nThe arm64 copy_highpage() assumes that the destination page is newly\nallocated and not MTE-tagged (PG_mte_tagged unset) and warns\naccordingly. However, following commit 060913999d7a (\"mm: migrate:\nsupport poisoned recover from migrate folio\"), folio_mc_copy() is called\nbefore __folio_migrate_mapping(). If the latter fails (-EAGAIN), the\ncopy will be done again to the same destination page. Since\ncopy_highpage() already set the PG_mte_tagged flag, this second copy\nwill warn.\n\nReplace the WARN_ON_ONCE(page already tagged) in the arm64\ncopy_highpage() with a comment."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"060913999d7a9e50c283fdb15253fc27974ddadc","status":"affected","lessThan":"5ff5765a1fc526f07d3bbaedb061d970eb13bcf4","versionType":"git"},{"version":"060913999d7a9e50c283fdb15253fc27974ddadc","status":"affected","lessThan":"0bbf3fc6e9211fce9889fe8efbb89c220504d617","versionType":"git"},{"version":"060913999d7a9e50c283fdb15253fc27974ddadc","status":"affected","lessThan":"b98c94eed4a975e0c80b7e90a649a46967376f58","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/mm/copypage.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.56","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.17.6","status":"unaffected","lessThanOrEqual":"6.17.*","versionType":"semver"},{"version":"6.18","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/mm/copypage.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/5ff5765a1fc526f07d3bbaedb061d970eb13bcf4"},{"url":"https://git.kernel.org/stable/c/0bbf3fc6e9211fce9889fe8efbb89c220504d617"},{"url":"https://git.kernel.org/stable/c/b98c94eed4a975e0c80b7e90a649a46967376f58"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:47:43.712Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.12.56"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.17.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.18"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}