Linux
s390/vfio_ccw: Selectively expand io_mutex
In the Linux kernel, the following vulnerability has been resolved: s390/vfio_ccw: Selectively expand io_mutex The io_mutex was defined to serialize the io_regions, but then has also sort of been associated with the I/O themselves because of the close relationship they share. With the handful of races that are possible, the choices are either to: A) expand the scope of io_mutex to close these remaining windows, or B) reduce the scope of io_mutex to just io_region, and introduce a new lock mechanism for the remaining I/O resources This patch implements A, since B brings with it a lot more interactions that would need to be tracked and kept in a correct hierarchy. It also takes advantage of the workqueue element for cp_free() that now gets called out of fsm_notoper(), which could be invoked out of an interrupt context and thus cannot acquire a mutex itself.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4f76617378ee97c557b526cb58d3c61eb0a9c963, < dab6a6627b0b0cce23653e99c7b0bf8c6cfd82e0
- >= 4f76617378ee97c557b526cb58d3c61eb0a9c963, < 56d7488533ceac4e986e96e15c9e487a2245bc01
- >= 4f76617378ee97c557b526cb58d3c61eb0a9c963, < f72a51810d49411bd8cad0c2df8592320a2fe5cc
- >= 4f76617378ee97c557b526cb58d3c61eb0a9c963, < 2ba9efdf9ebedc4e54df4b56aa3b43a65f7967cd
- >= 4f76617378ee97c557b526cb58d3c61eb0a9c963, < b6aecea4b2b246f9fbd98a5712daa1193a60818e
- >= 4f76617378ee97c557b526cb58d3c61eb0a9c963, < 2a5ac0c0f1f7da33929211a2e41911bf72ee35d8
- >= 4f76617378ee97c557b526cb58d3c61eb0a9c963, < 34f4feff3e90bd09308fad0974e97113b23b812a
Fixed in dab6a6627b0b0cce23653e99c7b0bf8c6cfd82e0, 56d7488533ceac4e986e96e15c9e487a2245bc01, f72a51810d49411bd8cad0c2df8592320a2fe5cc, 2ba9efdf9ebedc4e54df4b56aa3b43a65f7967cd, b6aecea4b2b246f9fbd98a5712daa1193a60818e, 2a5ac0c0f1f7da33929211a2e41911bf72ee35d8, 34f4feff3e90bd09308fad0974e97113b23b812a
- 5.2
Fixed in 0, 5.15.218, 6.1.185, 6.6.153, 6.12.105, 6.18.46, 7.1.10, 7.2
Mitigation
Upgrade Linux to dab6a6627b0b0cce23653e99c7b0bf8c6cfd82e0 or 56d7488533ceac4e986e96e15c9e487a2245bc01 or f72a51810d49411bd8cad0c2df8592320a2fe5cc or 2ba9efdf9ebedc4e54df4b56aa3b43a65f7967cd or b6aecea4b2b246f9fbd98a5712daa1193a60818e or 2a5ac0c0f1f7da33929211a2e41911bf72ee35d8 or 34f4feff3e90bd09308fad0974e97113b23b812a or later.
Upgrade Linux to 0 or 5.15.218 or 6.1.185 or 6.6.153 or 6.12.105 or 6.18.46 or 7.1.10 or 7.2 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.