Bug 2348902 (CVE-2025-21815) - CVE-2025-21815 kernel: mm/compaction: fix UBSAN shift-out-of-bounds warning
Summary: CVE-2025-21815 kernel: mm/compaction: fix UBSAN shift-out-of-bounds warning
Keywords:
Status: NEW
Alias: CVE-2025-21815
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-27 21:02 UTC by OSIDB Bzimport
Modified: 2025-05-13 19:04 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-27 21:02:35 UTC
In the Linux kernel, the following vulnerability has been resolved:

mm/compaction: fix UBSAN shift-out-of-bounds warning

syzkaller reported a UBSAN shift-out-of-bounds warning of (1UL << order)
in isolate_freepages_block().  The bogus compound_order can be any value
because it is union with flags.  Add back the MAX_PAGE_ORDER check to fix
the warning.

Comment 1 Avinash Hanwate 2025-02-28 05:24:52 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022709-CVE-2025-21815-19c9@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.