Linux kernel out-of-bounds read in libiscsi task lookup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ bfead3b2cb4607c71831423c3ee97d22cd0c9dcb · < 6cadfa6f1f5896632d4223d3b7addb2a29fea74e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: libiscsi: Reject a negative task index from parse_pdu_itt
A transport that implements parse_pdu_itt hands libiscsi an index taken from the PDU, and both lookups bound it from above only:
if (i >= session->cmds_max)
i and cmds_max are both int, so a negative index passes and session->cmds[i] is read from before the array.
be2iscsi produces one. beiscsi_parse_pdu() assigns the raw tag,
*index = (int)itt;
and beiscsi_complete_pdu() forwards an unsolicited NOP-In from the hardware async ring without replacing its ITT, so the value is the target's. It also reports the session's own age rather than the one in the tag, which leaves the age comparison in iscsi_verify_itt() with nothing to reject.
From the CVE record · Linux
Linux kernel libiscsi accepts a negative task index from a transport’s parse_pdu_itt callback, causing a read before the session command array. With be2iscsi, an iSCSI target can supply the index through an unsolicited NOP-In PDU. The input does not specify authentication requirements or whether user interaction is needed.
Engineers running Linux kernels that use libiscsi, particularly with be2iscsi, should check their kernel status; affected versions are not specified.