Files
vuln-cve/data/2025/40xxx/CVE-2025-40344.json
T

209 lines
11 KiB
JSON

{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2025-40344",
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"state": "PUBLISHED",
"assignerShortName": "Linux",
"dateReserved": "2025-04-16T07:20:57.187Z",
"datePublished": "2025-12-09T04:10:03.253Z",
"dateUpdated": "2026-10-15T22:02:46.492Z"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux",
"dateUpdated": "2026-08-05T12:09:47.053Z"
},
"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."
}
],
"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."
}
]
}
],
"affected": [
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"sound/soc/intel/avs/pcm.c"
],
"versions": [
{
"version": "0dbb186c3510cad4e9f443e801bf2e6ab5770c00",
"lessThan": "ca6d2b7aca778afbf8c0c4b330d10cb228c14052",
"status": "affected",
"versionType": "git"
},
{
"version": "0dbb186c3510cad4e9f443e801bf2e6ab5770c00",
"lessThan": "b41fca4aa60be896ba8a81b57aac5dcc6eee66c0",
"status": "affected",
"versionType": "git"
},
{
"version": "0dbb186c3510cad4e9f443e801bf2e6ab5770c00",
"lessThan": "845f716dc5f354c719f6fda35048b6c2eca99331",
"status": "affected",
"versionType": "git"
},
{
"version": "31087af37d6b1586b76d4acf3e0c1634a4617ba6",
"status": "affected",
"versionType": "git"
},
{
"version": "6.11.9",
"lessThan": "6.12",
"status": "affected",
"versionType": "semver"
}
]
},
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "affected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"sound/soc/intel/avs/pcm.c"
],
"versions": [
{
"version": "6.12",
"status": "affected"
},
{
"version": "0",
"lessThan": "6.12",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.12.58",
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.17.8",
"lessThanOrEqual": "6.17.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.18",
"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": "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"
}
]
}
]
}
],
"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"
}
],
"title": "ASoC: Intel: avs: Disable periods-elapsed work when closing PCM",
"x_generator": {
"engine": "bippy-1.2.0"
}
},
"adp": [
{
"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"
}
}
}
],
"title": "CISA ADP Vulnrichment",
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-10-15T22:02:46.492Z"
}
}
]
}
}