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 DAABE12F392 for ; Tue, 21 May 2024 14:21: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=1716301298; cv=none; b=ggwMUncqaCxQmocvp1oss8LsPnOqrrLfIPNU8sgC1xM3Qb72MvF49GNSrXe98yp8awMnFIScyRb+zuNYl2W1dpu5S29VvvTbaNHMPcH4BWM9hTGXs63ZbKbpXnTVtmscbHSVw7CH2GeGhu6JlaX7xiOr0x+5/e9XLIGEYAU5R80= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716301298; c=relaxed/simple; bh=TO4U3JaoKQmGJdNLXneq3SihgyfoHcq7Q0yHevyte88=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bqWpgxdh3xcsxn5cvZYsz7miO7R7DI6Z+xy9fbhKmYELhHBm4fJ7/IsR+lLoERr6TBCNKlxpUpa2b9OBEr0HWYyJPGsCbryWNsX752ldUgymrfboxQLUuk0xyeoUPXsp7Fl6BEUmMxqRX71F/z51/vjn74pCVqOkWQn4q1PV5hA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ph/wEOKm; 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="ph/wEOKm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 137A2C2BD11; Tue, 21 May 2024 14:21:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716301298; bh=TO4U3JaoKQmGJdNLXneq3SihgyfoHcq7Q0yHevyte88=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ph/wEOKmTXtEkkE6/StT+bCmCIBptvIYZ8Rc+l76jsQavROhIR9UZUXLo+JhPQECm IYKevRuFerd4XOZ9V3deyMvhPcYeMoI2NdNRCJntLygwKtEwaJzYC1AD0DjRdwtmC7 WqdzrEyBhk3yHckwBWIMH7qSNVKnknmIMN/36bso= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47255: kvm: LAPIC: Restore guard to prevent illegal APIC register access Date: Tue, 21 May 2024 16:20:09 +0200 Message-ID: <2024052146-CVE-2021-47255-c840@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=2399; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TO4U3JaoKQmGJdNLXneq3SihgyfoHcq7Q0yHevyte88=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+a5uSrDcn9k6eLrRG88js9WePJSqdzubQf56++/mGg MWzNCW6OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAia28xLLi0pKTR+CDj6h+C zvfVfT8r7arKq2VYsIHnl8ifbta/Ol/DrLewiLCZbPxeDwA= 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: LAPIC: Restore guard to prevent illegal APIC register access Per the SDM, "any access that touches bytes 4 through 15 of an APIC register may cause undefined behavior and must not be executed." Worse, such an access in kvm_lapic_reg_read can result in a leak of kernel stack contents. Prior to commit 01402cf81051 ("kvm: LAPIC: write down valid APIC registers"), such an access was explicitly disallowed. Restore the guard that was removed in that commit. The Linux kernel CVE team has assigned CVE-2021-47255 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit 01402cf81051 and fixed in 5.4.128 with commit bf99ea52970c Issue introduced in 5.3 with commit 01402cf81051 and fixed in 5.10.46 with commit 018685461a5b Issue introduced in 5.3 with commit 01402cf81051 and fixed in 5.12.13 with commit a2aff09807fb Issue introduced in 5.3 with commit 01402cf81051 and fixed in 5.13 with commit 218bf772bddd 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-47255 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/lapic.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/bf99ea52970caeb4583bdba1192c1f9b53b12c84 https://git.kernel.org/stable/c/018685461a5b9a9a70e664ac77aef0d7415a3fd5 https://git.kernel.org/stable/c/a2aff09807fbe4018c269d3773a629949058b210 https://git.kernel.org/stable/c/218bf772bddd221489c38dde6ef8e917131161f6