Nixpkgs security tracker

Login with GitHub

Suggestion detail

Dismissed
(max. allowed matches exceeded)
created 21 hours ago Activity log
  • Created & dismissed (max. allowed matches exceeded) suggestion
usb: free iso schedules on failed submit

In the Linux kernel, the following vulnerability has been resolved: usb: free iso schedules on failed submit EHCI and FOTG210 isochronous submits build an ehci_iso_sched before linking the URB to the endpoint queue, and keep the staged schedule in urb->hcpriv until iso_stream_schedule() and the link helpers consume it. If the controller is no longer accessible, or usb_hcd_link_urb_to_ep() fails, submit jumps to done_not_linked before that handoff happens and leaks the staged schedule still attached to urb->hcpriv. Free the staged schedule from done_not_linked when submit fails before the URB is linked and clear urb->hcpriv after the free. The bug was first flagged by an experimental analysis tool we are developing for kernel memory-management bugs while analyzing v6.13-rc1. The tool is still under development and is not yet publicly available. Manual inspection confirms that the bug is still present in v7.1.1. An x86_64 allyesconfig build showed no new warnings. As we do not have an EHCI host controller with a USB isochronous device to test with, no runtime testing was able to be performed.

Affected products

Linux
  • <2.6.15
  • <8890699eea19027ef6e4f9cbcf27cba5e789793f
  • =<6.18.*
  • <4bb88aee6b868cbf73bf453f62497802f5fe4769
  • <6bc17a78a05671d303820224fb37ca339c1dc2cb
  • <b0d00d077f9738d215af9b50c74dffab7a1de19f
  • ==2.6.15
  • =<6.12.*
  • <b9399d25fbb34a05bbe76eeedd730f62ff2670e9
  • =<7.1.*
  • =<*
  • =<6.6.*
  • <be5004395dfd0b6ec310db359f887fa396fd0dd2
  • =<5.10.*