{"id":"CVE-2026-74557","summary":"scsi: libiscsi: Fix stale-data leak into the SCSI sense buffer","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: libiscsi: Fix stale-data leak into the SCSI sense buffer\n\niscsi_scsi_cmd_rsp() copies the sense data of a SCSI Response from the\ntarget-supplied data segment.  The segment carries a 2-byte sense length\nfollowed by the sense bytes, so it must hold 2 + senselen bytes, but the\nbounds check only requires datalen \u003e= senselen:\n\n\tsenselen = get_unaligned_be16(data);\n\tif (datalen \u003c senselen)\n\t\tgoto invalid_datalen;\n\tmemcpy(sc-\u003esense_buffer, data + 2,\n\t       min_t(uint16_t, senselen, SCSI_SENSE_BUFFERSIZE));\n\nA target that returns a SCSI Response whose datalen equals senselen\n(with senselen \u003c= SCSI_SENSE_BUFFERSIZE) makes the memcpy() from data +\n2 read up to two bytes past the received data.  Those bytes are stale\nconn-\u003edata contents and end up in the command's sense buffer, which is\nreturned to userspace.\n\nAccount for the 2-byte sense length prefix in the check.","modified":"2026-08-20T03:54:44.302427245Z","published":"2026-08-15T12:28:01.988Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74557.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1f07a897d43c63e6c9458bf77450defef39b5833"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3ef209ca0b4b68c75e9a814d90cc916026b5a6ac"},{"type":"WEB","url":"https://git.kernel.org/stable/c/60499924faf4ef97e84228c20515218ef121facf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7567f06abdefb1caf2d836107c4d08c5185c650e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/812f1ae95b22419422972748f173b0916ee4d621"},{"type":"WEB","url":"https://git.kernel.org/stable/c/98b87885de4b7f605533a2860685f5689fce8e82"},{"type":"WEB","url":"https://git.kernel.org/stable/c/baa04572673125e4d5bc309b4077d1cb46cc78d1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fef6167e8149896cd81bea333fd51b1c91239149"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74557.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74557"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7996a778ff8c717cb1a7a294475c59cc8f1e9fb8"},{"fixed":"812f1ae95b22419422972748f173b0916ee4d621"},{"fixed":"fef6167e8149896cd81bea333fd51b1c91239149"},{"fixed":"baa04572673125e4d5bc309b4077d1cb46cc78d1"},{"fixed":"7567f06abdefb1caf2d836107c4d08c5185c650e"},{"fixed":"60499924faf4ef97e84228c20515218ef121facf"},{"fixed":"3ef209ca0b4b68c75e9a814d90cc916026b5a6ac"},{"fixed":"1f07a897d43c63e6c9458bf77450defef39b5833"},{"fixed":"98b87885de4b7f605533a2860685f5689fce8e82"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74557.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.18"},{"fixed":"5.10.265"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.216"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.183"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.151"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.103"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.44"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74557.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}