Description
In the Linux kernel, the following vulnerability has been resolved: scsi: libiscsi_tcp: 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 U32_MAX 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 iscsi_tcp_segment_done(). Check the offset first, then compare the length with the remaining bytes in the data buffer.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- None
- Integrity
- None
- Availability
- High impact
References
- git.kernel.org/stable/c/fb7e3c649b7d6721e5b0e31b35b87a37db4f0246
- git.kernel.org/stable/c/01697cebec719c2db8c3bc8d265ad003efdd16c1
- git.kernel.org/stable/c/7a1bda4004e964793b23c1365cf0104c8603533c
- git.kernel.org/stable/c/6f3a770275640d3313a7089d49fdc31eb0fff95b
- git.kernel.org/stable/c/ca70c19c0b25e56f7c2566d979189d2cdccb95dc
- git.kernel.org/stable/c/e89d8e7c00ec52c207950a4f80c77e82565de9fe
- git.kernel.org/stable/c/9a6aa08dccb428d9f0ea40d9fce8debdac317c89
- git.kernel.org/stable/c/eb7aa7fd673fdc1582223cd133bcc5f54e7af19f
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.