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

CVE-2026-97910: Linux Kernel ASoC Buffer Overflow Vulnerability

CVE-2026-97910 is a buffer overflow flaw in the Linux kernel ASoC sprd compress driver that allows local users to write beyond allocated buffers. This post covers technical details, affected systems, and fixes.

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-97910 Overview

CVE-2026-97910 is a local buffer overflow in the Linux kernel's Spreadtrum (sprd) ASoC compressed audio driver. The sprd_platform_compr_open() function allocates a fixed 32KB IRAM stage 0 buffer and a 2MB DDR stage 1 buffer. However, sprd_platform_compr_copy() derives copy lengths from the user-controlled runtime->fragment_size and write() count without validating them against the physical allocations. A local user can trigger out-of-bounds writes by configuring an oversized logical buffer through SNDRV_COMPRESS_SET_PARAMS.

Critical Impact

A local unprivileged user with access to the compressed audio device can overflow kernel buffers with fully attacker-controlled data, enabling privilege escalation or kernel memory corruption.

Affected Products

  • Linux kernel builds containing the Spreadtrum (sprd) ASoC compressed audio platform driver
  • Devices using Spreadtrum/Unisoc SoCs with compressed audio support enabled
  • Stable kernel branches prior to the fixes in commits 38a9bb5, 7a4ce92, 8064b73, and ff63b0a

Discovery Timeline

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

Technical Details for CVE-2026-97910

Vulnerability Analysis

The sprd compressed audio driver maintains a two-stage buffering model. Stage 0 is a 32KB IRAM data area used for low-latency staging, and stage 1 is a 2MB DDR data area used as the main playback buffer. The compress ALSA core validates only that fragment_size * fragments does not overflow a u32 via snd_compress_check_input(). That check permits a logical buffer up to roughly 4GB, orders of magnitude larger than either physical allocation.

Because sprd_platform_compr_copy() uses runtime->fragment_size and the user-supplied write() count directly, any fragment_size greater than 32KB causes the stage 0 copy_from_user() to write past the IRAM allocation. Likewise, a buffer_size greater than 2MB causes the wrapping copy at the end of the function to write attacker-controlled bytes past the DDR allocation. No SNDRV_PCM_TRIGGER_START is required; a write() issued in SETUP state reaches the copy callback directly.

Root Cause

The driver advertises a maximum fragment size of 128KB, which never fit the 32KB IRAM area. These capability values appear to have been copied from the qdsp6 driver, which allocates its buffers dynamically from the advertised maxima. The sprd driver uses fixed allocations but inherited the mismatched caps, and set_params() never rejected parameter sets that exceed the physical buffers.

Attack Vector

An attacker opens the compressed audio device, issues SNDRV_COMPRESS_SET_PARAMS with a fragment_size above 32KB or a total buffer_size above 2MB, then calls write() while the stream remains in SETUP state. The subsequent copy_from_user() inside the copy callback writes beyond the fixed IRAM or DDR buffer, producing an out-of-bounds kernel write with fully controlled contents.

No synthetic exploit code is included. See the upstream fixes at Kernel Git Commit 38a9bb5 and Kernel Git Commit 7a4ce92 for the authoritative patch diffs.

Detection Methods for CVE-2026-97910

Indicators of Compromise

  • Unexpected processes opening /dev/snd/compr* nodes on Spreadtrum-based systems without a legitimate audio workload
  • Kernel log entries referencing faults, oops, or KASAN out-of-bounds reports originating from sprd_platform_compr_copy or neighboring ASoC sprd symbols
  • SNDRV_COMPRESS_SET_PARAMS ioctl calls specifying fragment_size above 32KB or buffer_size above 2MB

Detection Strategies

  • Audit ioctl() calls on compressed audio devices and alert on parameter sets that exceed the fixed 32KB fragment or 2MB total buffer thresholds
  • Enable KASAN on test and staging kernels to catch the out-of-bounds write before the issue reaches production hardware
  • Monitor for unprivileged user access to ALSA compressed interfaces on devices where only system audio services should hold them

Monitoring Recommendations

  • Centralize dmesg and kernel audit logs from Spreadtrum/Unisoc fleets and alert on ASoC-related oops signatures
  • Track process execution against the snd_compr_* syscall surface using eBPF or auditd rules
  • Correlate audio device open events with subsequent privilege changes to detect post-exploitation activity

How to Mitigate CVE-2026-97910

Immediate Actions Required

  • Apply the upstream kernel patches referenced below on all affected Spreadtrum/Unisoc devices
  • Restrict access to /dev/snd/compr* to trusted audio service accounts using udev rules and group membership
  • Audit which local users and containers can reach ALSA compressed devices and remove unnecessary access

Patch Information

The fix rejects parameters that do not fit the fixed buffers inside set_params() and reduces the advertised max fragment size to 32KB so the published caps are self-consistent (32K × 64 = 2M, matching the DDR buffer). Apply the stable commits 38a9bb5, 7a4ce92, 8064b73, and ff63b0a to the appropriate stable branch.

Workarounds

  • Disable the Spreadtrum ASoC compressed audio driver (CONFIG_SND_SOC_SPRD) in kernel builds where compressed playback is not required
  • Remove or tighten permissions on /dev/snd/compr* nodes so only the audio service user can open them
  • Block container and sandbox access to ALSA compressed devices until a patched kernel is deployed
bash
# Restrict access to ALSA compressed audio nodes
chown root:audio /dev/snd/compr*
chmod 0660 /dev/snd/compr*

# Verify the running kernel includes the fix commit
strings /boot/vmlinuz-$(uname -r) | grep -i sprd_platform_compr

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.