{"id":"CVE-2026-43437","aliases":["CVE-2026-43437"],"related":[],"kind":"vulnerability","state":"published","title":"ALSA: pcm: fix use-after-free on linked stream runtime in snd_pcm_drain()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: pcm: fix use-after-free on linked stream runtime in snd_pcm_drain()\n\nIn the drain loop, the local variable 'runtime' is reassigned to a\nlinked stream's runtime (runtime = s->runtime at line 2157).  After\nreleasing the stream lock at line 2169, the code accesses\nruntime->no_period_wakeup, runtime->rate, and runtime->buffer_size\n(lines 2170-2178) — all referencing the linked stream's runtime without\nany lock or refcount protecting its lifetime.\n\nA concurrent close() on the linked stream's fd triggers\nsnd_pcm_release_substream() → snd_pcm_drop() → pcm_release_private()\n→ snd_pcm_unlink() → snd_pcm_detach_substream() → kfree(runtime).\nNo synchronization prevents kfree(runtime) from completing while the\ndrain path dereferences the stale pointer.\n\nFix by caching the needed runtime fields (no_period_wakeup, rate,\nbuffer_size) into local variables while still holding the stream lock,\nand using the cached values after the lock is released.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: pcm: fix use-after-free on linked stream runtime in snd_pcm_drain()\n\nIn the drain loop, the local variable 'runtime' is reassigned to a\nlinked stream's runtime (runtime = s->runtime at line 2157).  After\nreleasing the stream lock at line 2169, the code accesses\nruntime->no_period_wakeup, runtime->rate, and runtime->buffer_size\n(lines 2170-2178) — all referencing the linked stream's runtime without\nany lock or refcount protecting its lifetime.\n\nA concurrent close() on the linked stream's fd triggers\nsnd_pcm_release_substream() → snd_pcm_drop() → pcm_release_private()\n→ snd_pcm_unlink() → snd_pcm_detach_substream() → kfree(runtime).\nNo synchronization prevents kfree(runtime) from completing while the\ndrain path dereferences the stale pointer.\n\nFix by caching the needed runtime fields (no_period_wakeup, rate,\nbuffer_size) into local variables while still holding the stream lock,\nand using the cached values after the lock is released.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nALSA: pcm: corrige el uso después de liberación en el runtime de un flujo vinculado en snd_pcm_drain()\n\nEn el bucle de drenaje, la variable local ’runtime’ es reasignada al runtime de un flujo vinculado (runtime = s  ->  runtime en la línea 2157). Después de liberar el bloqueo del flujo en la línea 2169, el código accede a runtime  ->  no_period_wakeup, runtime  ->  rate y runtime  ->  buffer_size (líneas 2170-2178) - todos haciendo referencia al runtime del flujo vinculado sin ningún bloqueo o contador de referencias que proteja su vida útil.\n\nUn close() concurrente en el fd del flujo vinculado dispara snd_pcm_release_substream() ? snd_pcm_drop() ? pcm_release_private() ? snd_pcm_unlink() ? snd_pcm_detach_substream() ? kfree(runtime). Ninguna sincronización evita que kfree(runtime) se complete mientras la ruta de drenaje desreferencia el puntero obsoleto.\n\nSolución: almacenando en caché los campos de runtime necesarios (no_period_wakeup, rate, buffer_size) en variables locales mientras aún se mantiene el bloqueo del flujo, y usando los valores almacenados en caché después de que se libera el bloqueo.","source":"nvd"}],"published":"2026-05-08T14:22:07.314Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"f2b3614cefb61ee6046a0aaee503ee37f227d310","fixed":"9baee36e8c5443411c4629afabafaff8a46a23fd","status":"affected"},{"type":"git","introduced":"f2b3614cefb61ee6046a0aaee503ee37f227d310","fixed":"f2cb2e0d27fb925c73a78f0ce7d6dbf68d3747c1","status":"affected"},{"type":"git","introduced":"f2b3614cefb61ee6046a0aaee503ee37f227d310","fixed":"fc71f888994569f87d5bee20b1ac6c9c1e3a7a79","status":"affected"},{"type":"git","introduced":"f2b3614cefb61ee6046a0aaee503ee37f227d310","fixed":"629cf09464cf98670996ea5c191dc9743e6f3f00","status":"affected"},{"type":"git","introduced":"f2b3614cefb61ee6046a0aaee503ee37f227d310","fixed":"ae8f8d30d334bad5b1b3cdb1eb8a0b771f55e432","status":"affected"},{"type":"git","introduced":"f2b3614cefb61ee6046a0aaee503ee37f227d310","fixed":"4a758e9a1f5ed722f83c4dd35f867fe811553bcb","status":"affected"},{"type":"git","introduced":"f2b3614cefb61ee6046a0aaee503ee37f227d310","fixed":"c2f64e05a0587a83ec42dbd6b7a7ded79b2ff694","status":"affected"},{"type":"git","introduced":"f2b3614cefb61ee6046a0aaee503ee37f227d310","fixed":"9b1dbd69ba6f8f8c69bc7b77c2ce3b9c6ed05ba6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.0","status":"unaffected"},{"type":"semver","introduced":"5.10.253","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.220","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.167","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.130","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.78","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.19","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.9","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.0","fixed":"5.10.253"},{"status":"affected","introduced":"5.11","fixed":"6.1.167"},{"status":"affected","introduced":"6.2","fixed":"6.6.130"},{"status":"affected","introduced":"6.7","fixed":"6.12.78"},{"status":"affected","introduced":"6.13","fixed":"6.18.19"},{"status":"affected","introduced":"6.19","fixed":"6.19.9"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/9baee36e8c5443411c4629afabafaff8a46a23fd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f2cb2e0d27fb925c73a78f0ce7d6dbf68d3747c1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fc71f888994569f87d5bee20b1ac6c9c1e3a7a79","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/629cf09464cf98670996ea5c191dc9743e6f3f00","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ae8f8d30d334bad5b1b3cdb1eb8a0b771f55e432","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4a758e9a1f5ed722f83c4dd35f867fe811553bcb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c2f64e05a0587a83ec42dbd6b7a7ded79b2ff694","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9b1dbd69ba6f8f8c69bc7b77c2ce3b9c6ed05ba6","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:17:22.050Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43437","url":"https://www.cve.org/CVERecord?id=CVE-2026-43437","licence":"CVE Terms of Use","modified":"2026-10-19T19:26:36.663Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43437","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43437","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:21.068Z","epss":{"score":0.00159,"percentile":0.0535,"date":"2026-12-01T12:00:22.000Z"}}