KVM: s390: vsie: fix race during shadow creation (Linux Linux)

CVE-2023-52639
MEDIUM 4.7

At a glance

Source
NVD
EPSS
EPSS 0.18 % · percentile 7 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-362 — Concurrent Execution using Shared Resource with Improper Synchronization

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 4.7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected a3508fbe9dc6dd3bece0c7bf889cc085a011738c < 5df3b81a567eb565029563f26f374ae3803a1dfc ; affected a3508fbe9dc6dd3bece0c7bf889cc085a011738c < f5572c0323cf8b4f1f0618178648a25b8fb8a380 ; affected a3508fbe9dc6dd3bece0c7bf889cc085a011738c < 28bb27824f25f36e5f80229a358d66ee09244082 ; affected a3508fbe9dc6dd3bece0c7bf889cc085a011738c < fe752331d4b361d43cfd0b89534b4b2176057c32
Linux · Linuxaffected 4.8 ; unaffected 0 < 4.8 ; unaffected 6.1.82 ≤ 6.1.* ; unaffected 6.6.22 ≤ 6.6.* ; unaffected 6.7.6 ≤ 6.7.* ; unaffected 6.8 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD