KVM: s390: pci: fix GAIT table indexing due to double-scaling pointer arithmetic
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.1.175, 6.6.141, 6.12.91, 6.18.33, 7.0.10
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: KVM: s390: pci: fix GAIT table indexing due to double-scaling pointer arithmetic kvm_s390_pci_aif_enable(), kvm_s390_pci_aif_disable(), and aen_host_forward() index the GAIT by manually multiplying the index with sizeof(struct zpci_gaite). Since aift->gait is already a struct zpci_gaite pointer, this double-scales the offset, accessing element aisb*16 instead of aisb. This causes out-of-bounds accesses when aisb >= 32 (with ZPCI_NR_DEVICES=512) Fix by removing the erroneous sizeof multiplication.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 73f91b004321f2510fa79e66035dbbf1870fcf56 · fixed in 31a9d9f9942885aae356a1a57c79e82c5b5b0828; From 73f91b004321f2510fa79e66035dbbf1870fcf56 · fixed in a99a25db131ece5e6c0f7632da606de631efe4f2; From 73f91b004321f2510fa79e66035dbbf1870fcf56 · fixed in 11b8ff5b930b351dd1f6f088dce0beb027ac92d0; From 73f91b004321f2510fa79e66035dbbf1870fcf56 · fixed in b22a2da8792a7bfe743c1a922e77fa499ddedbe8; From 73f91b004321f2510fa79e66035dbbf1870fcf56 · fixed in e7216651b94e92e5433fb2f54b77864642b4ea48; From 73f91b004321f2510fa79e66035dbbf1870fcf56 · fixed in 16d990a15491cf76cd6eef0846e1b4100e63261a
- Linux Linux
6.0
- KernelLinux
From 6.0.0 · fixed in 6.1.175; From 6.2.0 · fixed in 6.6.141; From 6.7.0 · fixed in 6.12.91; From 6.13.0 · fixed in 6.18.33; From 6.19.0 · fixed in 7.0.10