{"id":"CVE-2025-40344","state":"PUBLISHED","title":"ASoC: Intel: avs: Disable periods-elapsed work when closing PCM","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: Intel: avs: Disable periods-elapsed work when closing PCM\n\navs_dai_fe_shutdown() handles the shutdown procedure for HOST HDAudio\nstream while period-elapsed work services its IRQs. As the former\nfrees the DAI's private context, these two operations shall be\nsynchronized to avoid slab-use-after-free or worse errors.","publishedAt":"2025-12-09T04:10:03.253Z","updatedAt":"2026-10-15T22:02:46.492Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0dbb186c3510cad4e9f443e801bf2e6ab5770c00","status":"affected","lessThan":"ca6d2b7aca778afbf8c0c4b330d10cb228c14052","versionType":"git"},{"version":"0dbb186c3510cad4e9f443e801bf2e6ab5770c00","status":"affected","lessThan":"b41fca4aa60be896ba8a81b57aac5dcc6eee66c0","versionType":"git"},{"version":"0dbb186c3510cad4e9f443e801bf2e6ab5770c00","status":"affected","lessThan":"845f716dc5f354c719f6fda35048b6c2eca99331","versionType":"git"},{"version":"31087af37d6b1586b76d4acf3e0c1634a4617ba6","status":"affected","versionType":"git"},{"version":"6.11.9","status":"affected","lessThan":"6.12","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/intel/avs/pcm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"6.12.58","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.17.8","status":"unaffected","lessThanOrEqual":"6.17.*","versionType":"semver"},{"version":"6.18","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/intel/avs/pcm.c"]}],"references":["https://git.kernel.org/stable/c/ca6d2b7aca778afbf8c0c4b330d10cb228c14052","https://git.kernel.org/stable/c/b41fca4aa60be896ba8a81b57aac5dcc6eee66c0","https://git.kernel.org/stable/c/845f716dc5f354c719f6fda35048b6c2eca99331"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/40xxx/CVE-2025-40344.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-40344","state":"PUBLISHED","datePublished":"2025-12-09T04:10:03.253Z","dateUpdated":"2026-10-15T22:02:46.492Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T07:20:57.187Z"},"containers":{"cna":{"title":"ASoC: Intel: avs: Disable periods-elapsed work when closing PCM","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: Intel: avs: Disable periods-elapsed work when closing PCM\n\navs_dai_fe_shutdown() handles the shutdown procedure for HOST HDAudio\nstream while period-elapsed work services its IRQs. As the former\nfrees the DAI's private context, these two operations shall be\nsynchronized to avoid slab-use-after-free or worse errors."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0dbb186c3510cad4e9f443e801bf2e6ab5770c00","status":"affected","lessThan":"ca6d2b7aca778afbf8c0c4b330d10cb228c14052","versionType":"git"},{"version":"0dbb186c3510cad4e9f443e801bf2e6ab5770c00","status":"affected","lessThan":"b41fca4aa60be896ba8a81b57aac5dcc6eee66c0","versionType":"git"},{"version":"0dbb186c3510cad4e9f443e801bf2e6ab5770c00","status":"affected","lessThan":"845f716dc5f354c719f6fda35048b6c2eca99331","versionType":"git"},{"version":"31087af37d6b1586b76d4acf3e0c1634a4617ba6","status":"affected","versionType":"git"},{"version":"6.11.9","status":"affected","lessThan":"6.12","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/intel/avs/pcm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"6.12.58","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.17.8","status":"unaffected","lessThanOrEqual":"6.17.*","versionType":"semver"},{"version":"6.18","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/intel/avs/pcm.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ca6d2b7aca778afbf8c0c4b330d10cb228c14052"},{"url":"https://git.kernel.org/stable/c/b41fca4aa60be896ba8a81b57aac5dcc6eee66c0"},{"url":"https://git.kernel.org/stable/c/845f716dc5f354c719f6fda35048b6c2eca99331"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerability is reached only through ALSA PCM device nodes (`/dev/snd/pcmC*D*`) via open/ioctl/close syscalls on a machine with an Intel cAVS DSP audio controller. There is no remote or adjacent-network path to the FE DAI shutdown code.\nAC:L - The attacker controls both sides of the race — the period size (and thus the IRQ rate) via `hw_params`, the exact moment of `close()`, and the `system_wq` backlog that delays the pending `period_elapsed_work` — and the open/start/close sequence can be retried in an unbounded loop until the window is hit.\nPR:L - Only an unprivileged local account with access to the sound device is needed, which is the default for any desktop/seat user, `audio`-group member, or Android media process; no capability or root check exists along `snd_pcm_open` → `avs_dai_fe_startup` → `avs_dai_fe_shutdown`.\nUI:N - The attacking process performs the entire open/hw_params/prepare/start/close sequence itself; no action by another user or victim is required.\nS:U - The use-after-free corrupts kernel slab memory within the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The freed `avs_dma_data` can be reclaimed by an attacker-sprayed object, after which `avs_period_elapsed_work()` reads `data->substream` and `snd_pcm_period_elapsed()` follows it into `runtime` — giving attacker-directed kernel reads and disclosure of arbitrary kernel memory.\nI:H - The `work_struct` itself lives in the freed allocation, so the workqueue writes list/`work->data` fields into reclaimed memory and dispatches through a freed `work->func`, and the handler writes through the attacker-controlled `substream`/`runtime` pointers — a control-flow-hijack-capable write primitive.\nA:H - Even unweaponized, the slab use-after-free dereferences freed memory from workqueue context, reliably producing a KASAN splat, oops, or kernel panic."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:09:47.053Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.12.58"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.17.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.18"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11.9"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2025-40344","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-15T21:59:36.622364Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T22:02:46.492Z"}}]}}}