ALSA: pcm: Fix race of buffer access at PCM OSS layer
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < bf85e49aaf3a3c5775ea87369ea5f159c2148db4| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: pcm: Fix race of buffer access at PCM OSS layer
The PCM OSS layer tries to clear the buffer with the silence data at initialization (or reconfiguration) of a stream with the explicit call of snd_pcm_format_set_silence() with runtime->dma_area. But this may lead to a UAF because the accessed runtime->dma_area might be freed concurrently, as it's performed outside the PCM ops.
For avoiding it, move the code into the PCM core and perform it inside the buffer access lock, so that it won't be changed during the operation.
From the CVE record · Linux
The ALSA PCM OSS layer can access a freed audio buffer while clearing it during stream initialization or reconfiguration. This can happen if the buffer is freed concurrently; the input does not specify attacker access requirements or a resulting exploit.
Engineers running Linux kernels with the ALSA PCM OSS layer should check their versions against the vendor advisory; affected versions are not specified.