# CVE-2026-74557: scsi: libiscsi: Fix stale-data leak into the SCSI sense buffer

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2026-08-15T12:28:01.988Z
- Modified: 2026-10-16T20:17:37.470Z
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 before 812f1ae95b22419422972748f173b0916ee4d621; from 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 before fef6167e8149896cd81bea333fd51b1c91239149; from 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 before baa04572673125e4d5bc309b4077d1cb46cc78d1; from 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 before 7567f06abdefb1caf2d836107c4d08c5185c650e; from 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 before 60499924faf4ef97e84228c20515218ef121facf; from 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 before 3ef209ca0b4b68c75e9a814d90cc916026b5a6ac; from 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 before 1f07a897d43c63e6c9458bf77450defef39b5833; from 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 before 98b87885de4b7f605533a2860685f5689fce8e82; 2.6.18 (not affected: before 2.6.18; from 5.10.265 up to 5.10.*; from 5.15.216 up to 5.15.*; from 6.1.183 up to 6.1.*; from 6.6.151 up to 6.6.*; from 6.12.103 up to 6.12.*; from 6.18.44 up to 6.18.*; from 7.1.8 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/812f1ae95b22419422972748f173b0916ee4d621>
- <https://git.kernel.org/stable/c/fef6167e8149896cd81bea333fd51b1c91239149>
- <https://git.kernel.org/stable/c/baa04572673125e4d5bc309b4077d1cb46cc78d1>
- <https://git.kernel.org/stable/c/7567f06abdefb1caf2d836107c4d08c5185c650e>
- <https://git.kernel.org/stable/c/60499924faf4ef97e84228c20515218ef121facf>
- <https://git.kernel.org/stable/c/3ef209ca0b4b68c75e9a814d90cc916026b5a6ac>
- <https://git.kernel.org/stable/c/1f07a897d43c63e6c9458bf77450defef39b5833>
- <https://git.kernel.org/stable/c/98b87885de4b7f605533a2860685f5689fce8e82>

## Sources

- CVE List: [CVE-2026-74557](https://www.cve.org/CVERecord?id=CVE-2026-74557), CVE Terms of Use, modified 2026-10-16
- NVD: [CVE-2026-74557](https://nvd.nist.gov/vuln/detail/CVE-2026-74557), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-74557 · Whole record: https://cve.day/CVE-2026-74557.json · Rebuilt by cve.day 2026-11-25T22:59:33.257Z
