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 155B23191AF for ; Wed, 24 Dec 2025 10:57:37 +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=1766573858; cv=none; b=aWLWvKw2OpHQL4MO+5w+VWJH9pKzlQMSWaV24mwLke7L4k00vQ/Jz+4gyPFXOrfbpVS9fworXrmMl/JHEu5t66093FlKRpMwDXzoSQDqtEkkwc4hBKBqcOc4WskCmHaOiuBhnJs8dtPYHyE7Hzd2/ClMe8UjCVqS7+qTtNJUEIE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573858; c=relaxed/simple; bh=uCPlDf/NzLWzCIQz2hLcz9UyUUa6qKRLHlHXWd48gpk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nK410znRVsd4nuK+/tcLQPMF2cbu9Hxc8fIwoguxFBuXxRtVyHeJFM5QVJ9Tkz6pqd1E2olo75HqSXf+i/D4flVTstY+DZBFUEHJE9PF/X22ABUea46ry9fCubewHOgtE1Pe4bu89rSFa/CxO33Bq3xZRfurz7uM2/ILzGXG4ps= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=V2JYwjGY; 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="V2JYwjGY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D1ABC4CEFB; Wed, 24 Dec 2025 10:57:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766573857; bh=uCPlDf/NzLWzCIQz2hLcz9UyUUa6qKRLHlHXWd48gpk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=V2JYwjGYh95NJMaKouajvnE8FDOpOOK85MerdnoSRGKE5TI1rxvxbNZgEfa+p5ZRn Sc6EkkolsOal3HO8OFQ8vHUInCzdbkjmAQ62ZzwndrAfPOq79b/T4ScAspj7j37mtS YYX0Q0hZhp73OYbSTHBdSb3amqbh3a8QVcyQEbXQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53996: x86/sev: Make enc_dec_hypercall() accept a size instead of npages Date: Wed, 24 Dec 2025 11:56:40 +0100 Message-ID: <2025122425-CVE-2023-53996-2c23@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=2712; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Lun6MQjDsFX/HtZDgZpZuAc+pc5YTbdbKgf+Drti12A=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnex25eFf35YfJUBU3HqzYlTEJqz0qb9b2ZzO7/Mpdrd up6vUKuI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZiGcIwh3+e2lL/A8HfLRzW fVt4oDfgQY7fBYZ5xswbL/53OKiksulc19GAMzc1RL+4AwA= 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: x86/sev: Make enc_dec_hypercall() accept a size instead of npages enc_dec_hypercall() accepted a page count instead of a size, which forced its callers to round up. As a result, non-page aligned vaddrs caused pages to be spuriously marked as decrypted via the encryption status hypercall, which in turn caused consistent corruption of pages during live migration. Live migration requires accurate encryption status information to avoid migrating pages from the wrong perspective. The Linux kernel CVE team has assigned CVE-2023-53996 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 064ce6c550a0630789978bfec7a13ab2bd1bdcdf and fixed in 6.1.53 with commit ba50e7773a99a109a1ea6f753b766a080d3b21cc Issue introduced in 5.16 with commit 064ce6c550a0630789978bfec7a13ab2bd1bdcdf and fixed in 6.4.16 with commit 6615212d8e131b45bd9705b0d69cc0d2f624666f Issue introduced in 5.16 with commit 064ce6c550a0630789978bfec7a13ab2bd1bdcdf and fixed in 6.5.3 with commit 8ae7457e71a320867d868f2622d7c643596e4f43 Issue introduced in 5.16 with commit 064ce6c550a0630789978bfec7a13ab2bd1bdcdf and fixed in 6.6 with commit ac3f9c9f1b37edaa7d1a9b908bc79d843955a1a2 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-2023-53996 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: arch/x86/include/asm/mem_encrypt.h arch/x86/kernel/kvm.c arch/x86/mm/mem_encrypt_amd.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/ba50e7773a99a109a1ea6f753b766a080d3b21cc https://git.kernel.org/stable/c/6615212d8e131b45bd9705b0d69cc0d2f624666f https://git.kernel.org/stable/c/8ae7457e71a320867d868f2622d7c643596e4f43 https://git.kernel.org/stable/c/ac3f9c9f1b37edaa7d1a9b908bc79d843955a1a2