Messages in this thread |  | | Subject | Re: [PATCH v3] scsi: target: iscsi: reject invalid size Extended CDB AHS | | From | "Martin K. Petersen" <> | | Date | Tue, 21 Apr 2026 21:11:33 -0400 |
| |
Carlos,
> If ecdb_ahdr->ahslength is zero, two bugs follow: > > kmalloc(be16_to_cpu(ecdb_ahdr->ahslength) + 15, ...) > > allocates 15 bytes, but the immediately following memcpy writes > ISCSI_CDB_SIZE (16) bytes into it, a one-byte heap overflow. Also:
Applied to 7.1/scsi-staging, thanks!
-- Martin K. Petersen
|  |