CVE-2026-99510: media: hackrf: fix use-after-free in hackrf_alloc_urbs() error path
In the Linux kernel, the following vulnerability has been resolved:
media: hackrf: fix use-after-free in hackrfallocurbs() error path
hackrfallocurbs() frees the URBs it allocated so far when one allocation fails, but leaves the entries in dev->urblist[] and dev->urbsinitialized untouched. The caller, hackrfstartstreaming(), then calls hackrffreeurbs() on the error path, which walks dev->urbsinitialized entries and calls usbfreeurb() a second time on the already-freed URBs, causing a use-after-free (slab-use-after-free Write in usbfreeurb()).
Drop the redundant cleanup loop inside hackrfallocurbs() and let hackrffreeurbs(), which the caller already invokes on error, own the cleanup of the successfully allocated URBs.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.3-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1 - Compensating control
Remove the redundant cleanup loop from hackrf_alloc_urbs() and let hackrf_free_urbs() handle cleanup of successfully allocated URBs on the error path.