CVE-2026-43459
JSON

7.3high

ASoC: soc-core: flush delayed work before removing DAIs and widgets

Severity
7.3high CVSS:3.1 by Linux
Exploit likelihood
0.15% (higher than 4% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: ASoC: soc-core: flush delayed work before removing DAIs and widgets When a sound card is unbound while a PCM stream is open, a use-after-free can occur in snd_soc_dapm_stream_event(), called from the close_delayed_work workqueue handler. During unbind, snd_soc_unbind_card() flushes delayed work and then calls soc_cleanup_card_resources(). Inside cleanup, snd_card_disconnect_sync() releases all PCM file descriptors, and the resulting PCM close path can call snd_soc_dapm_stream_stop() which schedules new delayed work with a pmdown_time timer delay. Since this happens after the flush in snd_soc_unbind_card(), the new work is not caught. soc_remove_link_components() then frees DAPM widgets before this work fires, leading to the use-after-free. The existing flush in soc_free_pcm_runtime() also cannot help as it runs after soc_remove_link_components() has already freed the widgets. Add a flush in soc_cleanup_card_resources() after snd_card_disconnect_sync() (after which no new PCM closes can schedule further delayed work) and before soc_remove_link_dais() and soc_remove_link_components() (which tear down the structures the delayed work accesses).

Affected

Product or packageVersionsReported by
Linux Linuxfrom e894efef9ac7c10b7727798dcc711cccf07569f9 before bf80a89da97285d9b877e0c6995e870d46b8025c, from e894efef9ac7c10b7727798dcc711cccf07569f9 before 3887e514978d28216246360b46a9cb534969eb5a, from e894efef9ac7c10b7727798dcc711cccf07569f9 before 231568afbc0cd25b8fb2a94ebf9738eabe1cf007, from e894efef9ac7c10b7727798dcc711cccf07569f9 before 317a9298c54bb00319da73e5a7179f00e67fcbdf, from e894efef9ac7c10b7727798dcc711cccf07569f9 before eab71e11ce2447c1e01809cbc11eab4234cf8dc8, from e894efef9ac7c10b7727798dcc711cccf07569f9 before 7d33e6140945482a07f8089ee86e13e02553ffdb, from e894efef9ac7c10b7727798dcc711cccf07569f9 before c054f0607c8bb1b1aa529bc109e4149298a1cccd, from e894efef9ac7c10b7727798dcc711cccf07569f9 before 95bc5c225513fc3c4ce169563fb5e3929fbb938b and 1 more
Not affected: before 4.20, from 5.10.253 up to 5.10.*, from 5.15.203 up to 5.15.*, from 6.1.167 up to 6.1.*, from 6.6.130 up to 6.6.*, from 6.12.78 up to 6.12.*
CVE List
linux linux_kernelfrom 4.20 before 5.10.253, from 5.11 before 5.15.203, from 5.16 before 6.1.167, from 6.2 before 6.6.130, from 6.7 before 6.12.78, from 6.13 before 6.18.19, from 6.19 before 6.19.9, 7.0NVD

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: ASoC: soc-core: flush delayed work before removing DAIs and widgets When a sound card is unbound while a PCM stream is open, a use-after-free can occur in snd_soc_dapm_stream_event(), called from the close_delayed_work workqueue handler. During unbind, snd_soc_unbind_card() flushes delayed work and then calls soc_cleanup_card_resources(). Inside cleanup, snd_card_disconnect_sync() releases all PCM file descriptors, and the resulting PCM close path can call snd_soc_dapm_stream_stop() which schedules new delayed work with a pmdown_time timer delay. Since this happens after the flush in snd_soc_unbind_card(), the new work is not caught. soc_remove_link_components() then frees DAPM widgets before this work fires, leading to the use-after-free. The existing flush in soc_free_pcm_runtime() also cannot help as it runs after soc_remove_link_components() has already freed the widgets. Add a flush in soc_cleanup_card_resources() after snd_card_disconnect_sync() (after which no new PCM closes can schedule further delayed work) and before soc_remove_link_dais() and soc_remove_link_components() (which tear down the structures the delayed work accesses).

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ASoC: soc-core: vaciar trabajo retrasado antes de eliminar DAIs y widgets Cuando una tarjeta de sonido se desvincula mientras un flujo PCM está abierto, puede ocurrir un uso después de liberación en snd_soc_dapm_stream_event(), llamado desde el gestor de la cola de trabajo close_delayed_work. Durante la desvinculación, snd_soc_unbind_card() vacía el trabajo retrasado y luego llama a soc_cleanup_card_resources(). Dentro de la limpieza, snd_card_disconnect_sync() libera todos los descriptores de archivo PCM, y la ruta de cierre PCM resultante puede llamar a snd_soc_dapm_stream_stop() que programa nuevo trabajo retrasado con un retardo de temporizador pmdown_time. Dado que esto ocurre después del vaciado en snd_soc_unbind_card(), el nuevo trabajo no es capturado. soc_remove_link_components() luego libera los widgets DAPM antes de que este trabajo se active, lo que lleva al uso después de liberación. El vaciado existente en soc_free_pcm_runtime() tampoco puede ayudar ya que se ejecuta después de que soc_remove_link_components() ya ha liberado los widgets. Añadir un vaciado en soc_cleanup_card_resources() después de snd_card_disconnect_sync() (después de lo cual ningún nuevo cierre PCM puede programar más trabajo retrasado) y antes de soc_remove_link_dais() y soc_remove_link_components() (que desmantelan las estructuras a las que accede el trabajo retrasado).

References

Sources

SourceRecordLicence
CVE ListCVE-2026-43459 changed 2026-10-19CVE Terms of Use
NVDCVE-2026-43459 changed 2026-11-11Public domain