CVE-2023-52639 KVM: s390: vsie: fix race during shadow creation

Medium 4.7 Published Updated

A race condition in the Linux kernel's KVM s390 subsystem can cause a crash when accessing uninitialized private data during shadow creation.

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-2023-52639?

CVE-2023-52639 is a medium-severity vulnerability in Linux kernel, published on 3 Apr 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: s390: vsie: fix race during shadow creation

Right now it is possible to see gmap->private being zero in kvm_s390_vsie_gmap_notifier resulting in a crash. This is due to the fact that we add gmap->private == kvm after creation:

static int acquire_gmap_shadow(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page) { [...] gmap = gmap_shadow(vcpu->arch.gmap, asce, edat); if (IS_ERR(gmap)) return PTR_ERR(gmap); gmap->private = vcpu->kvm;

Let children inherit the private field of the parent.

Weakness: CWE-362

Which versions are affected by CVE-2023-52639?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-52639?

Apply the vendor's patch.

Is CVE-2023-52639 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-52639, DEBIAN-CVE-2023-52639, GHSA-82mq-c3x3-cpp9, ROOT-OS-DEBIAN-11-CVE-2023-52639, UBUNTU-CVE-2023-52639.

Is CVE-2023-52639 in your software?

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

Check your SBOMs for free