ALSA: pcm: Fix races among concurrent prealloc proc writes
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < a21d2f323b5a978dedf9ff1d50f101f85e39b3f2| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: pcm: Fix races among concurrent prealloc proc writes
We have no protection against concurrent PCM buffer preallocation changes via proc files, and it may potentially lead to UAF or some weird problem. This patch applies the PCM open_mutex to the proc write operation for avoiding the racy proc writes and the PCM stream open (and further operations).
From the CVE record · Linux
Concurrent writes to ALSA PCM buffer preallocation proc files can race with each other or with PCM stream operations. A local user able to write those proc files may trigger a use-after-free or other unexpected behavior; the input does not specify further access requirements.
Engineers running Linux kernels with ALSA PCM support should check whether their kernel includes the fix; affected versions are not specified.