CVE-2026-99510
media: hackrf: fix use-after-free in hackrf_alloc_urbs() error path
- CVSS
- 7
- EPSS
- 0.17% (p7)
- Published
- 2026-11-19
- Age
- 15d old
- Modified
- 2026-11-23
- Product
- Linux Linux
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Description
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.
Fixed in
33ad76cb192cfff66a36d034d06b2ac7fab1cc22 · 6.12.117 · 6.18.61 · 6802ad4b6b267dda02209b5811edac7825c8a5f6 · 7.3.2 · 8019a26c425f9434d879ce291b7e004cbda77410 · 9166409615dc009bdb118dc205a89c81bf598308 · ba097d24c56bc3c57a1173506c3c5a42d0f94988 · caf376902c1f19783345e8bfec147bfdeac15bd5 · e9deece85062873763dfbb8b1121e722ef2959a0 · ed8d9b2015afd540f6159ed272702a87f02fbd05
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Linux | Kernel | >=3.18.0, <6.12.117 | 6.12.117 |
| Linux | Kernel | >=6.13.0, <6.18.61 | 6.18.61 |
| Linux | Kernel | >=6.19.0, <7.3.2 | 7.3.2 |
| vendor | Linux | >=969ec1f6bd925092109eaf21501a9d64adfc7ad4, <33ad76cb192cfff66a36d034d06b2ac7fab1cc22 | 33ad76cb192cfff66a36d034d06b2ac7fab1cc22 |
| vendor | Linux | >=969ec1f6bd925092109eaf21501a9d64adfc7ad4, <6802ad4b6b267dda02209b5811edac7825c8a5f6 | 6802ad4b6b267dda02209b5811edac7825c8a5f6 |
| vendor | Linux | >=969ec1f6bd925092109eaf21501a9d64adfc7ad4, <8019a26c425f9434d879ce291b7e004cbda77410 | 8019a26c425f9434d879ce291b7e004cbda77410 |
| vendor | Linux | >=969ec1f6bd925092109eaf21501a9d64adfc7ad4, <9166409615dc009bdb118dc205a89c81bf598308 | 9166409615dc009bdb118dc205a89c81bf598308 |
| vendor | Linux | >=969ec1f6bd925092109eaf21501a9d64adfc7ad4, <ba097d24c56bc3c57a1173506c3c5a42d0f94988 | ba097d24c56bc3c57a1173506c3c5a42d0f94988 |
| vendor | Linux | >=969ec1f6bd925092109eaf21501a9d64adfc7ad4, <caf376902c1f19783345e8bfec147bfdeac15bd5 | caf376902c1f19783345e8bfec147bfdeac15bd5 |
| vendor | Linux | >=969ec1f6bd925092109eaf21501a9d64adfc7ad4, <e9deece85062873763dfbb8b1121e722ef2959a0 | e9deece85062873763dfbb8b1121e722ef2959a0 |
| vendor | Linux | >=969ec1f6bd925092109eaf21501a9d64adfc7ad4, <ed8d9b2015afd540f6159ed272702a87f02fbd05 | ed8d9b2015afd540f6159ed272702a87f02fbd05 |
Sources
- NVD · first seen 15d ago · NVD terms of use
- OSV · first seen 15d ago · CC-BY 4.0
- CVE List · first seen 15d ago · CVE Terms of Use
References
- https://git.kernel.org/stable/c/ed8d9b2015afd540f6159ed272702a87f02fbd05 other
- https://git.kernel.org/stable/c/e9deece85062873763dfbb8b1121e722ef2959a0 other
- https://git.kernel.org/stable/c/ba097d24c56bc3c57a1173506c3c5a42d0f94988 other
- https://git.kernel.org/stable/c/6802ad4b6b267dda02209b5811edac7825c8a5f6 other
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git package
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99510.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-99510 advisory
- https://git.kernel.org/stable/c/8019a26c425f9434d879ce291b7e004cbda77410 other
- https://git.kernel.org/stable/c/33ad76cb192cfff66a36d034d06b2ac7fab1cc22 other
- https://git.kernel.org/stable/c/9166409615dc009bdb118dc205a89c81bf598308 other
- https://git.kernel.org/stable/c/caf376902c1f19783345e8bfec147bfdeac15bd5 other