CVE-2025-21815

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

HIGH
7.1
CVSS Score
Published: February 27, 2025 at 08:04 PM UTC
Updated: June 17, 2026 at 08:44 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.2%

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.13 ≤ v < 6.13.36.7 ≤ v < 6.12.146.7 ≤ v < 6.13.36.7 ≤ v < 6.143da0272a4c7d0d37b47b28e87014f421296fc2be6.7
Vendor states this is fixed in 10b7d3eb535098ccd4c82a182a33655d8a0e5c88 (fixed)
Vendor states this is fixed in 4491159774d973a9e2e998d25d8fbb20fada6dfa (fixed)
Vendor states this is fixed in d1366e74342e75555af2648a2964deb2d5c92200 (fixed)
Vendor states this is fixed in 6.12.14 (unaffected)
Vendor states this is fixed in 6.13.3 (unaffected)
Vendor states this is fixed in 6.14 (unaffected)
Vendor states this is fixed in 6.7 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/10b7d3eb535098ccd4c82a182a33655d8a0e5c88
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4491159774d973a9e2e998d25d8fbb20fada6dfa
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d1366e74342e75555af2648a2964deb2d5c92200

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card