Description
In the Linux kernel, the following vulnerability has been resolved: scsi: target: Validate REGISTER AND MOVE TransportID length REGISTER AND MOVE has a 24-byte parameter-list header followed by a TransportID. A 24-byte parameter list with a zero TransportID length passes the existing tid_len + 24 check, then the handler reads buf[24] for the TransportID protocol identifier, one byte past the received parameter list. A TransportID is at least 24 bytes. Reject shorter TransportIDs and compare the declared length with the bytes following the header before reading buf[24]. A malformed PR OUT sent through vhost-scsi triggered this read on a KASAN kernel. The command is now rejected with INVALID PARAMETER LIST before buf[24] is accessed.
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
c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5 to < f26ea421f5a301e6b29a9ea944ab8e52c138e82caffectedc66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5 to < bccdf773fd5fc548c07545a7e594d7316fb52b0daffectedc66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5 to < db25547cfbea4b67b416a3e6d84370e8075d7036affectedc66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5 to < e56e50ad4f0043fe10c7ee1d6a5fe84950a3ce74affectedc66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5 to < f8534ae433ab76c94a13b15467f0b36f8b27a81caffectedc66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5 to < 5d5913710c81eed6fa275b6a24773059d9dbfdfaaffected
Linux Linux
Default version status: affected
2.6.38affected0 to < 2.6.38unaffected5.10.276 to ≤ 5.10.*unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/f26ea421f5a301e6b29a9ea944ab8e52c138e82c ↗
- https://git.kernel.org/stable/c/bccdf773fd5fc548c07545a7e594d7316fb52b0d ↗
- https://git.kernel.org/stable/c/db25547cfbea4b67b416a3e6d84370e8075d7036 ↗
- https://git.kernel.org/stable/c/e56e50ad4f0043fe10c7ee1d6a5fe84950a3ce74 ↗
- https://git.kernel.org/stable/c/f8534ae433ab76c94a13b15467f0b36f8b27a81c ↗
- https://git.kernel.org/stable/c/5d5913710c81eed6fa275b6a24773059d9dbfdfa ↗