From: Desnes Nunes <desnesn@redhat.com>
To: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org
Cc: gregkh@linuxfoundation.org, stern@rowland.harvard.edu,
Desnes Nunes <desnesn@redhat.com>
Subject: [PATCH 0/2] usb: storage: Fix memory leak in USB bulk transport
Date: Wed, 29 Oct 2025 16:14:12 -0300 [thread overview]
Message-ID: <20251029191414.410442-1-desnesn@redhat.com> (raw)
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
next reply other threads:[~2025-10-29 19:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-29 19:14 Desnes Nunes [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251029191414.410442-1-desnesn@redhat.com \
--to=desnesn@redhat.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®