{"id":"CVE-2025-21815","summary":"mm/compaction: fix UBSAN shift-out-of-bounds warning","details":"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 \u003c\u003c 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.","modified":"2026-03-20T12:41:11.236956Z","published":"2025-02-27T20:04:14.733Z","related":["SUSE-SU-2025:01919-1","SUSE-SU-2025:1177-1","SUSE-SU-2025:1178-1","SUSE-SU-2025:1180-1","SUSE-SU-2025:20190-1","SUSE-SU-2025:20192-1","SUSE-SU-2025:20260-1","SUSE-SU-2025:20270-1","USN-7521-2"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21815.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/10b7d3eb535098ccd4c82a182a33655d8a0e5c88"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4491159774d973a9e2e998d25d8fbb20fada6dfa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d1366e74342e75555af2648a2964deb2d5c92200"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21815.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21815"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3da0272a4c7d0d37b47b28e87014f421296fc2be"},{"fixed":"4491159774d973a9e2e998d25d8fbb20fada6dfa"},{"fixed":"10b7d3eb535098ccd4c82a182a33655d8a0e5c88"},{"fixed":"d1366e74342e75555af2648a2964deb2d5c92200"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21815.json"}}],"schema_version":"1.7.5"}