Bug 2373353 (CVE-2025-38078) - CVE-2025-38078 kernel: ALSA: pcm: Fix race of buffer access at PCM OSS layer
Summary: CVE-2025-38078 kernel: ALSA: pcm: Fix race of buffer access at PCM OSS layer
Keywords:
Status: NEW
Alias: CVE-2025-38078
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 10:03 UTC by OSIDB Bzimport
Modified: 2025-06-20 19:43 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 10:03:16 UTC
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.

Comment 1 Avinash Hanwate 2025-06-20 19:34:34 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061841-CVE-2025-38078-3f10@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.