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 01FF4149C6F for ; Wed, 18 Jun 2025 09:29:40 +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=1750238981; cv=none; b=sOMoQQ+MvieXVSS9FZtJovg5kkV/AT6+apLOn0q5s6/3Vem3mrAPpB0zDhfJNB58zxgW9xpHWjzbulycvHrfmcEF6OOdWCOQGOd6ykBytjoml4IQ/h8zJ203/WNgE3ut6RaGFQQnW2AiYPA2mJHyFVKMHsMIZ8zmnXG23kuXL/k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750238981; c=relaxed/simple; bh=6w3yq8mDh1vRphi8rMf35Du5NL7zIvJVnN7ZNzasHuI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PfBF6ui7wM0TU7+I7InjCknTFJmPSmWUcHe7jpQTCFhp2BVdLCEwL5wabM8yTm3j9cilweOrpS3LzMcHg8wd1stKfhhEgGKbSW6+/SECFD6dAteqTknTHXcV8bhw6V7DrHJ4FwPe4DlfPCAieNTh81mPOY7vMOWwXrqEL+cYDfQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Wlo9W9fg; 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="Wlo9W9fg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C82EC4CEF1; Wed, 18 Jun 2025 09:29:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750238980; bh=6w3yq8mDh1vRphi8rMf35Du5NL7zIvJVnN7ZNzasHuI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Wlo9W9fgrRP9eAABCU8OFf2muZtbGOuZQzs+MQm+uOOtS2R+r/onw5459S74+9cxT PIj7MFgIO4HPgUjHVkRZxNUbr5F66xz0vcLzQRt+WcAPT+QuTqvVqsLZHkWepKEk6U l8OV6YfiHHFwoYwg49Ql7zl4YnR8ZMLLvNy7PCXQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38026: x86/sev: Do not touch VMSA pages during SNP guest memory kdump Date: Wed, 18 Jun 2025 11:29:00 +0200 Message-ID: <2025061848-CVE-2025-38026-5674@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2526; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rmk/O2W0pHpmon9YRiIEjQYMiCS+uQ+xVtJOpmk3MEk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBbRe0rl9ev/+fpnTpvY79CdHZMzOUTB/UOu290Zuxp ls7mV+jI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaS8IJhnkrlyduTHsR5LD36 qLXQdZFx/Iq1ngwLNiRmy+6+4nr4erHPnti73KzXPkSeAAA= 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: Do not touch VMSA pages during SNP guest memory kdump When kdump is running makedumpfile to generate vmcore and dump SNP guest memory it touches the VMSA page of the vCPU executing kdump. It then results in unrecoverable #NPF/RMP faults as the VMSA page is marked busy/in-use when the vCPU is running and subsequently a causes guest softlockup/hang. Additionally, other APs may be halted in guest mode and their VMSA pages are marked busy and touching these VMSA pages during guest memory dump will also cause #NPF. Issue AP_DESTROY GHCB calls on other APs to ensure they are kicked out of guest mode and then clear the VMSA bit on their VMSA pages. If the vCPU running kdump is an AP, mark it's VMSA page as offline to ensure that makedumpfile excludes that page while dumping guest memory. The Linux kernel CVE team has assigned CVE-2025-38026 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 3074152e56c9b0f9b9c67edfbc08b371db050b6d and fixed in 6.14.8 with commit 26468ea864fecf496654459e52a6b7a7230bcb6d Issue introduced in 6.13 with commit 3074152e56c9b0f9b9c67edfbc08b371db050b6d and fixed in 6.15 with commit d2062cc1b1c367d5d019f595ef860159e1301351 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-38026 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/coco/sev/core.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/26468ea864fecf496654459e52a6b7a7230bcb6d https://git.kernel.org/stable/c/d2062cc1b1c367d5d019f595ef860159e1301351