media: hackrf: fix use-after-free in hackrf_alloc_urbs() error path

State
Published
Severity
7.0 High
Published
Nov 19, 2026
Updated
Nov 23, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linux969ec1f6bd925092109eaf21501a9d64adfc7ad4 to before 8019a26c425f9434d879ce291b7e004cbda77410 Affected969ec1f6bd925092109eaf21501a9d64adfc7ad4 to before 33ad76cb192cfff66a36d034d06b2ac7fab1cc22 Affected969ec1f6bd925092109eaf21501a9d64adfc7ad4 to before 9166409615dc009bdb118dc205a89c81bf598308 Affected969ec1f6bd925092109eaf21501a9d64adfc7ad4 to before caf376902c1f19783345e8bfec147bfdeac15bd5 Affected969ec1f6bd925092109eaf21501a9d64adfc7ad4 to before ed8d9b2015afd540f6159ed272702a87f02fbd05 Affected969ec1f6bd925092109eaf21501a9d64adfc7ad4 to before e9deece85062873763dfbb8b1121e722ef2959a0 Affected969ec1f6bd925092109eaf21501a9d64adfc7ad4 to before ba097d24c56bc3c57a1173506c3c5a42d0f94988 Affected969ec1f6bd925092109eaf21501a9d64adfc7ad4 to before 6802ad4b6b267dda02209b5811edac7825c8a5f6 Affected
Linux Linux3.18 Affectedbefore 3.18 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.61 through 6.18.* Not Affected7.3.2 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.