All reports
Medium

kernel: mm/compaction: handle free_pages_prepare() properly in compaction_free()

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-72027

Probability of exploitation in the next 30 days: 0.18%

FIRST EPSS · 2026-11-22

Description

In the Linux kernel, the following vulnerability has been resolved: mm/compaction: handle free_pages_prepare() properly in compaction_free() free_pages_prepare() can fail but compaction_free() does not handle the failure case. Failed pages should not be added back to cc->freepages for future use, since they can be either PageHWPoison or free_page_is_bad() and might cause data corruption.

A flaw was found in the Linux kernel's memory management subsystem, specifically within the mm/compaction component. When the free_pages_prepare() function fails, the compaction_free() function does not properly handle this error. This oversight can lead to pages that are either hardware poisoned (PageHWPoison) or otherwise marked as bad (free_page_is_bad()) being returned to the free page pool. Consequently, the reuse of these corrupted pages may lead to data corruption within the system.