Skip to main content
Vulnerability Database/CVE-2026-97414

CVE-2026-97414: Linux Kernel MediaTek AFE NULL Pointer Vulnerability

CVE-2026-97414 is a use-after-free flaw in Linux kernel MediaTek mt8365-afe-pcm driver that may cause NULL pointer dereferences during suspend operations. This article covers technical details, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-97414 Overview

CVE-2026-97414 affects the Linux kernel's ASoC (ALSA System on Chip) driver for the MediaTek MT8365 audio front-end (AFE). The mt8365_afe_suspend() function allocates a register backup buffer using devm_kcalloc() but fails to validate the returned pointer before dereferencing it. When memory allocation fails, the function proceeds to access afe->reg_back_up[i], triggering a NULL pointer dereference during system suspend. The upstream fix adds the missing NULL check, returns -ENOMEM on allocation failure, and propagates the return value through mt8365_afe_dev_runtime_suspend() so the suspended state is not incorrectly updated.

Critical Impact

A kernel NULL pointer dereference during the audio driver suspend path can crash the kernel on MediaTek MT8365-based systems when memory is constrained.

Affected Products

  • Linux kernel versions containing the mt8365-afe-pcm ASoC driver prior to the fix
  • Systems using MediaTek MT8365 SoC audio hardware
  • Downstream kernels that have not backported commits 1094d83, b8948ac, or f87707b

Discovery Timeline

  • 2026-09-24 - CVE-2026-97414 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97414

Vulnerability Analysis

The defect resides in the MediaTek MT8365 ASoC PCM driver, specifically in the suspend callback used to preserve register state across power transitions. The mt8365_afe_suspend() function calls devm_kcalloc() to allocate a buffer that will hold saved register values. The returned pointer is used immediately in a loop that reads hardware registers into afe->reg_back_up[i] without first verifying the allocation succeeded.

When the kernel is under memory pressure, devm_kcalloc() can return NULL. Dereferencing this NULL pointer inside the suspend path causes a kernel oops. Because the fault occurs during device suspend, recovery requires a reboot and may interrupt orderly system shutdown or runtime power management on MediaTek MT8365-based devices.

Root Cause

The root cause is a missing allocation-failure check, categorized as a NULL Pointer Dereference. Kernel allocation APIs can fail, and callers must validate return values before use. The driver also did not propagate the failure state to mt8365_afe_dev_runtime_suspend(), so even if the allocation path were handled, the runtime PM core would incorrectly mark the device as suspended.

Attack Vector

The vulnerability is not remotely exploitable. Triggering the NULL dereference requires the suspend code path to execute while kernel memory allocation fails. A local attacker able to induce memory pressure on a MediaTek MT8365 system that initiates audio driver suspend could cause a denial of service through a kernel crash. The impact is limited to availability on affected hardware.

No verified public exploit code is available. See the upstream patches for technical details: Kernel Git Commit 1094d83, Kernel Git Commit b8948ac, and Kernel Git Commit f87707b.

Detection Methods for CVE-2026-97414

Indicators of Compromise

  • Kernel oops or panic messages referencing mt8365_afe_suspend in the call trace
  • BUG: unable to handle kernel NULL pointer dereference entries in dmesg or /var/log/kern.log during suspend or runtime PM transitions
  • Unexpected system reboots or hangs on MediaTek MT8365 devices coinciding with audio suspend events

Detection Strategies

  • Enumerate running kernel versions across MediaTek MT8365-based fleets and compare against the fixed upstream commits
  • Monitor kernel ring buffers for faults originating in sound/soc/mediatek/mt8365/ modules
  • Correlate audio subsystem suspend failures with memory-pressure events reported by the OOM killer

Monitoring Recommendations

  • Forward kern.log and dmesg output to a centralized log platform and alert on NULL pointer dereference signatures
  • Track runtime PM state transitions for audio devices to detect repeated suspend failures
  • Include MediaTek MT8365 kernel builds in vulnerability scan baselines and flag any unpatched images

How to Mitigate CVE-2026-97414

Immediate Actions Required

  • Apply the upstream Linux kernel patches that add the NULL check in mt8365_afe_suspend() and propagate the error to mt8365_afe_dev_runtime_suspend()
  • Rebuild and redeploy kernels for all MediaTek MT8365-based devices once the fix is integrated
  • Prioritize systems that experience memory pressure or frequent suspend/resume cycles

Patch Information

The fix is distributed across three upstream stable commits: Kernel Git Commit 1094d83, Kernel Git Commit b8948ac, and Kernel Git Commit f87707b. The patch adds the allocation-failure check, returns -ENOMEM after disabling the main clock, and ensures the suspended state is not updated on failure.

Workarounds

  • Disable the MediaTek MT8365 ASoC audio driver on systems that do not require audio functionality
  • Reduce memory pressure on affected devices to lower the probability of allocation failure in the suspend path
  • Avoid aggressive runtime power management policies for the audio subsystem until the patch is applied

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.