CVE-2026-74556
Beschrijving NL
In de Linux kernel is de volgende kwetsbaarheid verholpen:
scsi: libiscsi_tcp: Gebonden SCSI Response data segment naar de verbindingsbuffer
iscsi_tcp_hdr_dissect() ontvangt het gegevenssegment van verschillende PDU-types
in de vaste grootteconn- >gegevensbuffer, die is toegewezen voor
ISCSI_DEF_MAX_RECV_SEG_LEN (8192) bytes. Voor de LOGIN_RSP, TEXT_RSP,
REJECT en ASYNC_EVENT opcodes het dissect pad wijst al een PDU af
waarvan de DataSegmentLength die buffer overschrijdt. Het SCSI Command Response (ISCSI_OP_SCSI_CMD_RSP) pad kopieert ook zijn
data segment (sense/response data) in conn->data via
iscsi_tcp_data_recv_prep(), maar doet dit zonder dezelfde controle. De
enige stroomopwaartse verbinding in.datalen is conn->max_recv_dlength, de
initiatiefnemer geadverteerd MaxRecvDataSegmentLength, die vaak
onderhandeld ruim boven 8192 (open-iscsi staat standaard op 262144). Een doel
dat een SCSI-reactie retourneert met een DataSegmentLength tussen 8193 en
max_recv_dlength overstroomt daarom de 8192-byteconn- >gegevensbuffer. Zodra dezelfde binding van toepassing is, wordt ISCSI_OP_SCSI_CMD_RSP precies afgehandeld
zoals die antwoorden: bind het datasegment, ontvang het in conn->data
indien aanwezig, en anders de PDU aanvullen zonder gegevens. Vouw de
opcode in die casusgroep in plaats van de cheque te dupliceren.
Origineel (Engels) tonen
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.