Shellfeed logo Shellfeed

CVE-2026-74557 · HIGH (CVSS 7.5)

Summary: scsi: libiscsi: Fix stale-data leak into the SCSI sense buffer

Details

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:

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));

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.

Severity

HIGH (CVSS 7.5) — vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 – 812f1ae95b22419422972748f173b0916ee4d621]
  • Linux Kernel [2.6.18 – 5.10.265] [5.11.0 – 5.15.216] [5.16.0 – 6.1.183] [6.2.0 – 6.6.151] [6.7.0 – 6.12.103] [6.13.0 – 6.18.44] [6.19.0 – 7.1.8]

References