Linux USB
 help / color / mirror / Atom feed
* [PATCH 0/2] usb: storage: Fix memory leak in USB bulk transport
@ 2025-10-29 19:14 Desnes Nunes
  2025-10-29 19:14 ` [PATCH 1/2] " Desnes Nunes
  2025-10-29 19:14 ` [PATCH 2/2] usb: storage: rearrange triple nested CSW data phase check Desnes Nunes
  0 siblings, 2 replies; 11+ messages in thread
From: Desnes Nunes @ 2025-10-29 19:14 UTC (permalink / raw)
  To: linux-kernel, linux-usb; +Cc: gregkh, stern, Desnes Nunes

This series mainly fixes an usb storage memory leak that was identified by
the LTP ioctl_sg01 test. In short, a big enough SG_IO request can trick a
device into sending a CSW status during the data phase, which will in turn
leak USB protocol data to user-space. Differently from the big leak that
also started with the US_BULK_CS_SIGN from CVE-2018-1000204, this only
happens after the allocation of sg pages for the srb transfer-buffer.

Desnes Nunes (2):
  usb: storage: Fix memory leak in USB bulk transport
  usb: storage: rearrange triple nested CSW data phase check

 drivers/usb/storage/transport.c | 30 ++++++++++++++++++------------
 1 file changed, 18 insertions(+), 12 deletions(-)

-- 
2.50.1


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

end of thread, other threads:[~2025-10-30 21:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-29 19:14 [PATCH 0/2] usb: storage: Fix memory leak in USB bulk transport Desnes Nunes
2025-10-29 19:14 ` [PATCH 1/2] " Desnes Nunes
2025-10-29 21:49   ` Alan Stern
2025-10-30  0:36     ` Desnes Nunes
2025-10-30  4:42       ` Desnes Nunes
2025-10-30 13:52         ` Alan Stern
2025-10-30 21:20           ` Desnes Nunes
2025-10-29 19:14 ` [PATCH 2/2] usb: storage: rearrange triple nested CSW data phase check Desnes Nunes
2025-10-29 21:54   ` Alan Stern
2025-10-30  0:39     ` Desnes Nunes
2025-10-30  1:59       ` Alan Stern

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