LiveActive security incident?Get immediate response
CVE Record

CVE-2025-38662: ASoC: mediatek: mt8365-dai-i2s: pass correct size to mt8365_dai_set_priv

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]

HighCVSS 7.1Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

A size mismatch in the Linux kernel’s MediaTek MT8365 audio driver can make the kernel read beyond allocated data. This may expose sensitive information or crash an affected device. The issue is most relevant to Linux systems using this specific audio component, rather than general-purpose Linux installations without it.

Executive priority

Prioritize confirmation and patching for exposed MT8365-based embedded or appliance fleets. Treat this as a targeted high-severity kernel issue, not an internet-wide emergency. Escalate systems that process sensitive data or require high availability, because the stated impacts include information disclosure and device disruption.

Technical view

The MT8365 ASoC I2S registration path passed the size of struct mt8365_afe_private to mt8365_dai_set_priv instead of the smaller per-I2S private structure. The resulting memcpy caused a KASAN-detected global out-of-bounds access during driver probing. The published CVSS 3.1 score is 7.1, requiring local access and low privileges.

Likely exposure

Exposure is limited to affected Linux kernel versions where the MediaTek MT8365 ASoC audio driver is present and exercised. The bundle lists affected version points including 6.12, 6.12.41, 6.15.9, and 6.16, but does not clearly express complete version-range boundaries. Confirm status through the relevant distribution or device vendor.

Exploitation context

The supplied CVSS vector describes a local, low-privilege attack requiring no user interaction, with potential confidentiality and availability impact. The source bundle provides a KASAN failure trace but no public exploit evidence. The CVE is not listed as known exploited in the supplied KEV status, so active exploitation should not be assumed.

Researcher notes

The evidence establishes an incorrect structure-size argument and a global out-of-bounds access during mt8365_afe_pcm_dev_probe. The bundle does not identify a CWE, demonstrate attacker-controlled data, or explain how a low-privilege user reaches the probe path. Consequently, CVSS impact is source-reported, while practical exploitability remains insufficiently documented.

Mitigation direction

  • Update to a vendor-supported kernel release containing the applicable stable fix.
  • Confirm embedded-device or distribution advisories before interpreting the listed version points.
  • Prioritize devices that include and use the MediaTek MT8365 ASoC driver.
  • If updates are unavailable, seek vendor guidance for supported component-specific mitigations.

Validation and detection

  • Inventory kernel versions on systems using MediaTek MT8365 audio hardware.
  • Determine whether the snd_soc_mt8365_pcm driver is built, loaded, or exercised.
  • Verify vendor changelogs or source trees contain an applicable referenced fix commit.
  • After updating, retest driver initialization and review logs for KASAN or kernel faults.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2025-38662 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.1 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
3Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.1CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H1.85.2Linux

Vulnerability scoring details

Base CVSS 3.1 score

7.1High
CVSS 3.1 vector shape for CVE-2025-38662Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinux402bbb13a195caa83b3279ebecdabfb11ddee084, 402bbb13a195caa83b3279ebecdabfb11ddee084, 402bbb13a195caa83b3279ebecdabfb11ddee084unaffected
LinuxLinux6.12, 0, 6.12.41, 6.15.9, 6.16affected
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.