Lucene search

K
cvelistLinuxCVELIST:CVE-2022-48793
HistoryJul 16, 2024 - 11:43 a.m.

CVE-2022-48793 KVM: x86: nSVM: fix potential NULL derefernce on nested migration

2024-07-1611:43:48
Linux
www.cve.org
9
linux kernel
kvm
x86
nsvm
nested migration

EPSS

0

Percentile

5.0%

In the Linux kernel, the following vulnerability has been resolved:

KVM: x86: nSVM: fix potential NULL derefernce on nested migration

Turns out that due to review feedback and/or rebases
I accidentally moved the call to nested_svm_load_cr3 to be too early,
before the NPT is enabled, which is very wrong to do.

KVM can’t even access guest memory at that point as nested NPT
is needed for that, and of course it won’t initialize the walk_mmu,
which is main issue the patch was addressing.

Fix this for real.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "arch/x86/kvm/svm/nested.c"
    ],
    "versions": [
      {
        "version": "232f75d3b4b5",
        "lessThan": "74b426bea4f7",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "232f75d3b4b5",
        "lessThan": "352193edda48",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "232f75d3b4b5",
        "lessThan": "e1779c2714c3",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "arch/x86/kvm/svm/nested.c"
    ],
    "versions": [
      {
        "version": "5.13",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.13",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.25",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.16.11",
        "lessThanOrEqual": "5.16.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.17",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]