media: hackrf: fix use-after-free in hackrf_alloc_urbs() error path
NIST has received this entry but not started reviewing it.
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.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from 969ec1f6bd925092109eaf21501a9d64adfc7ad4, before 8019a26c425f9434d879ce291b7e004cbda77410; from 969ec1f6bd925092109eaf21501a9d64adfc7ad4, before 33ad76cb192cfff66a36d034d06b2ac7fab1cc22; from 969ec1f6bd925092109eaf21501a9d64adfc7ad4, before 9166409615dc009bdb118dc205a89c81bf598308; from 969ec1f6bd925092109eaf21501a9d64adfc7ad4, before caf376902c1f19783345e8bfec147bfdeac15bd5; from 969ec1f6bd925092109eaf21501a9d64adfc7ad4, before ed8d9b2015afd540f6159ed272702a87f02fbd05; from 969ec1f6bd925092109eaf21501a9d64adfc7ad4, before e9deece85062873763dfbb8b1121e722ef2959a0; and 2 more | 8019a26c425f9434d879ce291b7e004cbda77410; 33ad76cb192cfff66a36d034d06b2ac7fab1cc22; 9166409615dc009bdb118dc205a89c81bf598308; caf376902c1f19783345e8bfec147bfdeac15bd5 |
| Linux Linux | Software | 3.18 | not recorded |
The 7.0 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | On the machine | The attacker needs access to the computer itself, for example a login or a file they can get you to open. |
| How hard it is | High | Hard to carry out. It depends on conditions the attacker cannot control. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 1.0 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.9 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 8 sources for this flaw, none tagged as a vendor patch.