Linux
KVM: s390: keyop: use mmu_lock to read gmap->asce
In the Linux kernel, the following vulnerability has been resolved: KVM: s390: keyop: use mmu_lock to read gmap->asce Every other dat_* consumer in this file (kvm_s390_get_skeys, set_skeys, get_cmma_bits, set_cmma_bits, MEM_CLR_CMMA, kvm_s390_fixup_prefix, kvm_test_age_gfn, kvm_age_gfn) reads kvm->arch.gmap->asce *inside* the mmu_lock read-side. keyop is the only outlier. gmap->asce is mutated under write_lock(mmu_lock) by gmap_set_limit() and keyop might use a stale asce value for walking as KVM_S390_KEYOP and KVM_S390_VM_MEM_LIMIT_SIZE can run concurrently. This can result in memory corruption.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0ee4ddc1647b8b3b9e7a94d798a1774a764428c1, < ae452b990e0544425f77045351c56e77158858e7
- >= 0ee4ddc1647b8b3b9e7a94d798a1774a764428c1, < da07a751efa4583385f9f0f47113549fe8871242
Fixed in ae452b990e0544425f77045351c56e77158858e7, da07a751efa4583385f9f0f47113549fe8871242
- 7.0
Fixed in 0, 7.2.5, 7.3
Mitigation
Upgrade Linux to ae452b990e0544425f77045351c56e77158858e7 or da07a751efa4583385f9f0f47113549fe8871242 or later.
Upgrade Linux to 0 or 7.2.5 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.