{"id":"CVE-2026-139273","aliases":["CVE-2026-139273"],"related":[],"kind":"vulnerability","state":"published","title":"ALSA: aloop: Keep shared timer callbacks alive through close","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: aloop: Keep shared timer callbacks alive through close\n\nThe shared sound-timer callback must finish using the selected PCM\nruntimes before a close can detach them. loopback_snd_timer_period_elapsed()\nsaves the active substreams under cable->lock, then drops the lock before\ncalling snd_pcm_period_elapsed() or snd_pcm_stop_xrun(). The sound-timer\nbackend has no per-stream close drain, and free_cable() keeps the timer\nopen when the paired endpoint remains attached.\n\nWith both directions running on a shared sound timer, playback can be\ndropped and closed while a notification is pending. Capture keeps the\ntimer alive, allowing this order:\n\n  Timer callback                       Playback owner\n  --------------                       --------------\n  select playback under cable->lock\n  unlock; delay notification\n                                       DROP; HW_FREE -> OPEN\n                                       close: snd_pcm_drop(); unlock\n                                       free_cable(); peer stays alive\n  snd_pcm_period_elapsed()\n    lock stream; cache runtime\n                                       snd_pcm_detach_substream()\n                                         free runtime and its fasync\n    read runtime->fasync\n\nThe stream lock taken by snd_pcm_drop() cannot protect a notification\nthat starts after it returns, and detach does not take it. The callback\ncan therefore read runtime->fasync after the runtime has been freed, and\nan escaped notification can also reach a replacement runtime if the same\nsubstream slot is reopened before the notification resumes.\n\nTake the existing cable->stop_count reference under cable->lock when\nselecting the targets and release it after the PCM callbacks finish,\nincluding the XRUN path. free_cable() already removes the closing\nendpoint under that lock and waits for stop_count before returning, so\nruntime detach and slot reuse cannot overtake the notification.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: aloop: Keep shared timer callbacks alive through close\n\nThe shared sound-timer callback must finish using the selected PCM\nruntimes before a close can detach them. loopback_snd_timer_period_elapsed()\nsaves the active substreams under cable->lock, then drops the lock before\ncalling snd_pcm_period_elapsed() or snd_pcm_stop_xrun(). The sound-timer\nbackend has no per-stream close drain, and free_cable() keeps the timer\nopen when the paired endpoint remains attached.\n\nWith both directions running on a shared sound timer, playback can be\ndropped and closed while a notification is pending. Capture keeps the\ntimer alive, allowing this order:\n\n  Timer callback                       Playback owner\n  --------------                       --------------\n  select playback under cable->lock\n  unlock; delay notification\n                                       DROP; HW_FREE -> OPEN\n                                       close: snd_pcm_drop(); unlock\n                                       free_cable(); peer stays alive\n  snd_pcm_period_elapsed()\n    lock stream; cache runtime\n                                       snd_pcm_detach_substream()\n                                         free runtime and its fasync\n    read runtime->fasync\n\nThe stream lock taken by snd_pcm_drop() cannot protect a notification\nthat starts after it returns, and detach does not take it. The callback\ncan therefore read runtime->fasync after the runtime has been freed, and\nan escaped notification can also reach a replacement runtime if the same\nsubstream slot is reopened before the notification resumes.\n\nTake the existing cable->stop_count reference under cable->lock when\nselecting the targets and release it after the PCM callbacks finish,\nincluding the XRUN path. free_cable() already removes the closing\nendpoint under that lock and waits for stop_count before returning, so\nruntime detach and slot reuse cannot overtake the notification.","source":"cvelist"}],"published":"2026-11-30T13:33:13.763Z","modified":"2026-12-01T06:17:40.827Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"26c53379f98d22d6a3e50bb146651dc7824334d7","fixed":"b382c8b66c49070b8740e0b14923a1f8339c4555","status":"affected"},{"type":"git","introduced":"26c53379f98d22d6a3e50bb146651dc7824334d7","fixed":"e38d004eae40bb2b0a18b2dc50a35a05cfdc17a8","status":"affected"},{"type":"git","introduced":"26c53379f98d22d6a3e50bb146651dc7824334d7","fixed":"8a9c4702b52557f5ce1b98587df18bb0978bc36b","status":"affected"},{"type":"git","introduced":"26c53379f98d22d6a3e50bb146651dc7824334d7","fixed":"a7d4d780f34b9e43eefab6a7e6c9f4101f2c144e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.5","status":"unaffected"},{"type":"semver","introduced":"6.12.120","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/b382c8b66c49070b8740e0b14923a1f8339c4555","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e38d004eae40bb2b0a18b2dc50a35a05cfdc17a8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8a9c4702b52557f5ce1b98587df18bb0978bc36b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a7d4d780f34b9e43eefab6a7e6c9f4101f2c144e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139273","url":"https://www.cve.org/CVERecord?id=CVE-2026-139273","licence":"CVE Terms of Use","modified":"2026-12-01T05:42:05.964Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139273","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139273","licence":"Public domain","modified":"2026-12-01T06:17:40.827Z"}],"updatedAt":"2026-12-01T06:32:24.162Z","epss":{"score":0.00165,"percentile":0.0596,"date":"2026-12-01T12:00:22.000Z"}}