CVE-2025-68248: vmw_balloon: indicate success when effectively deflating during migration
In the Linux kernel, the following vulnerability has been resolved:
vmwballoon: indicate success when effectively deflating during migration
When migrating a balloon page, we first deflate the old page to then inflate the new page.
However, if inflating the new page succeeded, we effectively deflated the old page, reducing the balloon size.
In that case, the migration actually worked: similar to migrating+ immediately deflating the new page. The old page will be freed back to the buddy.
Right now, the core will leave the page be marked as isolated (as we returned an error). When later trying to putback that page, we will run into the WARNONONCE() in balloonpageputback().
That handling was changed in commit 3544c4faccb8 ("mm/ballooncompaction: stop using ClearPageMovable()"); before that change, we would have tolerated that way of handling it.
To fix it, let's just return 0 in that case, making the core effectively just clear the "isolated" flag + freeing it back to the buddy as if the migration succeeded. Note that the new page will also get freed when the core puts the last reference.
Note that this also makes it all be more consistent: we will no longer unisolate the page in the balloon driver while keeping it marked as being isolated in migration core.
This was found by code inspection.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-68248?
CVE-2025-68248 has been classified as a medium severity vulnerability.
How do I fix CVE-2025-68248?
To fix CVE-2025-68248, upgrade the Linux kernel to versions 5.10.1 or later.
What impact does CVE-2025-68248 have on the Linux kernel?
CVE-2025-68248 affects the migration process of balloon pages in the Linux kernel, potentially leading to unexpected behavior.
Is CVE-2025-68248 exploitable remotely?
CVE-2025-68248 is not considered to be remotely exploitable as it requires local access.
Which versions of the Linux kernel are affected by CVE-2025-68248?
CVE-2025-68248 affects Linux kernel versions from 5.4 up to 5.10.