Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: vhost-scsi: flush backend after device ioctls vhost-scsi translates guest response descriptors into userspace iovecs when commands are submitted. Target-core completes those commands asynchronously, so VHOST_SET_MEM_TABLE can replace the memory table while an in-flight command still retains response iovecs translated through the old table. If the old mapping is reused after VHOST_SET_MEM_TABLE returns, command completion can write the response to an unrelated userspace object. Flush the vhost-scsi backend after vhost_dev_ioctl() handles a device ioctl. This waits for in-flight commands that can still use the old response iovecs before the ioctl returns.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 057cbf49a1f08297877e46c82f707b1bfea806a8 before 6436411203d8c702ffc055700f1a6bde488ff681; affected 057cbf49a1f08297877e46c82f707b1bfea806a8 before cec088285adcc7ae23c119b6bbdb22270dc2de8f; affected 057cbf49a1f08297877e46c82f707b1bfea806a8 before e0bf6bed528693a6b32439ab122b34a34b66d96f; affected 057cbf49a1f08297877e46c82f707b1bfea806a8 before be2636e1b21fe860db918152abf2932638d06ed7; affected 057cbf49a1f08297877e46c82f707b1bfea806a8 before 981c97d09c6b9560bb12dcc41f11ce59b1a48e97; affected 057cbf49a1f08297877e46c82f707b1bfea806a8 before 6c1b802e36b05ebd9d41686c4dce6f06966af469; affected 057cbf49a1f08297877e46c82f707b1bfea806a8 before 22598f55a4c2b510b3df5e69e563387a963222ae |
| Linux / Linux | affected 3.6; unaffected 0 before 3.6; unaffected 5.10.271 through 5.10.*; unaffected 5.15.222 through 5.15.*; unaffected 6.1.189 through 6.1.*; unaffected 6.6.158 through 6.6.*; unaffected 6.12.111 through 6.12.*; unaffected 6.18.53 through 6.18.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/6436411203d8c702ffc055700f1a6bde488ff681
- https://git.kernel.org/stable/c/cec088285adcc7ae23c119b6bbdb22270dc2de8f
- https://git.kernel.org/stable/c/e0bf6bed528693a6b32439ab122b34a34b66d96f
- https://git.kernel.org/stable/c/be2636e1b21fe860db918152abf2932638d06ed7
- https://git.kernel.org/stable/c/981c97d09c6b9560bb12dcc41f11ce59b1a48e97
- https://git.kernel.org/stable/c/6c1b802e36b05ebd9d41686c4dce6f06966af469
- https://git.kernel.org/stable/c/22598f55a4c2b510b3df5e69e563387a963222ae