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

CVE-2025-38078
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.15 % · percentile 5 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

  • CWE-362 — Concurrent Execution using Shared Resource with Improper Synchronization

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1MEDIUM 4.7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < c0e05a76fc727929524ef24a19c302e6dd40233f ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 8170d8ec4efd0be352c14cb61f374e30fb0c2a25 ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 10217da9644ae75cea7330f902c35fc5ba78bbbf ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < f3e14d706ec18faf19f5a6e75060e140fea05d4a ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 74d90875f3d43f3eff0e9861c4701418795d3455 ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < bf85e49aaf3a3c5775ea87369ea5f159c2148db4
Linux · Linuxaffected 2.6.12 ; unaffected 0 < 2.6.12 ; unaffected 5.4.294 ≤ 5.4.* ; unaffected 5.10.238 ≤ 5.10.* ; unaffected 5.15.185 ≤ 5.15.* ; unaffected 6.1.141 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD