CVE-2026-74557

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

State
Published
Severity
7.5 High
Published
Aug 15, 2026
Updated
Oct 16, 2026
Reserved
Aug 15, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 to before 812f1ae95b22419422972748f173b0916ee4d621Affected
  • 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 to before fef6167e8149896cd81bea333fd51b1c91239149Affected
  • 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 to before baa04572673125e4d5bc309b4077d1cb46cc78d1Affected
  • 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 to before 7567f06abdefb1caf2d836107c4d08c5185c650eAffected
  • 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 to before 60499924faf4ef97e84228c20515218ef121facfAffected
  • 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 to before 3ef209ca0b4b68c75e9a814d90cc916026b5a6acAffected
  • 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 to before 1f07a897d43c63e6c9458bf77450defef39b5833Affected
  • 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 to before 98b87885de4b7f605533a2860685f5689fce8e82Affected
LinuxLinux
  • 2.6.18Affected
  • before 2.6.18Not affected
  • 5.10.265 through 5.10.*Not affected
  • 5.15.216 through 5.15.*Not affected
  • 6.1.183 through 6.1.*Not affected
  • 6.6.151 through 6.6.*Not affected
  • 6.12.103 through 6.12.*Not affected
  • 6.18.44 through 6.18.*Not affected
  • 7.1.8 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.