CVE-2022-48793

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-48793
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-48793.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-48793
Downstream
Related
Published
2024-07-16T11:43:48Z
Modified
2025-10-08T06:00:59.916990Z
Summary
KVM: x86: nSVM: fix potential NULL derefernce on nested migration
Details

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 nestedsvmload_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.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
232f75d3b4b5456de6f0b671aa86345d62de1473
Fixed
74b426bea4f7e3b081add2b88d4fba16d3af7ab6
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
232f75d3b4b5456de6f0b671aa86345d62de1473
Fixed
352193edda48e08e8824a7ece09aec830a603cfe
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
232f75d3b4b5456de6f0b671aa86345d62de1473
Fixed
e1779c2714c3023e4629825762bcbc43a3b943df

Affected versions

v5.*

v5.12
v5.12-rc4
v5.12-rc5
v5.12-rc6
v5.12-rc7
v5.12-rc8
v5.13
v5.13-rc1
v5.13-rc2
v5.13-rc3
v5.13-rc4
v5.13-rc5
v5.13-rc6
v5.13-rc7
v5.14
v5.14-rc1
v5.14-rc2
v5.14-rc3
v5.14-rc4
v5.14-rc5
v5.14-rc6
v5.14-rc7
v5.15
v5.15-rc1
v5.15-rc2
v5.15-rc3
v5.15-rc4
v5.15-rc5
v5.15-rc6
v5.15-rc7
v5.15.1
v5.15.10
v5.15.11
v5.15.12
v5.15.13
v5.15.14
v5.15.15
v5.15.16
v5.15.17
v5.15.18
v5.15.19
v5.15.2
v5.15.20
v5.15.21
v5.15.22
v5.15.23
v5.15.24
v5.15.3
v5.15.4
v5.15.5
v5.15.6
v5.15.7
v5.15.8
v5.15.9
v5.16
v5.16-rc1
v5.16-rc2
v5.16-rc3
v5.16-rc4
v5.16-rc5
v5.16-rc6
v5.16-rc7
v5.16-rc8
v5.16.1
v5.16.10
v5.16.2
v5.16.3
v5.16.4
v5.16.5
v5.16.6
v5.16.7
v5.16.8
v5.16.9
v5.17-rc1
v5.17-rc2
v5.17-rc3

Database specific

{
    "vanir_signatures": [
        {
            "signature_version": "v1",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "111928567971701475748337662752526961624",
                    "108778657089085502445054755786402265292",
                    "339142716567653978029283186433089447879",
                    "182822944490200011792034593110508767277",
                    "110878015638551237011795770910256143117",
                    "122170852949259316088392017712303054206",
                    "306613831125994516841043409544301957226",
                    "211572147858279416271831413775007605155",
                    "112077551116105331357919095504667757402",
                    "249355694910005251987291756633220364198",
                    "151373870696948737323532978660349868538"
                ]
            },
            "id": "CVE-2022-48793-052be565",
            "deprecated": false,
            "target": {
                "file": "arch/x86/kvm/svm/nested.c"
            },
            "signature_type": "Line",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@352193edda48e08e8824a7ece09aec830a603cfe"
        },
        {
            "signature_version": "v1",
            "digest": {
                "length": 2466.0,
                "function_hash": "246277879032195249318421535464958150590"
            },
            "id": "CVE-2022-48793-26b2fd79",
            "deprecated": false,
            "target": {
                "file": "arch/x86/kvm/svm/nested.c",
                "function": "svm_set_nested_state"
            },
            "signature_type": "Function",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@352193edda48e08e8824a7ece09aec830a603cfe"
        }
    ]
}

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.13.0
Fixed
5.15.25
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.16.11