CVE-2026-74557 PUBLISHED

scsi: libiscsi: Fix stale-data leak into the SCSI sense 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: Fix stale-data leak into the SCSI sense buffer

iscsi_scsi_cmd_rsp() copies the sense data of a SCSI Response from the target-supplied data segment. The segment carries a 2-byte sense length followed by the sense bytes, so it must hold 2 + senselen bytes, but the bounds check only requires datalen >= senselen:

<pre>senselen = get_unaligned_be16(data); if (datalen < senselen) goto invalid_datalen; memcpy(sc->sense_buffer, data + 2, min_t(uint16_t, senselen, SCSI_SENSE_BUFFERSIZE)); </pre>

A target that returns a SCSI Response whose datalen equals senselen (with senselen <= SCSI_SENSE_BUFFERSIZE) makes the memcpy() from data + 2 read up to two bytes past the received data. Those bytes are stale conn->data contents and end up in the command's sense buffer, which is returned to userspace.

Account for the 2-byte sense length prefix in the check.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 to 7567f06abdefb1caf2d836107c4d08c5185c650e (excl.)
  • affected from 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 to 60499924faf4ef97e84228c20515218ef121facf (excl.)
  • affected from 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 to 3ef209ca0b4b68c75e9a814d90cc916026b5a6ac (excl.)
  • affected from 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 to 1f07a897d43c63e6c9458bf77450defef39b5833 (excl.)
  • affected from 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 to 98b87885de4b7f605533a2860685f5689fce8e82 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 2.6.18 is affected
  • unaffected from 0 to 2.6.18 (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