{"id":"CVE-2025-21815","state":"PUBLISHED","title":"mm/compaction: fix UBSAN shift-out-of-bounds warning","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/compaction: fix UBSAN shift-out-of-bounds warning\n\nsyzkaller reported a UBSAN shift-out-of-bounds warning of (1UL << order)\nin isolate_freepages_block().  The bogus compound_order can be any value\nbecause it is union with flags.  Add back the MAX_PAGE_ORDER check to fix\nthe warning.","publishedAt":"2025-02-27T20:04:14.733Z","updatedAt":"2026-05-11T21:07:04.528Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3da0272a4c7d0d37b47b28e87014f421296fc2be","status":"affected","lessThan":"4491159774d973a9e2e998d25d8fbb20fada6dfa","versionType":"git"},{"version":"3da0272a4c7d0d37b47b28e87014f421296fc2be","status":"affected","lessThan":"10b7d3eb535098ccd4c82a182a33655d8a0e5c88","versionType":"git"},{"version":"3da0272a4c7d0d37b47b28e87014f421296fc2be","status":"affected","lessThan":"d1366e74342e75555af2648a2964deb2d5c92200","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/compaction.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.12.14","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.3","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/compaction.c"]}],"references":["https://git.kernel.org/stable/c/4491159774d973a9e2e998d25d8fbb20fada6dfa","https://git.kernel.org/stable/c/10b7d3eb535098ccd4c82a182a33655d8a0e5c88","https://git.kernel.org/stable/c/d1366e74342e75555af2648a2964deb2d5c92200"],"weaknesses":[],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/21xxx/CVE-2025-21815.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-21815","state":"PUBLISHED","datePublished":"2025-02-27T20:04:14.733Z","dateUpdated":"2026-05-11T21:07:04.528Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-12-29T08:45:45.774Z"},"containers":{"cna":{"title":"mm/compaction: fix UBSAN shift-out-of-bounds warning","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/compaction: fix UBSAN shift-out-of-bounds warning\n\nsyzkaller reported a UBSAN shift-out-of-bounds warning of (1UL << order)\nin isolate_freepages_block().  The bogus compound_order can be any value\nbecause it is union with flags.  Add back the MAX_PAGE_ORDER check to fix\nthe warning."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3da0272a4c7d0d37b47b28e87014f421296fc2be","status":"affected","lessThan":"4491159774d973a9e2e998d25d8fbb20fada6dfa","versionType":"git"},{"version":"3da0272a4c7d0d37b47b28e87014f421296fc2be","status":"affected","lessThan":"10b7d3eb535098ccd4c82a182a33655d8a0e5c88","versionType":"git"},{"version":"3da0272a4c7d0d37b47b28e87014f421296fc2be","status":"affected","lessThan":"d1366e74342e75555af2648a2964deb2d5c92200","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/compaction.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.12.14","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.3","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/compaction.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4491159774d973a9e2e998d25d8fbb20fada6dfa"},{"url":"https://git.kernel.org/stable/c/10b7d3eb535098ccd4c82a182a33655d8a0e5c88"},{"url":"https://git.kernel.org/stable/c/d1366e74342e75555af2648a2964deb2d5c92200"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:07:04.528Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.12.14"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.13.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.14"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}