{"id":"CVE-2022-49883","state":"PUBLISHED","title":"KVM: x86: smm: number of GPRs in the SMRAM image depends on the image format","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: x86: smm: number of GPRs in the SMRAM image depends on the image format\n\nOn 64 bit host, if the guest doesn't have X86_FEATURE_LM, KVM will\naccess 16 gprs to 32-bit smram image, causing out-ouf-bound ram\naccess.\n\nOn 32 bit host, the rsm_load_state_64/enter_smm_save_state_64\nis compiled out, thus access overflow can't happen.","publishedAt":"2025-05-01T14:10:29.804Z","updatedAt":"2026-10-15T21:31:17.152Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b443183a25ab61840a12de92f8822849e017b9c8","status":"affected","lessThan":"a7ebfbea0f52550d7cdf12c38f3f5eaa7b2b6494","versionType":"git"},{"version":"b443183a25ab61840a12de92f8822849e017b9c8","status":"affected","lessThan":"696db303e54f7352623d9f640e6c51d8fa9d5588","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/x86/kvm/emulate.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.0.8","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/x86/kvm/emulate.c"]}],"references":["https://git.kernel.org/stable/c/a7ebfbea0f52550d7cdf12c38f3f5eaa7b2b6494","https://git.kernel.org/stable/c/696db303e54f7352623d9f640e6c51d8fa9d5588"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49883.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49883","state":"PUBLISHED","datePublished":"2025-05-01T14:10:29.804Z","dateUpdated":"2026-10-15T21:31:17.152Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-05-01T14:05:17.241Z"},"containers":{"cna":{"title":"KVM: x86: smm: number of GPRs in the SMRAM image depends on the image format","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: x86: smm: number of GPRs in the SMRAM image depends on the image format\n\nOn 64 bit host, if the guest doesn't have X86_FEATURE_LM, KVM will\naccess 16 gprs to 32-bit smram image, causing out-ouf-bound ram\naccess.\n\nOn 32 bit host, the rsm_load_state_64/enter_smm_save_state_64\nis compiled out, thus access overflow can't happen."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b443183a25ab61840a12de92f8822849e017b9c8","status":"affected","lessThan":"a7ebfbea0f52550d7cdf12c38f3f5eaa7b2b6494","versionType":"git"},{"version":"b443183a25ab61840a12de92f8822849e017b9c8","status":"affected","lessThan":"696db303e54f7352623d9f640e6c51d8fa9d5588","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/x86/kvm/emulate.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.0.8","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/x86/kvm/emulate.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a7ebfbea0f52550d7cdf12c38f3f5eaa7b2b6494"},{"url":"https://git.kernel.org/stable/c/696db303e54f7352623d9f640e6c51d8fa9d5588"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - Exploitation requires local access to KVM (/dev/kvm ioctls) to create a non-LM guest with SMM, inject SMI, and execute RSM; it is not reachable via network packets.\nAC:L - An attacker who can use KVM fully controls CPUID (clearing X86_FEATURE_LM), SMM enablement, SMI injection, and RSM execution, so the OOB path is reliably triggerable with no race or uncontrolled condition.\nPR:L - Creating and running a KVM VM needs only access to /dev/kvm (kvm group or world-accessible on some distros), not real host root/CAP_SYS_ADMIN in the init namespace.\nUI:N - No separate victim action is required; the attacker drives the VM, injects SMI, and executes RSM themselves.\nS:U - The reliable impact is host-kernel stack disclosure into vCPU GPRs recovered via KVM_GET_REGS by host userspace, remaining within the same host OS security authority rather than a guest-observable VM escape.\nC:H - rsm_load_state_32() reads 16 bytes past em_rsm()'s stack buf[512] (GET_SMSTATE offsets for GPRs 12–15) and writeback stores that host stack data into vCPU R12–R15, which KVM_GET_REGS exposes (pointers/canaries possible).\nI:N - The bug is an out-of-bounds read only; corrupted values are written into in-bounds emulator/vCPU register slots, with no host memory write or control-flow hijack primitive.\nA:H - The out-of-bounds host stack access can fault into unmapped memory and oops/panic the host kernel, so availability impact is scored High."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:56:31.933Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.0.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2022-49883","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-10-15T21:29:37.620177Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T21:31:17.152Z"}}]}}}