Description
In the Linux kernel, the following vulnerability has been resolved: KVM: s390: Take srcu when importing watchpoint data __import_wp_info() backs up the original guest memory contents of a watchpoint with read_guest_abs(), which is kvm_read_guest() and therefore resolves the memslot via __kvm_memslots(). That requires kvm->srcu (or kvm->slots_lock) to be held, otherwise a concurrent memslot update can free the memslots array under us once its SRCU grace period has elapsed. As this is not fast path, following lock ordering (mutex first, then srcu) take the big hammer and hold the srcu for the full import.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
27291e2165b6de70c476b7b675308113edd69a60 to < 6830fbc3724bf49c142aae69a4694f115fa9ceddaffected27291e2165b6de70c476b7b675308113edd69a60 to < f8e3a9997d5ecd56ebe4b262ff424516c068fecbaffected27291e2165b6de70c476b7b675308113edd69a60 to < 76f5b4ea9ed0aa5a34bda9d8a878f2c73026ec03affected27291e2165b6de70c476b7b675308113edd69a60 to < cc710ee45395efb4937e042960f791d33924e5f6affected27291e2165b6de70c476b7b675308113edd69a60 to < 4c05bf21d1806853e662cc19e744736a3408f155affected27291e2165b6de70c476b7b675308113edd69a60 to < a4e482def8533ebace517d9f67f1465841b1f982affected
Linux Linux
Default version status: affected
3.16affected0 to < 3.16unaffected6.1.188 to ≤ 6.1.*unaffected6.6.157 to ≤ 6.6.*unaffected6.12.110 to ≤ 6.12.*unaffected6.18.51 to ≤ 6.18.*unaffected7.2.5 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/6830fbc3724bf49c142aae69a4694f115fa9cedd ↗
- https://git.kernel.org/stable/c/f8e3a9997d5ecd56ebe4b262ff424516c068fecb ↗
- https://git.kernel.org/stable/c/76f5b4ea9ed0aa5a34bda9d8a878f2c73026ec03 ↗
- https://git.kernel.org/stable/c/cc710ee45395efb4937e042960f791d33924e5f6 ↗
- https://git.kernel.org/stable/c/4c05bf21d1806853e662cc19e744736a3408f155 ↗
- https://git.kernel.org/stable/c/a4e482def8533ebace517d9f67f1465841b1f982 ↗