{"id":"CVE-2023-52987","state":"PUBLISHED","title":"ASoC: SOF: ipc4-mtrace: prevent underflow in sof_ipc4_priority_mask_dfs_write()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: SOF: ipc4-mtrace: prevent underflow in sof_ipc4_priority_mask_dfs_write()\n\nThe \"id\" comes from the user.  Change the type to unsigned to prevent\nan array underflow.","publishedAt":"2025-03-27T16:43:24.225Z","updatedAt":"2026-10-15T21:41:24.960Z","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":"f4ea22f7aa7536560097d765be56445933d07e0d","status":"affected","lessThan":"d52f34784e4e2f6e77671a9f104d8a69a3b5d24c","versionType":"git"},{"version":"f4ea22f7aa7536560097d765be56445933d07e0d","status":"affected","lessThan":"ea57680af47587397f5005d7758022441ed66d54","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/ipc4-mtrace.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.1","versionType":"semver"},{"version":"6.1.11","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/ipc4-mtrace.c"]}],"references":["https://git.kernel.org/stable/c/d52f34784e4e2f6e77671a9f104d8a69a3b5d24c","https://git.kernel.org/stable/c/ea57680af47587397f5005d7758022441ed66d54"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/52xxx/CVE-2023-52987.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52987","state":"PUBLISHED","datePublished":"2025-03-27T16:43:24.225Z","dateUpdated":"2026-10-15T21:41:24.960Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-03-27T16:40:15.741Z"},"containers":{"cna":{"title":"ASoC: SOF: ipc4-mtrace: prevent underflow in sof_ipc4_priority_mask_dfs_write()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: SOF: ipc4-mtrace: prevent underflow in sof_ipc4_priority_mask_dfs_write()\n\nThe \"id\" comes from the user.  Change the type to unsigned to prevent\nan array underflow."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f4ea22f7aa7536560097d765be56445933d07e0d","status":"affected","lessThan":"d52f34784e4e2f6e77671a9f104d8a69a3b5d24c","versionType":"git"},{"version":"f4ea22f7aa7536560097d765be56445933d07e0d","status":"affected","lessThan":"ea57680af47587397f5005d7758022441ed66d54","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/ipc4-mtrace.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.1","versionType":"semver"},{"version":"6.1.11","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/ipc4-mtrace.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d52f34784e4e2f6e77671a9f104d8a69a3b5d24c"},{"url":"https://git.kernel.org/stable/c/ea57680af47587397f5005d7758022441ed66d54"}],"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 bug is reached only via write(2) to the local debugfs file sof/.../mtrace/logs_priorities_mask; there is no network, adjacent-protocol, or remote peer path into sof_ipc4_priority_mask_dfs_write().\nAC:L - A single write of a negative id (e.g. \"-1,0xdeadbeef\") deterministically bypasses the signed bounds check and performs the out-of-bounds store; no race, timing window, or layout precondition outside attacker control is required.\nPR:L - The node is mode 0644 with no capability check in the write path, and on SOF-bearing Android/ChromeOS/embedded platforms debugfs is commonly remounted or chowned to non-root service accounts, so a low-privileged local user is a realistic attacker under worst-reasonable deployment scoring.\nUI:N - The attacker opens and writes the already-present debugfs file themselves; no victim action, mount, or interaction is required.\nS:U - The underflow corrupts kernel heap/state within the host kernel's security authority; it is not a VM escape, IOMMU bypass, or other cross-boundary impact.\nC:H - Attacker-controlled out-of-bounds writes into adjacent sof_mtrace_priv fields and nearby slab objects are a memory-corruption primitive that can be leveraged for arbitrary kernel memory disclosure.\nI:H - The attacker chooses both the negative index and the u32 value written, enabling targeted corruption of adjacent state (including pointers such as sdev) and heap metadata suitable for control-flow hijacking.\nA:H - Corrupting adjacent kernel objects or writing to unmapped addresses via large negative indices reliably causes oops/panic, and the write can be repeated at will."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T09:12:16.474Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"6.1.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"6.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2023-52987","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-15T21:32:58.502458Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T21:41:24.960Z"}}]}}}