Linux
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 8de98402652c01839ae321be6cb3054cf5735d83, < b0d00d077f9738d215af9b50c74dffab7a1de19f
- >= 8de98402652c01839ae321be6cb3054cf5735d83, < ab12316c4639237cc9d50c80a0c6240f11fbba3f
- >= 8de98402652c01839ae321be6cb3054cf5735d83, < be5004395dfd0b6ec310db359f887fa396fd0dd2
- >= 8de98402652c01839ae321be6cb3054cf5735d83, < 8890699eea19027ef6e4f9cbcf27cba5e789793f
- >= 8de98402652c01839ae321be6cb3054cf5735d83, < 6bc17a78a05671d303820224fb37ca339c1dc2cb
- >= 8de98402652c01839ae321be6cb3054cf5735d83, < 4bb88aee6b868cbf73bf453f62497802f5fe4769
- >= 8de98402652c01839ae321be6cb3054cf5735d83, < b9399d25fbb34a05bbe76eeedd730f62ff2670e9
Fixed in b0d00d077f9738d215af9b50c74dffab7a1de19f, ab12316c4639237cc9d50c80a0c6240f11fbba3f, be5004395dfd0b6ec310db359f887fa396fd0dd2, 8890699eea19027ef6e4f9cbcf27cba5e789793f, 6bc17a78a05671d303820224fb37ca339c1dc2cb, 4bb88aee6b868cbf73bf453f62497802f5fe4769, b9399d25fbb34a05bbe76eeedd730f62ff2670e9
- 2.6.15
Fixed in 0, 5.10.261, 6.1.191, 6.6.145, 6.12.96, 6.18.39, 7.1.4, 7.2
Mitigation
Upgrade Linux to b0d00d077f9738d215af9b50c74dffab7a1de19f or ab12316c4639237cc9d50c80a0c6240f11fbba3f or be5004395dfd0b6ec310db359f887fa396fd0dd2 or 8890699eea19027ef6e4f9cbcf27cba5e789793f or 6bc17a78a05671d303820224fb37ca339c1dc2cb or 4bb88aee6b868cbf73bf453f62497802f5fe4769 or b9399d25fbb34a05bbe76eeedd730f62ff2670e9 or later.
Upgrade Linux to 0 or 5.10.261 or 6.1.191 or 6.6.145 or 6.12.96 or 6.18.39 or 7.1.4 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.