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

CVE-2026-97579: Linux Kernel Media Buffer Overflow Vulnerability

CVE-2026-97579 is a buffer overflow flaw in the Linux kernel MediaTek video codec driver affecting AV1 tile processing. Attackers could exploit improper bounds checking during tile array copies. This article covers technical details, affected kernel versions, security impact, and mitigation strategies.

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

CVE-2026-97579 is an out-of-bounds write vulnerability in the Linux kernel's MediaTek video codec (vcodec) driver. The flaw resides in vdec_av1_slice_setup_tile(), which copies tile_cols + 1 and tile_rows + 1 entries from the AV1 bitstream tile_info structure into the fixed-size mi_col_starts[] and mi_row_starts[] arrays. The code does not bound the copy to the array capacity, so a crafted bitstream can overflow kernel memory. Local users with permission to feed video data to the MediaTek decoder can trigger memory corruption in kernel context.

Critical Impact

A local attacker with low privileges can corrupt kernel memory through a crafted AV1 bitstream, potentially leading to privilege escalation, code execution, or system crash.

Affected Products

  • Linux kernel builds including the MediaTek vcodec AV1 decoder driver
  • Devices using MediaTek SoCs with hardware AV1 decode support
  • Distributions shipping affected media/mediatek/vcodec sources prior to the fix commits

Discovery Timeline

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

Technical Details for CVE-2026-97579

Vulnerability Analysis

The MediaTek vcodec driver implements AV1 slice setup through vdec_av1_slice_setup_tile(). This function reads tile layout information from a user-supplied AV1 bitstream and copies tile-start offsets into two fixed-size kernel arrays: mi_col_starts[] and mi_row_starts[]. The copy length is derived directly from the bitstream fields tile_cols and tile_rows, incremented by one, without validation against the destination array capacity.

AV1 permits tile counts that exceed the driver's static array sizes. When the decoder processes such a stream, the copy writes past the array bounds into adjacent kernel memory. The fix commits bound the copy length to the array capacity, preventing the overflow.

The attack surface requires local access and the ability to submit video frames to the decoder, typically through the V4L2 interface. Successful exploitation corrupts kernel memory with attacker-controlled values from the bitstream, which can be leveraged for privilege escalation on affected MediaTek devices.

Root Cause

The root cause is missing bounds enforcement on an untrusted length field. vdec_av1_slice_setup_tile() trusts tile_cols and tile_rows from the parsed bitstream and uses them as the copy count into fixed-size kernel arrays. This is a classic out-of-bounds write pattern [CWE-787] arising from improper input validation of a count derived from attacker-controlled data.

Attack Vector

Exploitation requires local access with permission to open the MediaTek V4L2 decoder device. An attacker constructs an AV1 bitstream whose tile_info declares tile counts large enough to exceed the capacity of mi_col_starts[] or mi_row_starts[]. Submitting the stream to the decoder causes the kernel to copy attacker-chosen tile-start values past the array boundary, overwriting adjacent kernel structures. No user interaction beyond invoking the decoder is required.

No verified public proof-of-concept code is available. The vulnerability mechanism is documented in the upstream Linux kernel patch commits referenced below.

Detection Methods for CVE-2026-97579

Indicators of Compromise

  • Kernel oops or panic messages referencing vdec_av1_slice_setup_tile, mi_col_starts, or mi_row_starts
  • Unexpected crashes of the vcodec driver or MediaTek video decoder processes during AV1 playback
  • KASAN reports flagging slab-out-of-bounds writes within the MediaTek vcodec module on affected kernels

Detection Strategies

  • Audit installed kernel versions on MediaTek-based systems against the fix commits (37bef21, 7992059, ad47a25, eb0ea38) in the stable tree
  • Monitor dmesg and journald for faults originating in drivers/media/platform/mediatek/vcodec/
  • Enable KASAN in test or canary builds to catch the overflow before deployment

Monitoring Recommendations

  • Collect kernel crash telemetry and correlate crashes to processes that opened /dev/video* V4L2 decoder nodes
  • Track execution of untrusted AV1 content by sandboxed media applications and flag repeated decoder faults from the same source
  • Centralize kernel logs in a SIEM and alert on signatures matching MediaTek vcodec out-of-bounds patterns

How to Mitigate CVE-2026-97579

Immediate Actions Required

  • Apply the upstream Linux kernel patches referenced in the stable commits as soon as vendor builds become available
  • Restrict access to MediaTek V4L2 decoder device nodes to trusted users and services only
  • Avoid processing AV1 content from untrusted sources on unpatched MediaTek devices

Patch Information

The fix bounds the tile-start copy to the destination array capacity in vdec_av1_slice_setup_tile(). Patches are available in the Linux stable tree at Linux Kernel Commit 37bef21, Linux Kernel Commit 7992059, Linux Kernel Commit ad47a25, and Linux Kernel Commit eb0ea38. Device vendors should rebase their kernel trees and ship updated images to downstream products.

Workarounds

  • Disable the MediaTek AV1 hardware decoder and fall back to software decoding where feasible
  • Tighten file permissions on /dev/video* nodes so only privileged media services can submit streams
  • Use mandatory access control policies (SELinux, AppArmor) to confine applications that invoke the decoder
bash
# Restrict access to MediaTek V4L2 decoder device nodes
sudo chown root:video /dev/video*
sudo chmod 0660 /dev/video*

# Verify running kernel version against patched builds
uname -r

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.