# CVE-2026-99510: media: hackrf: fix use-after-free in hackrf_alloc_urbs() error path

- Severity: High 7.0 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 2% of CVEs (2026-11-30)
- Published: 2026-11-19T14:44:06.436Z
- Modified: 2026-11-23T08:17:53.530Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 969ec1f6bd925092109eaf21501a9d64adfc7ad4 before 8019a26c425f9434d879ce291b7e004cbda77410; from 969ec1f6bd925092109eaf21501a9d64adfc7ad4 before 33ad76cb192cfff66a36d034d06b2ac7fab1cc22; from 969ec1f6bd925092109eaf21501a9d64adfc7ad4 before 9166409615dc009bdb118dc205a89c81bf598308; from 969ec1f6bd925092109eaf21501a9d64adfc7ad4 before caf376902c1f19783345e8bfec147bfdeac15bd5; from 969ec1f6bd925092109eaf21501a9d64adfc7ad4 before ed8d9b2015afd540f6159ed272702a87f02fbd05; from 969ec1f6bd925092109eaf21501a9d64adfc7ad4 before e9deece85062873763dfbb8b1121e722ef2959a0; from 969ec1f6bd925092109eaf21501a9d64adfc7ad4 before ba097d24c56bc3c57a1173506c3c5a42d0f94988; from 969ec1f6bd925092109eaf21501a9d64adfc7ad4 before 6802ad4b6b267dda02209b5811edac7825c8a5f6; 3.18 (not affected: before 3.18; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.61 up to 6.18.*; from 7.3.2 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <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>

## Sources

- CVE List: [CVE-2026-99510](https://www.cve.org/CVERecord?id=CVE-2026-99510), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-99510](https://nvd.nist.gov/vuln/detail/CVE-2026-99510), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-99510 · Whole record: https://cve.day/CVE-2026-99510.json · Rebuilt by cve.day 2026-11-25T22:59:52.097Z
