mm/compaction: handle free_pages_prepare() properly in compaction_free()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's compaction_free() can reuse pages after free_pages_prepare() fails. Those pages may be hardware-poisoned or otherwise bad, potentially causing data corruption. The input does not specify attacker access requirements or user interaction.
Anyone running the Linux kernel should check whether their version is affected; affected versions are not specified.