7.8high
ALSA: pcm: Fix race of buffer access at PCM OSS layer
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.18% (higher than 8% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before c0e05a76fc727929524ef24a19c302e6dd40233f, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 8170d8ec4efd0be352c14cb61f374e30fb0c2a25, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 10217da9644ae75cea7330f902c35fc5ba78bbbf, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before f3e14d706ec18faf19f5a6e75060e140fea05d4a, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 74d90875f3d43f3eff0e9861c4701418795d3455, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before bf85e49aaf3a3c5775ea87369ea5f159c2148db4, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before afa56c960fcb4db37f2e3399f28e9402e4e1f470, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 93a81ca0657758b607c3f4ba889ae806be9beb73 and 1 more Not affected: before 2.6.12, from 5.4.294 up to 5.4.*, from 5.10.238 up to 5.10.*, from 5.15.185 up to 5.15.*, from 6.1.141 up to 6.1.*, from 6.6.93 up to 6.6.* | CVE List |
| linux linux_kernel | before 5.4.294, from 5.5 before 5.10.238, from 5.11 before 5.15.185, from 5.16 before 6.1.141, from 6.2 before 6.6.93, from 6.7 before 6.12.31, from 6.13 before 6.14.9, 6.15 | NVD |
| debian debian_linux | 11.0 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 4.7medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ALSA: pcm: Corrección de la ejecución de acceso al búfer en la capa PCM OSS. La capa PCM OSS intenta borrar el búfer con los datos de silencio durante la inicialización (o reconfiguración) de un flujo mediante la llamada explícita a snd_pcm_format_set_silence() con runtime->dma_area. Sin embargo, esto puede generar una UAF, ya que el acceso a runtime->dma_area podría liberarse simultáneamente, ya que se realiza fuera de las operaciones PCM. Para evitarlo, mueva el código al núcleo PCM y ejecútelo dentro del bloqueo de acceso al búfer, de modo que no se modifique durante la operación.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-38078 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2025-38078 changed 2026-10-15 | Public domain |