Not scored
vmw_balloon: indicate success when effectively deflating during migration
- Severity
- Not scored
- Exploit likelihood
- 0.26% (higher than 11% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: vmw_balloon: 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 WARN_ON_ONCE() in balloon_page_putback(). That handling was changed in commit 3544c4faccb8 ("mm/balloon_compaction: 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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 3544c4faccb8f0867bc65f8007ee70bfb5054305 before aa05a044c5c2e147d726ac2fae1a97e0775eac11, from 3544c4faccb8f0867bc65f8007ee70bfb5054305 before 4ba5a8a7faa647ada8eae61a36517cf369f5bbe4, 6.17 Not affected: before 6.17, from 6.17.6 up to 6.17.*, from 6.18 up to * | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: vmw_balloon: 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 WARN_ON_ONCE() in balloon_page_putback(). That handling was changed in commit 3544c4faccb8 ("mm/balloon_compaction: 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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: vmw_balloon: indicar éxito al desinflar efectivamente durante la migración Al migrar una página balloon, primero desinflamos la página antigua para luego inflar la nueva página. Sin embargo, si la inflación de la nueva página tuvo éxito, desinflamos efectivamente la página antigua, reduciendo el tamaño del balloon. En ese caso, la migración realmente funcionó: similar a migrar + desinflar inmediatamente la nueva página. La página antigua será liberada de vuelta al buddy. Ahora mismo, el núcleo dejará la página marcada como aislada (ya que devolvimos un error). Al intentar luego devolver esa página, nos encontraremos con el WARN_ON_ONCE() en balloon_page_putback(). Ese manejo fue cambiado en el commit 3544c4faccb8 ('mm/balloon_compaction: dejar de usar __ClearPageMovable()'); antes de ese cambio, habríamos tolerado esa forma de manejarlo. Para solucionarlo, simplemente devolvamos 0 en ese caso, haciendo que el núcleo efectivamente solo borre la bandera 'isolated' + liberándola de vuelta al buddy como si la migración hubiera tenido éxito. Tenga en cuenta que la nueva página también será liberada cuando el núcleo ponga la última referencia. Tenga en cuenta que esto también hace que todo sea más consistente: ya no desaislaremos la página en el controlador balloon mientras la mantenemos marcada como aislada en el núcleo de migración. Esto fue encontrado mediante inspección de código.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68248 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-68248 changed 2026-10-14 | Public domain |