{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139273","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.924Z","datePublished":"2026-11-30T13:33:13.763Z","dateUpdated":"2026-12-01T05:42:05.964Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:42:05.964Z"},"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - Reached only through local ALSA nodes /dev/snd/pcmC*D*p and pcmC*D*c: the attacker runs both ends of a loopback cable, then DROP/HW_FREE/close() on playback runs loopback_close()->free_cable() and snd_pcm_detach_substream() while loopback_snd_timer_period_elapsed() is still running. Nothing in the trigger comes from a remote peer.\nAC:H - Needs the non-default snd_timer backend: __loopback_open() only selects loopback_snd_timer_ops when timer_source is set, and that is root-only (0444 module param or root-owned proc file). The race window, from cable->lock unlock to the runtime->fasync read, runs with IRQs off in snd_timer_work and the attacker cannot stretch it.\nPR:L - The attacker only needs to open loopback PCM substreams. /dev/snd nodes are GROUP=audio with uaccess ACLs for the seat user, so an ordinary local user can open a free cable's playback and capture ends; root is only needed for the admin configuration counted under AC.\nUI:N - The attacker opens, starts, drops and closes their own loopback substreams. No other user has to do anything.\nS:U - The freed snd_pcm_runtime and the code reading it are both in the same kernel; no VM, IOMMU or sandbox boundary is crossed.\nC:H - snd_pcm_period_elapsed_under_stream_lock() reads runtime->state and runtime->fasync from a kfree'd snd_pcm_runtime. If that memory is reused with forged contents, the attacker controls which pointers the kernel dereferences next.\nI:H - A forged runtime->fasync reaches snd_kill_fasync(), which writes ->signal/->poll and does a list_move with attacker-chosen pointers. A forged RUNNING state reaches snd_pcm_update_hw_ptr0(), which writes through runtime->status. Both are kernel write primitives.\nA:H - Dereferencing the freed runtime, or a freed snd_fasync, from the snd_timer kworker with IRQs off can oops or panic the kernel."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/drivers/aloop.c"],"versions":[{"version":"26c53379f98d22d6a3e50bb146651dc7824334d7","lessThan":"b382c8b66c49070b8740e0b14923a1f8339c4555","status":"affected","versionType":"git"},{"version":"26c53379f98d22d6a3e50bb146651dc7824334d7","lessThan":"e38d004eae40bb2b0a18b2dc50a35a05cfdc17a8","status":"affected","versionType":"git"},{"version":"26c53379f98d22d6a3e50bb146651dc7824334d7","lessThan":"8a9c4702b52557f5ce1b98587df18bb0978bc36b","status":"affected","versionType":"git"},{"version":"26c53379f98d22d6a3e50bb146651dc7824334d7","lessThan":"a7d4d780f34b9e43eefab6a7e6c9f4101f2c144e","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/drivers/aloop.c"],"versions":[{"version":"5.5","status":"affected"},{"version":"0","lessThan":"5.5","status":"unaffected","versionType":"semver"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/b382c8b66c49070b8740e0b14923a1f8339c4555"},{"url":"https://git.kernel.org/stable/c/e38d004eae40bb2b0a18b2dc50a35a05cfdc17a8"},{"url":"https://git.kernel.org/stable/c/8a9c4702b52557f5ce1b98587df18bb0978bc36b"},{"url":"https://git.kernel.org/stable/c/a7d4d780f34b9e43eefab6a7e6c9f4101f2c144e"}],"title":"ALSA: aloop: Keep shared timer callbacks alive through close","x_generator":{"engine":"bippy-1.2.0"}}}}