CVE-2022-49883

Description

A flaw was found in the Linux kernel's KVM (Kernel-based Virtual Machine) subsystem. When a 64-bit host runs a 32-bit guest virtual machine lacking 64-bit long mode support, the System Management Mode (SMM) save and restore emulation accesses an incorrect number of general-purpose registers in the SMM memory image. A privileged user within the guest can exploit this flaw to trigger out-of-bounds memory access, resulting in a Denial of Service (DoS) via a host kernel crash.

Statement

A memory corruption vulnerability exists in the KVM x86 implementation, where the wrong number of General Purpose Registers (GPRs) is accessed in the System Management Mode (SMM) save/restore logic depending on guest architecture. On 64-bit hosts running 32-bit guests without the X86_FEATURE_LM feature, KVM may access out-of-bounds memory when reading or writing the SMRAM image, due to assuming a 64-bit GPR layout. This issue can only be triggered by a local, privileged guest user with access to SMM context or control over crafted guest state in a virtualized environment.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score5.37.17.1
Attack VectorLocalLocalLocal
Attack ComplexityHighLowLow
Privileges RequiredHighLowLow
User InteractionNoneNoneNone
ScopeChangedUnchangedUnchanged
ConfidentialityNoneHighHigh
Integrity ImpactNoneNoneNone
Availability ImpactHighHighHigh

Vector

Red Hat: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:N/I:N/A:H

NVD: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

cve.org: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Understanding the Weakness (CWE)

Integrity

Technical Impact: Modify Memory; Execute Unauthorized Code or Commands

Write operations could cause memory corruption. In some cases, an adversary can modify control data such as return addresses in order to execute unexpected code.

Availability

Technical Impact: DoS: Crash, Exit, or Restart

Attempting to access out-of-range, invalid, or unauthorized memory could cause the product to crash.

Other

Technical Impact: Unexpected State

Subsequent write operations can produce undefined or unexpected results.

Frequently Asked Questions

Want to get errata notifications? Sign up here.