CVE-2026-99510
media: hackrf: fix use-after-free in hackrf_alloc_urbs() error path
What happened?
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 software and versions
| Software | Version information | Fixed version |
|---|---|---|
| LinuxLinux | affected: 969ec1f6bd925092109eaf21501a9d64adfc7ad4 to < 8019a26c425f9434d879ce291b7e004cbda77410; affected: 969ec1f6bd925092109eaf21501a9d64adfc7ad4 to < 33ad76cb192cfff66a36d034d06b2ac7fab1cc22; affected: 969ec1f6bd925092109eaf21501a9d64adfc7ad4 to < 9166409615dc009bdb118dc205a89c81bf598308; affected: 969ec1f6bd925092109eaf21501a9d64adfc7ad4 to < caf376902c1f19783345e8bfec147bfdeac15bd5; affected: 969ec1f6bd925092109eaf21501a9d64adfc7ad4 to < ed8d9b2015afd540f6159ed272702a87f02fbd05; affected: 969ec1f6bd925092109eaf21501a9d64adfc7ad4 to < e9deece85062873763dfbb8b1121e722ef2959a0; affected: 969ec1f6bd925092109eaf21501a9d64adfc7ad4 to < ba097d24c56bc3c57a1173506c3c5a42d0f94988; affected: 969ec1f6bd925092109eaf21501a9d64adfc7ad4 to < 6802ad4b6b267dda02209b5811edac7825c8a5f6 | See vendor advisory |
| LinuxLinux | affected: 3.18; unaffected: 0 to < 3.18; unaffected: 5.10.275 to ≤ 5.10.*; unaffected: 5.15.226 to ≤ 5.15.*; unaffected: 6.1.193 to ≤ 6.1.*; unaffected: 6.6.163 to ≤ 6.6.*; unaffected: 6.12.117 to ≤ 6.12.*; unaffected: 6.18.61 to ≤ 6.18.*; unaffected: 7.3.2 to ≤ 7.3.*; unaffected: 7.4-rc1 to ≤ * | See vendor advisory |
Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.
Is it being exploited?
This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.
How to respond
- Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
- Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
- Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.
Sources and remediation references
- https://www.cve.org/CVERecord?id=CVE-2026-99510
- https://git.kernel.org/stable/c/8019a26c425f9434d879ce291b7e004cbda77410
- https://git.kernel.org/stable/c/33ad76cb192cfff66a36d034d06b2ac7fab1cc22
- https://git.kernel.org/stable/c/9166409615dc009bdb118dc205a89c81bf598308
- https://git.kernel.org/stable/c/caf376902c1f19783345e8bfec147bfdeac15bd5
- https://git.kernel.org/stable/c/ed8d9b2015afd540f6159ed272702a87f02fbd05
- https://git.kernel.org/stable/c/e9deece85062873763dfbb8b1121e722ef2959a0
- https://git.kernel.org/stable/c/ba097d24c56bc3c57a1173506c3c5a42d0f94988
- https://git.kernel.org/stable/c/6802ad4b6b267dda02209b5811edac7825c8a5f6