CVE-2026-143373: scsi: target: Validate REGISTER AND MOVE TransportID length
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 tidlen + 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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.276 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.227 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
In the REGISTER AND MOVE handler, compare the declared TransportID length with the bytes remaining after the 24-byte parameter-list header and reject shorter TransportIDs with INVALID PARAMETER LIST before reading buf[24].
Event History
Frequently Asked Questions
What does an attacker need to send to trigger the vulnerable path?
The attacker needs to submit a malformed Persistent Reserve OUT REGISTER AND MOVE command whose parameter list contains a declared TransportID length shorter than the minimum 24 bytes. The malformed list must reach the SCSI target command handler.
Is vhost-scsi the only affected exposure path?
vhost-scsi is the path through which the out-of-bounds read was observed on a KASAN-enabled kernel. The provided information does not establish that vhost-scsi is the only way to reach the affected SCSI target handler.
What behavior indicates the fix is present?
A fixed kernel rejects a malformed REGISTER AND MOVE parameter list with INVALID PARAMETER LIST before accessing the TransportID protocol identifier. The fix validates both the minimum TransportID size and that its declared length fits within the bytes following the 24-byte header.