lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251029191414.410442-1-desnesn@redhat.com>
Date: Wed, 29 Oct 2025 16:14:12 -0300
From: Desnes Nunes <desnesn@...hat.com>
To: linux-kernel@...r.kernel.org,
	linux-usb@...r.kernel.org
Cc: gregkh@...uxfoundation.org,
	stern@...land.harvard.edu,
	Desnes Nunes <desnesn@...hat.com>
Subject: [PATCH 0/2] usb: storage: Fix memory leak in USB bulk transport

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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ