media: hackrf: fix use-after-free in hackrf_alloc_urbs() error path
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ed8d9b2015afd540f6159ed272702a87f02fbd05, Kernel 6802ad4b6b267dda02209b5811edac7825c8a5f6, Kernel ba097d24c56bc3c57a1173506c3c5a42d0f94988 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: media: hackrf: fix use-after-free in hackrf_alloc_urbs() error path hackrf_alloc_urbs() frees the URBs it allocated so far when one allocation fails, but leaves the entries in dev->urb_list[] and dev->urbs_initialized untouched. The caller, hackrf_start_streaming(), then calls hackrf_free_urbs() on the error path, which walks dev->urbs_initialized entries and calls usb_free_urb() a second time on the already-freed URBs, causing a use-after-free (slab-use-after-free Write in usb_free_urb()). Drop the redundant cleanup loop inside hackrf_alloc_urbs() and let hackrf_free_urbs(), which the caller already invokes on error, own the cleanup of the successfully allocated URBs.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=969ec1f6bd925092109eaf21501a9d64adfc7ad4 <ed8d9b2015afd540f6159ed272702a87f02fbd05, >=969ec1f6bd925092109eaf21501a9d64adfc7ad4 <6802ad4b6b267dda02209b5811edac7825c8a5f6, >=969ec1f6bd925092109eaf21501a9d64adfc7ad4 <ba097d24c56bc3c57a1173506c3c5a42d0f94988, >=969ec1f6bd925092109eaf21501a9d64adfc7ad4 <e9deece85062873763dfbb8b1121e722ef2959a0, =3.18 | ed8d9b2015afd540f6159ed272702a87f02fbd05, 6802ad4b6b267dda02209b5811edac7825c8a5f6, ba097d24c56bc3c57a1173506c3c5a42d0f94988, e9deece85062873763dfbb8b1121e722ef2959a0 |
| linux-kernel: Kernel | >=6.13.0 <6.18.61, >=6.19.0 <7.3.2, >=3.18.0 <6.12.117 | 6.18.61, 7.3.2, 6.12.117 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket