CVE-2025-38078

ALSA: pcm: Fix race of buffer access at PCM OSS layer

State
Published
Severity
7.8 High
Published
Jun 18, 2025
Updated
Oct 15, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before c0e05a76fc727929524ef24a19c302e6dd40233fAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 8170d8ec4efd0be352c14cb61f374e30fb0c2a25Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 10217da9644ae75cea7330f902c35fc5ba78bbbfAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before f3e14d706ec18faf19f5a6e75060e140fea05d4aAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 74d90875f3d43f3eff0e9861c4701418795d3455Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before bf85e49aaf3a3c5775ea87369ea5f159c2148db4Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before afa56c960fcb4db37f2e3399f28e9402e4e1f470Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 93a81ca0657758b607c3f4ba889ae806be9beb73Affected
LinuxLinux
  • 2.6.12Affected
  • before 2.6.12Not affected
  • 5.4.294 through 5.4.*Not affected
  • 5.10.238 through 5.10.*Not affected
  • 5.15.185 through 5.15.*Not affected
  • 6.1.141 through 6.1.*Not affected
  • 6.6.93 through 6.6.*Not affected
  • 6.12.31 through 6.12.*Not affected
  • 6.14.9 through 6.14.*Not affected
  • 6.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.