ALSA: hwdep: Serialize DSP load requests
NIST has received this entry but not started reviewing it.
In the Linux kernel, the following vulnerability has been resolved: ALSA: hwdep: Serialize DSP load requests The check of the loaded DSP indices and the call of the driver's dsp_load callback in snd_hwdep_dsp_load() are not serialized. A hwdep file descriptor can be shared among threads, or inherited across fork, so two SNDRV_HWDEP_IOCTL_DSP_LOAD requests for the same index can both observe the index as unloaded and enter the driver's callback concurrently, even though the device itself is opened exclusively. This breaks the assumption behind hw->dsp_loaded that a firmware index is loaded only once. For example, snd-usb-usx2y hits WARN_ON(usx2y->as04.buffer) in usx2y_async_seq04_init() and may allocate the US-428 sequence URBs twice. Serialize the check, the callback invocation and the bookkeeping with a per-hwdep mutex, so that the second request returns -EBUSY.
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 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 204f368204a1951da349ba68c82f99c464347dd7; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before ef2aebb0543a20d1ee42ac95483eb54fc8457e88; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 0e8365c7a4c5202f6b1e802a377d798db2b0e0ab; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 8fb646220d48322311e135b2508fb9569fbe1d28; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 200bda52a9fd604e13c57d3a548639c13bdfb19c; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 3634a1beb0395f02807d41a2edf4288732d3f90e; and 2 more | 204f368204a1951da349ba68c82f99c464347dd7; ef2aebb0543a20d1ee42ac95483eb54fc8457e88; 0e8365c7a4c5202f6b1e802a377d798db2b0e0ab; 8fb646220d48322311e135b2508fb9569fbe1d28 |
| Linux Linux | Software | 2.6.12 | not recorded |
The 7.8 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 | Low | Easy to carry out. No special conditions have to line up. |
| 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.8 | 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.