CVE-2026-53242

ALSA: PCM: Fix wait queue list corruption in snd_pcm_drain() on linked streams

State
Published
Severity
7.8 High
Published
Jun 25, 2026
Updated
Oct 19, 2026
Reserved
Jun 9, 2026

Read the record on cve.org

Description

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

ALSA: PCM: Fix wait queue list corruption in snd_pcm_drain() on linked streams

snd_pcm_drain() uses init_waitqueue_entry which does not clear entry.prev/next, and add_wait_queue with a conditional remove_wait_queue that is skipped when to_check is no longer in the group after concurrent UNLINK. The orphaned wait entry remains on the unlinked substream sleep queue. On the next drain iteration, add_wait_queue adds the entry to a new queue while still linked on the old one, corrupting both lists. A subsequent wake_up dereferences NULL at the func pointer (mapped from the spinlock at offset 0 of the misinterpreted wait_queue_head_t), causing a kernel panic.

Replace init_waitqueue_entry/add_wait_queue/conditional remove_wait_queue with init_wait_entry/prepare_to_wait/ finish_wait. init_wait_entry clears prev/next via INIT_LIST_HEAD on each iteration and sets autoremove_wake_function which auto-removes the entry on wake-up. finish_wait safely handles both the already-removed and still-queued cases.

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

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Affected Products

ProductVersions
LinuxLinux
  • 9baee36e8c5443411c4629afabafaff8a46a23fd to before cac5bf3500ee6422cf64e0df0b5daeecfed42917Affected
  • f2cb2e0d27fb925c73a78f0ce7d6dbf68d3747c1 to before 06eca2235a3fd281dddf25b0a97772b25b5bb573Affected
  • fc71f888994569f87d5bee20b1ac6c9c1e3a7a79 to before d842f26a167e77a36f3ed333b9fa99d36ef99fe6Affected
  • 629cf09464cf98670996ea5c191dc9743e6f3f00 to before d68b621bb5a48051932f1017a6e1bc9b18f854d0Affected
  • ae8f8d30d334bad5b1b3cdb1eb8a0b771f55e432 to before b053fcd8912f06c30f932f5b8ec41c72de474695Affected
  • 4a758e9a1f5ed722f83c4dd35f867fe811553bcb to before cd98837db15f323463b8df07282ac723bd5c3fedAffected
  • 9b1dbd69ba6f8f8c69bc7b77c2ce3b9c6ed05ba6 to before 7c71a9522555ff137a9ca36b15d759ca04d84788Affected
  • 9b1dbd69ba6f8f8c69bc7b77c2ce3b9c6ed05ba6 to before 88fe2e3658726cb21ff2dcf9770bf672f9b9d31bAffected
  • c2f64e05a0587a83ec42dbd6b7a7ded79b2ff694Affected
  • 5.10.253 to before 5.10.259Affected
  • 6.1.167 to before 6.1.176Affected
  • 6.6.130 to before 6.6.143Affected
  • 6.12.78 to before 6.12.94Affected
  • 6.18.19 to before 6.18.36Affected
  • 6.19.9 to before 6.20Affected
LinuxLinux
  • 7.0Affected
  • before 7.0Not affected
  • 5.10.259 through 5.10.*Not affected
  • 6.1.176 through 6.1.*Not affected
  • 6.6.143 through 6.6.*Not affected
  • 6.12.94 through 6.12.*Not affected
  • 6.18.36 through 6.18.*Not affected
  • 7.0.13 through 7.0.*Not affected
  • 7.1 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.