media: hackrf: fix use-after-free in hackrf_alloc_urbs() error path (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.17 % · percentile 7 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- Affected products
- Linux · Linux
- NVD status
- Received
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.
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
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H | Linux |
| CVSS 3.1 | HIGH 7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) |
European references
- ENISA EUVD · EUVD-2026-130188
- GCVE · GCVE-0-2026-99510
CERT-FR advisories
- CERTFR-2026-AVI-1676 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1639 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
Affected products
| Product | Affected versions |
|---|---|
| Linux · Linux | affected : ≥ 969ec1f6bd925092109eaf21501a9d64adfc7ad4 < 8019a26c425f9434d879ce291b7e004cbda77410 affected : ≥ 969ec1f6bd925092109eaf21501a9d64adfc7ad4 < 33ad76cb192cfff66a36d034d06b2ac7fab1cc22 affected : ≥ 969ec1f6bd925092109eaf21501a9d64adfc7ad4 < 9166409615dc009bdb118dc205a89c81bf598308 affected : ≥ 969ec1f6bd925092109eaf21501a9d64adfc7ad4 < caf376902c1f19783345e8bfec147bfdeac15bd5 affected : ≥ 969ec1f6bd925092109eaf21501a9d64adfc7ad4 < ed8d9b2015afd540f6159ed272702a87f02fbd05 affected : ≥ 969ec1f6bd925092109eaf21501a9d64adfc7ad4 < e9deece85062873763dfbb8b1121e722ef2959a0 affected : ≥ 969ec1f6bd925092109eaf21501a9d64adfc7ad4 < ba097d24c56bc3c57a1173506c3c5a42d0f94988 affected : ≥ 969ec1f6bd925092109eaf21501a9d64adfc7ad4 < 6802ad4b6b267dda02209b5811edac7825c8a5f6 Other versions : unaffected |
| Linux · Linux | affected : 3.18 unaffected : ≥ 0 < 3.18 unaffected : ≥ 5.10.275 ≤ 5.10.* unaffected : ≥ 5.15.226 ≤ 5.15.* unaffected : ≥ 6.1.193 ≤ 6.1.* unaffected : ≥ 6.6.163 ≤ 6.6.* unaffected : ≥ 6.12.117 ≤ 6.12.* unaffected : ≥ 6.18.61 ≤ 6.18.* unaffected : ≥ 7.3.2 ≤ 7.3.* unaffected : ≥ 7.4-rc1 ≤ * Other versions : affected |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |