{"id":"CVE-2025-68248","aliases":["CVE-2025-68248"],"related":[],"kind":"vulnerability","state":"published","title":"vmw_balloon: indicate success when effectively deflating during migration","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nvmw_balloon: indicate success when effectively deflating during migration\n\nWhen migrating a balloon page, we first deflate the old page to then\ninflate the new page.\n\nHowever, if inflating the new page succeeded, we effectively deflated the\nold page, reducing the balloon size.\n\nIn that case, the migration actually worked: similar to migrating+\nimmediately deflating the new page.  The old page will be freed back to\nthe buddy.\n\nRight now, the core will leave the page be marked as isolated (as we\nreturned an error).  When later trying to putback that page, we will run\ninto the WARN_ON_ONCE() in balloon_page_putback().\n\nThat handling was changed in commit 3544c4faccb8 (\"mm/balloon_compaction:\nstop using __ClearPageMovable()\"); before that change, we would have\ntolerated that way of handling it.\n\nTo fix it, let's just return 0 in that case, making the core effectively\njust clear the \"isolated\" flag + freeing it back to the buddy as if the\nmigration succeeded.  Note that the new page will also get freed when the\ncore puts the last reference.\n\nNote that this also makes it all be more consistent: we will no longer\nunisolate the page in the balloon driver while keeping it marked as being\nisolated in migration core.\n\nThis was found by code inspection.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nvmw_balloon: indicate success when effectively deflating during migration\n\nWhen migrating a balloon page, we first deflate the old page to then\ninflate the new page.\n\nHowever, if inflating the new page succeeded, we effectively deflated the\nold page, reducing the balloon size.\n\nIn that case, the migration actually worked: similar to migrating+\nimmediately deflating the new page.  The old page will be freed back to\nthe buddy.\n\nRight now, the core will leave the page be marked as isolated (as we\nreturned an error).  When later trying to putback that page, we will run\ninto the WARN_ON_ONCE() in balloon_page_putback().\n\nThat handling was changed in commit 3544c4faccb8 (\"mm/balloon_compaction:\nstop using __ClearPageMovable()\"); before that change, we would have\ntolerated that way of handling it.\n\nTo fix it, let's just return 0 in that case, making the core effectively\njust clear the \"isolated\" flag + freeing it back to the buddy as if the\nmigration succeeded.  Note that the new page will also get freed when the\ncore puts the last reference.\n\nNote that this also makes it all be more consistent: we will no longer\nunisolate the page in the balloon driver while keeping it marked as being\nisolated in migration core.\n\nThis was found by code inspection.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nvmw_balloon: indicar éxito al desinflar efectivamente durante la migración\n\nAl migrar una página balloon, primero desinflamos la página antigua para luego inflar la nueva página.\n\nSin embargo, si la inflación de la nueva página tuvo éxito, desinflamos efectivamente la página antigua, reduciendo el tamaño del balloon.\n\nEn 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.\n\nAhora 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().\n\nEse 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.\n\nPara 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.\n\nTenga 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.\n\nEsto fue encontrado mediante inspección de código.","source":"nvd"}],"published":"2025-12-16T14:32:15.430Z","modified":"2026-10-14T13:10:00.187Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"3544c4faccb8f0867bc65f8007ee70bfb5054305","fixed":"aa05a044c5c2e147d726ac2fae1a97e0775eac11","status":"affected"},{"type":"git","introduced":"3544c4faccb8f0867bc65f8007ee70bfb5054305","fixed":"4ba5a8a7faa647ada8eae61a36517cf369f5bbe4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.17","status":"unaffected"},{"type":"semver","introduced":"6.17.6","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/aa05a044c5c2e147d726ac2fae1a97e0775eac11","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4ba5a8a7faa647ada8eae61a36517cf369f5bbe4","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68248","url":"https://www.cve.org/CVERecord?id=CVE-2025-68248","licence":"CVE Terms of Use","modified":"2026-05-11T21:49:41.900Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68248","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68248","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:09.511Z","epss":{"score":0.00184,"percentile":0.08407,"date":"2026-12-01T12:00:22.000Z"}}