CVE-2026-99935: scsi: libiscsi_tcp: Prevent R2T range check overflow
In the Linux kernel, the following vulnerability has been resolved:
scsi: libiscsitcp: Prevent R2T range check overflow
An iSCSI target controls the R2T data offset and length as 32-bit values. Adding them before comparing the result with the SCSI data buffer length can wrap. An R2T with offset 1 and length U32MAX then passes the check for a 4096-byte write.
The transmit path treats the wrapped range as valid, exhausts the command scatterlist, and dereferences the NULL next entry in iscsitcpsegmentdone().
Check the offset first, then compare the length with the remaining bytes in the data buffer.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In iscsi_tcp_segment_done(), check the R2T data offset first, then compare the length against the bytes remaining in the SCSI data buffer to prevent range-check overflow.