CVE-2022-49733

ALSA: pcm: oss: Fix race at SNDCTL_DSP_SYNC

State
Published
Severity
7.8 High
Published
Mar 2, 2025
Updated
Aug 5, 2026
Reserved
Feb 26, 2025

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

ALSA: pcm: oss: Fix race at SNDCTL_DSP_SYNC

There is a small race window at snd_pcm_oss_sync() that is called from OSS PCM SNDCTL_DSP_SYNC ioctl; namely the function calls snd_pcm_oss_make_ready() at first, then takes the params_lock mutex for the rest. When the stream is set up again by another thread between them, it leads to inconsistency, and may result in unexpected results such as NULL dereference of OSS buffer as a fuzzer spotted recently.

The fix is simply to cover snd_pcm_oss_make_ready() call into the same params_lock mutex with snd_pcm_oss_make_ready_locked() variant.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
3.14.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • e3a5d59a17e9a42e3f3e0e37342b2679bab2ff43 to before 4051324a6dafd7053c74c475e80b3ba10ae672b0Affected
  • e3a5d59a17e9a42e3f3e0e37342b2679bab2ff43 to before fce793a056c604b41a298317cf704dae255f1b36Affected
  • e3a5d59a17e9a42e3f3e0e37342b2679bab2ff43 to before 8015ef9e8a0ee5cecfd0cb6805834d007ab26f86Affected
  • e3a5d59a17e9a42e3f3e0e37342b2679bab2ff43 to before 723ac5ab2891b6c10dd6cc78ef5456af593490ebAffected
  • e3a5d59a17e9a42e3f3e0e37342b2679bab2ff43 to before 8423f0b6d513b259fdab9c9bf4aaa6188d054c2dAffected
LinuxLinux
  • 2.6.20Affected
  • before 2.6.20Not affected
  • 5.4.215 through 5.4.*Not affected
  • 5.10.148 through 5.10.*Not affected
  • 5.15.68 through 5.15.*Not affected
  • 5.19.9 through 5.19.*Not affected
  • 6.0 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.