AZL-115004: CVE-2026-99510 affecting package kernel 6.6.161.1-1
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.
- Compensating control
Remove the redundant cleanup loop inside hackrf_alloc_urbs() and let hackrf_free_urbs(), already called by hackrf_start_streaming() on error, clean up the successfully allocated URBs.