Linux kernel -stable discussions
 help / color / mirror / Atom feed
* Request: 2f3835771dff ("scsi: target: iscsi: reject invalid size Extended CDB AHS") for 6.12.y and 6.18.y
@ 2026-12-02 10:44 James Sawyer
  2026-12-03 13:47 ` Sasha Levin
  0 siblings, 1 reply; 2+ messages in thread
From: James Sawyer @ 2026-12-02 10:44 UTC (permalink / raw)
  To: stable@vger.kernel.org
  Cc: Carlos Bilbao, Dmitry Bogdanov, Martin K. Petersen,
	target-devel@vger.kernel.org, linux-scsi@vger.kernel.org

Hello,

Please consider 2f3835771dff ("scsi: target: iscsi: reject invalid size
Extended CDB AHS") for 6.12.y and 6.18.y. It is in mainline since v7.1-rc3 and
reached 7.3.y by inheritance, but it carries no Cc: stable and is absent from
6.12.120 and 6.18.66. It applies cleanly to both branches (git apply --check).

Without it, a zero-length Extended CDB AHS makes iscsit_setup_scsi_cmd()
allocate 15 bytes and copy 16, and compute an ahslength - 1 copy length of
SIZE_MAX. I reproduced a host panic from one unauthenticated PDU on a target
without CHAP (Ubuntu 7.0 kernels; panic_on_oops=1, oops otherwise):

  memcpy: detected buffer overflow: 16 byte write of buffer size 15
  __fortify_panic <- iscsit_setup_scsi_cmd.cold+0x1a5 [iscsi_target_mod]

Thank you,
James Sawyer

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-03 13:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 10:44 Request: 2f3835771dff ("scsi: target: iscsi: reject invalid size Extended CDB AHS") for 6.12.y and 6.18.y James Sawyer
2026-12-03 13:47 ` Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox