CVE-2025-40344: ASoC: Intel: avs: Disable periods-elapsed work when closing PCM
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ASoC: Intel: avs: Disable periods-elapsed work when closing PCM
avs_dai_fe_shutdown() handles the shutdown procedure for HOST HDAudio stream while period-elapsed work services its IRQs. As the former frees the DAI's private context, these two operations shall be synchronized to avoid slab-use-after-free or worse errors.
The Linux kernel CVE team has assigned CVE-2025-40344 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.12 with commit 0dbb186c3510cad4e9f443e801bf2e6ab5770c00 and fixed in 6.12.58 with commit ca6d2b7aca778afbf8c0c4b330d10cb228c14052 Issue introduced in 6.12 with commit 0dbb186c3510cad4e9f443e801bf2e6ab5770c00 and fixed in 6.17.8 with commit b41fca4aa60be896ba8a81b57aac5dcc6eee66c0 Issue introduced in 6.12 with commit 0dbb186c3510cad4e9f443e801bf2e6ab5770c00 and fixed in 6.18 with commit 845f716dc5f354c719f6fda35048b6c2eca99331 Issue introduced in 6.11.9 with commit 31087af37d6b1586b76d4acf3e0c1634a4617ba6
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-40344
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
sound/soc/intel/avs/pcm.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/ca6d2b7aca778afbf8c0c4b330d10cb228c14052 https://git.kernel.org/stable/c/b41fca4aa60be896ba8a81b57aac5dcc6eee66c0 https://git.kernel.org/stable/c/845f716dc5f354c719f6fda35048b6c2eca99331