Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 2C5DE40628C for ; Wed, 27 May 2026 13:03:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779886992; cv=none; b=S10h2+wahbEv0U6giyzcEZVpMEUfEebTH7JzQAEYLso3HIjH/3R/TuLB2R+YLUgAydvHXp/6xTVLSzCmCn0qCWk6IVE7jRKlAngBrQOUSOFAZl5NZKm2HW8Ntt/C+sgvYis+CmQY5HSLoUmZsOqDMpmBQRp4exsk5z1Avoy4leY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779886992; c=relaxed/simple; bh=R80DRTQnY+Q7Mt8jNHtBhxmlDD6pV2+j54EVkOCNhXA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iY9CN0kS1zGGcHm1a2AuYcQib2aK76RJ4JfHIqkj4pZsumN5PvF07Z45xceAwpHCf9MrBCAK6KF256V0STvPEJ/ouxsq/8aoA1VU4Ko8p4l1B8wQNg/sEM635TGT6Ek3W43h3EqlLjUUdbZ6L/iJuNhN0C3ZYDI81A8Ns1q4z7c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ptin+0ZF; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ptin+0ZF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 321F71F000E9; Wed, 27 May 2026 13:03:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779886990; bh=MuE0qIGDdPFe6t++5G8YLBLzw9KdSRW3k8kPUht7XzI=; h=From:To:Cc:Subject:Date:Reply-To; b=ptin+0ZF4FtoUK//uCw1pxMjkFlIVGx5WJK/1S+h7o9FprOo9MVbJ6CYP3/SvkNH9 Mfs1spvw4r9HFw2W2RauXRDqHCAeq+MW00A/TMlwpNqNtDNj1oS8lvqNot2ii6g3gf PYUJ08VI35wTfmk2LwpM6QVfj+KL4u2E3zjEY4Q0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46014: KVM: SVM: Add missing save/restore handling of LBR MSRs Date: Wed, 27 May 2026 14:59:05 +0200 Message-ID: <2026052745-CVE-2026-46014-5f5a@gregkh> X-Mailer: git-send-email 2.54.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=2982; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5GCa4L23a4wYjAE7axGOcBVVLp3dY9HCVLMXY5MylPQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlir1p3fPv+tfDI72/CDVZfaj4vOs/w/MtttZ2z/j07v zL7ov+itR2xLAyCTAyyYoosX7bxHN1fcUjRy9D2NMwcViaQIQxcnAIwkYmXGBa08PoZ37EPXfpr Sv38DFYOke13Fd4wLOhMUWFO0lK6EmioIfn3obvvP2HJXwA= 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: KVM: SVM: Add missing save/restore handling of LBR MSRs MSR_IA32_DEBUGCTLMSR and LBR MSRs are currently not enumerated by KVM_GET_MSR_INDEX_LIST, and LBR MSRs cannot be set with KVM_SET_MSRS. So save/restore is completely broken. Fix it by adding the MSRs to msrs_to_save_base, and allowing writes to LBR MSRs from userspace only (as they are read-only MSRs) if LBR virtualization is enabled. Additionally, to correctly restore L1's LBRs while L2 is running, make sure the LBRs are copied from the captured VMCB01 save area in svm_copy_vmrun_state(). Note, for VMX, this also fixes a flaw where MSR_IA32_DEBUGCTLMSR isn't reported as an MSR to save/restore. Note #2, over-reporting MSR_IA32_LASTxxx on Intel is ok, as KVM already handles unsupported reads and writes thanks to commit b5e2fec0ebc3 ("KVM: Ignore DEBUGCTL MSRs with no effect") (kvm_do_msr_access() will morph the unsupported userspace write into a nop). [sean: guard with lbrv checks, massage changelog] The Linux kernel CVE team has assigned CVE-2026-46014 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.26 with commit 24e09cbf480a72f9c952af4ca77b159503dca44b and fixed in 6.18.27 with commit 2b922a42b531a82d7881add14a7698dcdc5e1f0a Issue introduced in 2.6.26 with commit 24e09cbf480a72f9c952af4ca77b159503dca44b and fixed in 7.0.4 with commit 13a89ada5dcfc2539514c83ba5a2c61157f1ec6c Issue introduced in 2.6.26 with commit 24e09cbf480a72f9c952af4ca77b159503dca44b and fixed in 7.1-rc1 with commit 3700f0788da6acf73b2df56690f4b201aa4aefd2 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-2026-46014 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/kvm/svm/nested.c arch/x86/kvm/svm/svm.c arch/x86/kvm/x86.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/2b922a42b531a82d7881add14a7698dcdc5e1f0a https://git.kernel.org/stable/c/13a89ada5dcfc2539514c83ba5a2c61157f1ec6c https://git.kernel.org/stable/c/3700f0788da6acf73b2df56690f4b201aa4aefd2