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

Medium 5.5 Published Updated

A NULL pointer dereference in the Linux kernel's KVM nested SVM implementation can cause a system crash during nested migration.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-48793?

CVE-2022-48793 is a medium-severity vulnerability in Linux kernel, published on 16 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-476

Which versions are affected by CVE-2022-48793?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-48793?

Apply the vendor's patch.

Is CVE-2022-48793 being exploited?

There is no known exploitation of CVE-2022-48793 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-48793, GHSA-p5hp-9793-2w9c, UBUNTU-CVE-2022-48793.

Is CVE-2022-48793 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free