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 6E275143890 for ; Tue, 21 May 2024 15:07:38 +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=1716304058; cv=none; b=Ebk9ODRbIinpOoEpndjKHzn+Srz3RmZZOinIgcb/yV9+pn1EXCrnTxRYVOq43nDi2hQlsEA7r9e+upW6cRfCCdoutCVGOSpJ1u6H7dyBnGBLKWTm9hvn0ggEKtxnqLfYaztrKeUGcWMleMCUhviCaebdu03V6BmoENjsec0+7QI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716304058; c=relaxed/simple; bh=ZGoGCqNwR0zfjoPnr6Kf7HMez/mIHzvTErSnWWUetmE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GMn/bkk87VTye1l/4uEG+ZhM5tnL43t1K90d36rnDUXLh48n3YF7jrW8VSfbpEw6OB1LdCXAXcuJyKW+rNxGQOFa+Uy9EeQrRqeVRPYXAsKCMXemFs+7tyuyjGBb/pb4CZpY3zbAJwyYr4wBqFjBhGJmUNghko5aFGxRXGhAjoc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YAEn+4HL; 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="YAEn+4HL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B56EC2BD11; Tue, 21 May 2024 15:07:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716304058; bh=ZGoGCqNwR0zfjoPnr6Kf7HMez/mIHzvTErSnWWUetmE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YAEn+4HLD5rtuAsXX9Rt+zom+vIatbw7qSzRnS1NbAcN9JGbOuyXEbTEtSuUrRSa4 vJMEePFv/wPYX0Uhf/Ke9CNH+gA5w8LtHehD5Urbjtrc1x9TQB1TYSC4dhD9vgaQ9C 5p40jvDedgY4Zm8Wx7jgvQikTCbJeqpC7sgGWb+k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47407: KVM: x86: Handle SRCU initialization failure during page track init Date: Tue, 21 May 2024 17:04:24 +0200 Message-ID: <2024052151-CVE-2021-47407-fd65@gregkh> X-Mailer: git-send-email 2.45.1 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=2002; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZGoGCqNwR0zfjoPnr6Kf7HMez/mIHzvTErSnWWUetmE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+268LnnW+JrB4wXXnRpO7akLMR2YyfBAyKTur86p4n buGQP/8jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIDlWGBbOcbp3azD8vfG/Y 7jdf1nOyZfeIXWWY72JjMvNRKOvUDw/43CWn7+i6qbNMCwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: KVM: x86: Handle SRCU initialization failure during page track init Check the return of init_srcu_struct(), which can fail due to OOM, when initializing the page track mechanism. Lack of checking leads to a NULL pointer deref found by a modified syzkaller. [Move the call towards the beginning of kvm_arch_init_vm. - Paolo] The Linux kernel CVE team has assigned CVE-2021-47407 to this issue. Affected and fixed versions =========================== Fixed in 5.10.71 with commit deb294941767 Fixed in 5.14.10 with commit 4664318f73e4 Fixed in 5.15 with commit eb7511bf9182 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-2021-47407 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/kvm_page_track.h arch/x86/kvm/mmu/page_track.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/deb2949417677649e2413266d7ce8c2ff73952b4 https://git.kernel.org/stable/c/4664318f73e496cd22c71b10888e75434a123e23 https://git.kernel.org/stable/c/eb7511bf9182292ef1df1082d23039e856d1ddfb