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 D295B1F0982 for ; Thu, 1 May 2025 14:16:54 +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=1746109014; cv=none; b=DYDneh/vDkch7siDIXp83ffqYxN5KyAQgIQzHboa6SprAzvLIFksS2fAHfaXJTqy+ZU5MB4r8yJ3vQ6mRIaDUmDL/mTK/5IqVYdGsA9hINtHCSh6LnB85f5lOO+SomSP/tY+daPHFtuDsr6aMpWKLB84p/yvoQhgNb/g9ztbomg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746109014; c=relaxed/simple; bh=f1UFp5OqpDSS5c5sS98c+jlug7Dmgo4fdweggoomshY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JCOu9gFORUrnqP0uZGdLN3xCXZ0XU9xF23yYnL0mPA3glHuxI8ATJZUAnFZxRDCmG9jMUe4CYPudTukBp6xRXRn0K+qJ/O723WR0e4wXfo8OuJ/T3HuAaK8wfA4N8C1S7Kb91Udcibw8exo5BBXgMLbudXAsaLiCBNmz4335oVQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OXxA7rqW; 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="OXxA7rqW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF29BC4CEEE; Thu, 1 May 2025 14:16:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746109014; bh=f1UFp5OqpDSS5c5sS98c+jlug7Dmgo4fdweggoomshY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=OXxA7rqWvRxpuCtitRRqcpKVk3PArgLUK/pv5ayTI9hKkoSdEzZQLaJVytK1A2nQg eYz04+DUO7SePp7XhtHrzsjMG9m/FYvad0hEuipckKvGkYc0WZBikBHKMjyevgtUuN M9a641OvFKBe6IQPsegL0fiJsF8ieheHH8oKYf/Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49883: KVM: x86: smm: number of GPRs in the SMRAM image depends on the image format Date: Thu, 1 May 2025 16:11:13 +0200 Message-ID: <2025050155-CVE-2022-49883-ba54@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=2036; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=37lZ5bVbmiYPC4qw6rbzwaVwgaXUFPpwGzhgz/uc3bs=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDZulur1eXlbW/mfYNcNp+2J/rvU63Lt8PILelim/E qxZZfCjI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYy/T3DfGdpt/99cyMYGh87 1xet7fl+YFJJGcP89IyXCrUhH87uS3huf3LxdcmV3ifFAA== 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: x86: smm: number of GPRs in the SMRAM image depends on the image format On 64 bit host, if the guest doesn't have X86_FEATURE_LM, KVM will access 16 gprs to 32-bit smram image, causing out-ouf-bound ram access. On 32 bit host, the rsm_load_state_64/enter_smm_save_state_64 is compiled out, thus access overflow can't happen. The Linux kernel CVE team has assigned CVE-2022-49883 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit b443183a25ab61840a12de92f8822849e017b9c8 and fixed in 6.0.8 with commit a7ebfbea0f52550d7cdf12c38f3f5eaa7b2b6494 Issue introduced in 6.0 with commit b443183a25ab61840a12de92f8822849e017b9c8 and fixed in 6.1 with commit 696db303e54f7352623d9f640e6c51d8fa9d5588 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-2022-49883 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/emulate.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/a7ebfbea0f52550d7cdf12c38f3f5eaa7b2b6494 https://git.kernel.org/stable/c/696db303e54f7352623d9f640e6c51d8fa9d5588