# CVE-2025-38662: ASoC: mediatek: mt8365-dai-i2s: pass correct size to mt8365\_dai\_set\_priv

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-08-22T16:02:55.078Z
- **Modified:** 2026-08-05T12:03:49.326Z

## Who should check

- Anyone running Linux \>= 402bbb13a195caa83b3279ebecdabfb11ddee084, \< 1dc0ed16cfbc3c28a07a89904071cfa802fdcee1; \>= 402bbb13a195caa83b3279ebecdabfb11ddee084, \< 6e621dd99c57db916842865debaa65f20bbd6d8e; \>= 402bbb13a195caa83b3279ebecdabfb11ddee084, \< 6bea85979d05470e6416a2bb504a9bcd9178304c
- Anyone running Linux 6.12

## Description

In the Linux kernel, the following vulnerability has been resolved:

ASoC: mediatek: mt8365-dai-i2s: pass correct size to mt8365\_dai\_set\_priv

Given mt8365\_dai\_set\_priv allocate priv\_size space to copy priv\_data which
means we should pass mt8365\_i2s\_priv\[i\] or "struct mtk\_afe\_i2s\_priv"
instead of afe\_priv which has the size of "struct mt8365\_afe\_private".

Otherwise the KASAN complains about.

\[   59.389765\] BUG: KASAN: global-out-of-bounds in mt8365\_dai\_set\_priv+0xc8/0x168 \[snd\_soc\_mt8365\_pcm\]
...
\[   59.394789\] Call trace:
\[   59.395167\]  dump\_backtrace+0xa0/0x128
\[   59.395733\]  show\_stack+0x20/0x38
\[   59.396238\]  dump\_stack\_lvl+0xe8/0x148
\[   59.396806\]  print\_report+0x37c/0x5e0
\[   59.397358\]  kasan\_report+0xac/0xf8
\[   59.397885\]  kasan\_check\_range+0xe8/0x190
\[   59.398485\]  asan\_memcpy+0x3c/0x98
\[   59.399022\]  mt8365\_dai\_set\_priv+0xc8/0x168 \[snd\_soc\_mt8365\_pcm\]
\[   59.399928\]  mt8365\_dai\_i2s\_register+0x1e8/0x2b0 \[snd\_soc\_mt8365\_pcm\]
\[   59.400893\]  mt8365\_afe\_pcm\_dev\_probe+0x4d0/0xdf0 \[snd\_soc\_mt8365\_pcm\]
\[   59.401873\]  platform\_probe+0xcc/0x228
\[   59.402442\]  really\_probe+0x340/0x9e8
\[   59.402992\]  driver\_probe\_device+0x16c/0x3f8
\[   59.403638\]  driver\_probe\_device+0x64/0x1d8
\[   59.404256\]  driver\_attach+0x1dc/0x4c8
\[   59.404840\]  bus\_for\_each\_dev+0x100/0x190
\[   59.405442\]  driver\_attach+0x44/0x68
\[   59.405980\]  bus\_add\_driver+0x23c/0x500
\[   59.406550\]  driver\_register+0xf8/0x3d0
\[   59.407122\]  platform\_driver\_register+0x68/0x98
\[   59.407810\]  mt8365\_afe\_pcm\_driver\_init+0x2c/0xff8 \[snd\_soc\_mt8365\_pcm\]

## Affected and fixed versions

- Linux: \>= 402bbb13a195caa83b3279ebecdabfb11ddee084, \< 1dc0ed16cfbc3c28a07a89904071cfa802fdcee1; \>= 402bbb13a195caa83b3279ebecdabfb11ddee084, \< 6e621dd99c57db916842865debaa65f20bbd6d8e; \>= 402bbb13a195caa83b3279ebecdabfb11ddee084, \< 6bea85979d05470e6416a2bb504a9bcd9178304c (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- Upgrade Linux to 6bea85979d05470e6416a2bb504a9bcd9178304c or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38662. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38662.md
Affected: Linux >= 402bbb13a195caa83b3279ebecdabfb11ddee084, < 1dc0ed16cfbc3c28a07a89904071cfa802fdcee1; >= 402bbb13a195caa83b3279ebecdabfb11ddee084, < 6e621dd99c57db916842865debaa65f20bbd6d8e; >= 402bbb13a195caa83b3279ebecdabfb11ddee084, < 6bea85979d05470e6416a2bb504a9bcd9178304c; Linux 6.12
Fixed in: Linux 1dc0ed16cfbc3c28a07a89904071cfa802fdcee1, Linux 6e621dd99c57db916842865debaa65f20bbd6d8e, Linux 6bea85979d05470e6416a2bb504a9bcd9178304c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38662 being exploited?

There is no confirmed exploitation: CVE-2025-38662 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38662?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38662?

Linux \>= 402bbb13a195caa83b3279ebecdabfb11ddee084, \< 1dc0ed16cfbc3c28a07a89904071cfa802fdcee1; \>= 402bbb13a195caa83b3279ebecdabfb11ddee084, \< 6e621dd99c57db916842865debaa65f20bbd6d8e; \>= 402bbb13a195caa83b3279ebecdabfb11ddee084, \< 6bea85979d05470e6416a2bb504a9bcd9178304c; Linux 6.12.

### Is there a fix for CVE-2025-38662?

Yes. Fixed in Linux 1dc0ed16cfbc3c28a07a89904071cfa802fdcee1, Linux 6e621dd99c57db916842865debaa65f20bbd6d8e, Linux 6bea85979d05470e6416a2bb504a9bcd9178304c. Upgrade Linux to 6bea85979d05470e6416a2bb504a9bcd9178304c or later.

### How do I check if I'm affected by CVE-2025-38662?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/1dc0ed16cfbc3c28a07a89904071cfa802fdcee1>
- patch: <https://git.kernel.org/stable/c/6e621dd99c57db916842865debaa65f20bbd6d8e>
- patch: <https://git.kernel.org/stable/c/6bea85979d05470e6416a2bb504a9bcd9178304c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38662>

HTML: <https://flawdb.com/CVE-2025-38662> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38662>
