Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 27291e2165b6de70c476b7b675308113edd69a60 before 6830fbc3724bf49c142aae69a4694f115fa9cedd; affected 27291e2165b6de70c476b7b675308113edd69a60 before f8e3a9997d5ecd56ebe4b262ff424516c068fecb; affected 27291e2165b6de70c476b7b675308113edd69a60 before 76f5b4ea9ed0aa5a34bda9d8a878f2c73026ec03; affected 27291e2165b6de70c476b7b675308113edd69a60 before cc710ee45395efb4937e042960f791d33924e5f6; affected 27291e2165b6de70c476b7b675308113edd69a60 before 4c05bf21d1806853e662cc19e744736a3408f155; affected 27291e2165b6de70c476b7b675308113edd69a60 before a4e482def8533ebace517d9f67f1465841b1f982 |
| Linux / Linux | affected 3.16; unaffected 0 before 3.16; unaffected 6.1.188 through 6.1.*; unaffected 6.6.157 through 6.6.*; unaffected 6.12.110 through 6.12.*; unaffected 6.18.51 through 6.18.*; unaffected 7.2.5 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
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