Linux
LoongArch: KVM: Handle the case that EIOINTC's coremap is empty
In the Linux kernel, the following vulnerability has been resolved: LoongArch: KVM: Handle the case that EIOINTC's coremap is empty EIOINTC's coremap in eiointc_update_sw_coremap() can be empty, currently we get a cpuid with -1 in this case, but we actually need 0 because it's similar as the case that cpuid >= 4. This fix an out-of-bounds access to kvm_arch::phyid_map::phys_map[].
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3956a52bc05bd811082a3c9d2b423ee957e6fefc, < 126053d0a685bf1f2e98db8966386f38b2336338
- >= 3956a52bc05bd811082a3c9d2b423ee957e6fefc, < 2a0cbcd28ecf6e0b88fa498bebb94bd1be61a7c3
- >= 3956a52bc05bd811082a3c9d2b423ee957e6fefc, < b97bd69eb0f67b5f961b304d28e9ba45e202d841
Fixed in 126053d0a685bf1f2e98db8966386f38b2336338, 2a0cbcd28ecf6e0b88fa498bebb94bd1be61a7c3, b97bd69eb0f67b5f961b304d28e9ba45e202d841
- 6.13
Fixed in 0, 6.18.21, 6.19.11, 7.0
Mitigation
Upgrade Linux to 126053d0a685bf1f2e98db8966386f38b2336338 or 2a0cbcd28ecf6e0b88fa498bebb94bd1be61a7c3 or b97bd69eb0f67b5f961b304d28e9ba45e202d841 or later.
Upgrade Linux to 0 or 6.18.21 or 6.19.11 or 7.0 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.