Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B46533987B for ; Tue, 16 Dec 2025 14:32:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765895553; cv=none; b=iXLUsj3DvY21AvhJHwHIAKg6juB+XP+qOVQaIPU+SvzXNJv6OmhKPCTvbYpFixLaGYgAojBHiOE+FBVi8Y4UnlR7u+0GLlodo88tFDlTu+SU2ExdbcmiKuCtQ3xLzJb4L5zkzuRnK85/CpqGRiX7Yv4+EoUt5xQT3SBtZEITE8I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765895553; c=relaxed/simple; bh=yH+gbXLltH6vxWWfdAlPFncGgYAFjWzqSY1BZP+9H0k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sP2PFRs7cGk9shnN4ljnscE57npJHEqvM0JvSQaOtFnaGxnQtP11t3uPswAYDsMYgGy3kQ6aoIM0k+GuYpnhx1Bh7PtpBF+2LFiOEUPY0S9yI+3wOIYdPovKcvyIvA3mtfKeNSx1g96HVwdNzqHcTCYPLGEzSRhFAJm6d0KM2dM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=g1yN9kcK; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="g1yN9kcK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0E80C4CEF1; Tue, 16 Dec 2025 14:32:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765895552; bh=yH+gbXLltH6vxWWfdAlPFncGgYAFjWzqSY1BZP+9H0k=; h=From:To:Cc:Subject:Date:Reply-To:From; b=g1yN9kcKgEbOmvf/cOBahIShedKcQHjdqL1EKJ9ojLSzaNEKyqmPlKm1YVz4qkfUm ZQkFyEIuQwSVU9cUV/sAfGOeEWW29mhZpqbWhGFombzkEIPmqv55xMhaHM6U/zazmp Xx8WXOMr/An8411rGq0eT2OLIOTG7Gnh2dxUACxs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68248: vmw_balloon: indicate success when effectively deflating during migration Date: Tue, 16 Dec 2025 15:32:24 +0100 Message-ID: <2025121623-CVE-2025-68248-2695@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2996; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jyMeg+9QjibnR8P9kRLMYgdDLFfVuWVE0WHAAYKz3ZI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOueVLxa9bTZpQzFS366WzWOhhv+XvHS14CyzfLGjfU 5mXJDyhI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACai/YNhnurBgONub6zP1n8O d/Ovq+udKu67gGGe+nvti+6XUw9vzijMc67jDK00et0OAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2025-68248 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit 3544c4faccb8f0867bc65f8007ee70bfb5054305 and fixed in 6.17.6 with commit aa05a044c5c2e147d726ac2fae1a97e0775eac11 Issue introduced in 6.17 with commit 3544c4faccb8f0867bc65f8007ee70bfb5054305 and fixed in 6.18 with commit 4ba5a8a7faa647ada8eae61a36517cf369f5bbe4 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-68248 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/misc/vmw_balloon.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/aa05a044c5c2e147d726ac2fae1a97e0775eac11 https://git.kernel.org/stable/c/4ba5a8a7faa647ada8eae61a36517cf369f5bbe4