All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] usb-host: validate and release configuration descriptors
@ 2026-10-04  4:27 Junjie Cao
  2026-10-04  4:27 ` [PATCH 1/2] usb-host: validate interface number before indexing altsetting Junjie Cao
  2026-10-04  4:27 ` [PATCH 2/2] usb-host: free configuration descriptors on error paths Junjie Cao
  0 siblings, 2 replies; 6+ messages in thread
From: Junjie Cao @ 2026-10-04  4:27 UTC (permalink / raw)
  To: qemu-devel; +Cc: thuth, kraxel, philmd, junjie.cao

The libusb host backend reads interface numbers from the active
configuration descriptor while opening a device. An out-of-range number
can index past USBDevice.altsetting. The backend also leaves an allocated
descriptor behind on endpoint parse and interface claim failures.

Junjie Cao (2):
  usb-host: validate interface number before indexing altsetting
  usb-host: free configuration descriptors on error paths

 hw/usb/host-libusb.c | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-10-05  5:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-04  4:27 [PATCH 0/2] usb-host: validate and release configuration descriptors Junjie Cao
2026-10-04  4:27 ` [PATCH 1/2] usb-host: validate interface number before indexing altsetting Junjie Cao
2026-10-04 16:42   ` Marc-André Lureau
2026-10-04  4:27 ` [PATCH 2/2] usb-host: free configuration descriptors on error paths Junjie Cao
2026-10-04 16:34   ` Marc-André Lureau
2026-10-05  5:45     ` Junjie Cao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.