CVE-2026-74556 PUBLISHED

scsi: libiscsi_tcp: Bound SCSI Response data segment to the connection buffer

Assigner: Linux
Reserved: 15.08.2026 Published: 15.08.2026 Updated: 15.08.2026

In the Linux kernel, the following vulnerability has been resolved:

scsi: libiscsi_tcp: Bound SCSI Response data segment to the connection buffer

iscsi_tcp_hdr_dissect() receives the data segment of several PDU types into the fixed-size conn->data buffer, which is allocated for ISCSI_DEF_MAX_RECV_SEG_LEN (8192) bytes. For the LOGIN_RSP, TEXT_RSP, REJECT and ASYNC_EVENT opcodes the dissect path already rejects a PDU whose DataSegmentLength exceeds that buffer.

The SCSI Command Response (ISCSI_OP_SCSI_CMD_RSP) path also copies its data segment (sense/response data) into conn->data via iscsi_tcp_data_recv_prep(), but it does so without the same check. The only upstream bound on in.datalen is conn->max_recv_dlength, the initiator's advertised MaxRecvDataSegmentLength, which is commonly negotiated well above 8192 (open-iscsi defaults to 262144). A target that returns a SCSI Response with a DataSegmentLength between 8193 and max_recv_dlength therefore overflows the 8192-byte conn->data buffer.

Once the same bound applies, ISCSI_OP_SCSI_CMD_RSP is handled exactly like those responses: bound the data segment, receive it into conn->data when present, and otherwise complete the PDU with no data. Fold the opcode into that case group rather than duplicating the check.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from a081c13e39b5c17052a7b46fafa61019c4c110ff to c97b5265cc47775f77fd2a23d6bde0426997b233 (excl.)
  • affected from a081c13e39b5c17052a7b46fafa61019c4c110ff to 084af0253673425ce2ae62e3c7f74f0dd023711b (excl.)
  • affected from a081c13e39b5c17052a7b46fafa61019c4c110ff to 72815741715bd41556dac5eeb068bf0f8af06ee7 (excl.)
  • affected from a081c13e39b5c17052a7b46fafa61019c4c110ff to b0aa3e8e2ab4ca92adb28a3ef41873b3363b8676 (excl.)
  • affected from a081c13e39b5c17052a7b46fafa61019c4c110ff to c1dea15f819cded9b3faf58f8bec72323568b6e6 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 2.6.29 is affected
  • unaffected from 0 to 2.6.29 (excl.)
  • unaffected from 6.6.151 to 6.6.* (incl.)
  • unaffected from 6.12.103 to 6.12.* (incl.)
  • unaffected from 6.18.44 to 6.18.* (incl.)
  • unaffected from 7.1.8 to 7.1.* (incl.)
  • unaffected from 7.2-rc6 to * (incl.)

References