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

CVE-2026-97580: Linux Kernel HEVC Privilege Escalation

CVE-2026-97580 is a privilege escalation vulnerability in the Linux kernel's rkvdec media driver affecting HEVC processing. This article covers the technical details, potential impact, and recommended 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-97580 Overview

CVE-2026-97580 is an out-of-bounds write vulnerability in the Linux kernel's Rockchip Video Decoder (rkvdec) driver. The flaw resides in the HEVC (High Efficiency Video Coding) picture parameter set (PPS) handling code. Functions compute_tiles_uniform() and compute_tiles_non_uniform() iterate over tile counts derived from the untrusted PPS without bounds checking. Additionally, assemble_hw_pps() indexes priv_tbl->param_set[] using pic_parameter_set_id from the same untrusted input. A local user with permissions to submit video decode jobs can trigger writes beyond the hardware table boundaries, leading to kernel memory corruption and potential privilege escalation.

Critical Impact

Local attackers submitting crafted HEVC streams to the rkvdec driver can corrupt kernel memory, enabling privilege escalation or system compromise on affected Rockchip-based Linux systems.

Affected Products

  • Linux kernel versions containing the rkvdec HEVC decoder driver
  • Rockchip-based platforms using the media/rkvdec subsystem
  • Distributions shipping the vulnerable drivers/staging/media/rkvdec module

Discovery Timeline

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

Technical Details for CVE-2026-97580

Vulnerability Analysis

The vulnerability affects the Rockchip Video Decoder driver's HEVC tile processing logic. When userspace submits an HEVC bitstream, the driver parses the PPS and passes attacker-controlled values directly to tile computation routines. The functions compute_tiles_uniform() and compute_tiles_non_uniform() loop num_tile_columns_minus1 + 1 and num_tile_rows_minus1 + 1 times respectively. Each iteration writes a COLUMN_WIDTH or ROW_HEIGHT register entry into a fixed-size hardware table.

Separately, assemble_hw_pps() uses pic_parameter_set_id as an array index into priv_tbl->param_set[]. Without validation, these values can exceed the array capacity, producing out-of-bounds writes into adjacent kernel memory [CWE-787].

Root Cause

The root cause is missing input validation on fields parsed from untrusted V4L2 HEVC control structures. The driver trusts the raw PPS values rather than using the bounded helpers v4l2_hevc_pps_num_tile_columns() and v4l2_hevc_pps_num_tile_rows(). The fix clamps loop counts to array capacity and rejects PPS submissions with out-of-range pic_parameter_set_id values before indexing.

Attack Vector

Exploitation requires local access and permission to open the /dev/videoX device node associated with the rkvdec decoder. An attacker crafts a V4L2 HEVC control payload with oversized tile counts or an invalid pic_parameter_set_id and submits it through the standard V4L2 ioctl interface. The resulting hardware register writes overflow kernel buffers, corrupting adjacent data structures. See the Kernel Git Commit Fix for technical details on the vulnerable code paths.

Detection Methods for CVE-2026-97580

Indicators of Compromise

  • Unexpected kernel oops or panic messages referencing rkvdec, compute_tiles_uniform, compute_tiles_non_uniform, or assemble_hw_pps
  • Kernel log entries showing memory corruption or KASAN reports in the drivers/staging/media/rkvdec module
  • Unprivileged processes accessing /dev/video* nodes bound to the rkvdec driver outside normal media workflows

Detection Strategies

  • Enable Kernel Address Sanitizer (KASAN) on test systems to catch out-of-bounds writes in the HEVC decode path
  • Monitor process execution for non-media applications issuing V4L2 ioctls to Rockchip decoder devices
  • Audit kernel version strings across Rockchip-based fleet to identify unpatched hosts

Monitoring Recommendations

  • Collect kernel ring buffer logs centrally and alert on crashes in rkvdec or v4l2 symbols
  • Track access to /dev/video* nodes using auditd rules on affected hardware platforms
  • Baseline normal V4L2 ioctl patterns and flag anomalous HEVC control submissions

How to Mitigate CVE-2026-97580

Immediate Actions Required

  • Apply the upstream kernel patches referenced in the stable tree commits as soon as distribution updates are available
  • Restrict access to /dev/video* device nodes to trusted users and media service accounts only
  • Inventory Rockchip-based systems running the rkvdec driver and prioritize patching

Patch Information

The fix is available in the mainline and stable Linux kernel trees. See the Kernel Git Commit Fix and the related Kernel Git Commit Update. The patch introduces bounded helpers for tile loops and validates pic_parameter_set_id before indexing priv_tbl->param_set[].

Workarounds

  • Unload the rkvdec kernel module on systems that do not require hardware HEVC decoding using modprobe -r rkvdec
  • Tighten permissions on /dev/video* nodes via udev rules to prevent unprivileged access
  • Blacklist the module in /etc/modprobe.d/ on servers that have no media decode workload
bash
# Configuration example: blacklist rkvdec on non-media systems
echo "blacklist rkvdec" | sudo tee /etc/modprobe.d/blacklist-rkvdec.conf
sudo modprobe -r rkvdec

# Restrict device access via udev
echo 'KERNEL=="video[0-9]*", GROUP="video", MODE="0660"' | \
  sudo tee /etc/udev/rules.d/99-rkvdec-restrict.rules
sudo udevadm control --reload-rules

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.