← VULNERABILITIES

CVE-2026-99510

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

High · 7.0Fix available
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

EcosystemPackageRangeFixed
LinuxKernel>=3.18.0, <6.12.1176.12.117
LinuxKernel>=6.13.0, <6.18.616.18.61
LinuxKernel>=6.19.0, <7.3.27.3.2
vendorLinux>=969ec1f6bd925092109eaf21501a9d64adfc7ad4, <33ad76cb192cfff66a36d034d06b2ac7fab1cc2233ad76cb192cfff66a36d034d06b2ac7fab1cc22
vendorLinux>=969ec1f6bd925092109eaf21501a9d64adfc7ad4, <6802ad4b6b267dda02209b5811edac7825c8a5f66802ad4b6b267dda02209b5811edac7825c8a5f6
vendorLinux>=969ec1f6bd925092109eaf21501a9d64adfc7ad4, <8019a26c425f9434d879ce291b7e004cbda774108019a26c425f9434d879ce291b7e004cbda77410
vendorLinux>=969ec1f6bd925092109eaf21501a9d64adfc7ad4, <9166409615dc009bdb118dc205a89c81bf5983089166409615dc009bdb118dc205a89c81bf598308
vendorLinux>=969ec1f6bd925092109eaf21501a9d64adfc7ad4, <ba097d24c56bc3c57a1173506c3c5a42d0f94988ba097d24c56bc3c57a1173506c3c5a42d0f94988
vendorLinux>=969ec1f6bd925092109eaf21501a9d64adfc7ad4, <caf376902c1f19783345e8bfec147bfdeac15bd5caf376902c1f19783345e8bfec147bfdeac15bd5
vendorLinux>=969ec1f6bd925092109eaf21501a9d64adfc7ad4, <e9deece85062873763dfbb8b1121e722ef2959a0e9deece85062873763dfbb8b1121e722ef2959a0
vendorLinux>=969ec1f6bd925092109eaf21501a9d64adfc7ad4, <ed8d9b2015afd540f6159ed272702a87f02fbd05ed8d9b2015afd540f6159ed272702a87f02fbd05

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

JSON