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

CVE-2026-98159: Linux Kernel mt76 Use-After-Free Vulnerability

CVE-2026-98159 is a use-after-free vulnerability in the Linux kernel mt76 mt7921 driver affecting CLC firmware record validation. Malformed firmware can cause buffer overflows and memory corruption. This article covers technical details, affected versions, impact assessment, 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-98159 Overview

CVE-2026-98159 affects the Linux kernel mt76 driver for MediaTek mt7921 Wi-Fi chipsets. The Country Location Code (CLC) loader trusted the region count and record length values supplied by firmware without validation. A malformed firmware image can position the region table pointer before the firmware buffer, cause the record parsing loop to stall, or allow indexing of phy->clc beyond its allocated bounds. The result is out-of-bounds memory access during driver initialization on affected systems.

Critical Impact

An attacker able to supply a crafted CLC firmware image to the mt76/mt7921 driver can trigger out-of-bounds reads or writes in kernel space, leading to memory corruption or denial of service.

Affected Products

  • Linux kernel mt76 wireless driver
  • MediaTek mt7921 Wi-Fi chipset support code
  • Linux distributions shipping unpatched kernel versions prior to the referenced stable commits

Discovery Timeline

  • 2026-09-25 - CVE-2026-98159 published to the National Vulnerability Database
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-98159

Vulnerability Analysis

The vulnerability resides in the mt76 driver's CLC loader, which parses regulatory configuration records provided by firmware. The loader iterated over a region table and copied record data without verifying that the computed table pointer stayed within the firmware buffer. It also failed to confirm each record length advanced the loop or stayed within the destination phy->clc allocation.

A malformed firmware image can therefore cause three distinct faults. The region table pointer can resolve to an address preceding the firmware buffer. The record loop can read a zero or malformed length that prevents forward progress. The record index can walk past the end of phy->clc during the copy operation.

Each case produces an out-of-bounds memory operation in kernel context. Depending on surrounding memory layout, the fault can trigger a kernel panic, leak adjacent memory contents, or corrupt neighboring structures.

Root Cause

The root cause is missing input validation on untrusted firmware metadata. The CLC parser treated the region count, record length, and offset fields as implicitly trustworthy. No bounds checks compared parsed offsets against the firmware buffer start, buffer end, or the fixed size of phy->clc.

Attack Vector

Exploitation requires the ability to supply a crafted firmware image to the mt76 driver during initialization. This typically means local privileges sufficient to replace firmware blobs in /lib/firmware, or a supply-chain scenario where a tampered firmware package is installed. The flaw does not expose a remote network attack surface.

Technical details of the parsing fix are documented in the upstream commits. See the Kernel Git Commit 3896be0, Kernel Git Commit 3c505e2, Kernel Git Commit 602a950, and Kernel Git Commit 9417c58.

Detection Methods for CVE-2026-98159

Indicators of Compromise

  • Unexpected kernel oops or panic messages referencing mt7921_mcu_set_clc, mt7921_load_clc, or the mt76 module during Wi-Fi driver initialization
  • Modified or unsigned CLC firmware blobs under /lib/firmware/mediatek/ that do not match distribution checksums
  • Repeated driver load failures or system reboots after firmware package changes

Detection Strategies

  • Compare installed firmware file hashes against vendor-published reference values to detect tampered CLC images
  • Monitor kernel ring buffer output (dmesg) for mt76 and mt7921 error traces indicating malformed region tables or truncated records
  • Audit package manager logs for unauthorized updates to linux-firmware or MediaTek firmware packages

Monitoring Recommendations

  • Centralize kernel logs from Linux endpoints with MediaTek Wi-Fi hardware and alert on mt76 driver faults
  • Track changes to /lib/firmware using file integrity monitoring to catch firmware replacement
  • Inventory kernel versions across the fleet and flag hosts still running pre-patch builds

How to Mitigate CVE-2026-98159

Immediate Actions Required

  • Update the Linux kernel to a stable release containing the referenced mt76 CLC validation commits
  • Verify that only vendor-signed linux-firmware packages are installed on systems using mt7921 hardware
  • Restrict write access to /lib/firmware to the root user and audit historical changes

Patch Information

The fix adds explicit bounds checks that validate the CLC region table pointer, record length progression, and phy->clc destination size before any dereference or copy. The patch is available in the upstream Linux stable tree via commits 3896be0, 3c505e2, 602a950, and 9417c58. Apply the kernel update provided by your distribution maintainer.

Workarounds

  • Blacklist the mt7921e or mt7921u module on systems where the Wi-Fi adapter is unused until the kernel can be patched
  • Replace affected MediaTek Wi-Fi adapters with hardware whose driver is not impacted, where operational requirements permit
  • Enforce signed firmware loading via kernel lockdown mode to reduce the risk of tampered CLC images being accepted
bash
# Blacklist the mt7921 driver until the kernel is patched
echo "blacklist mt7921e" | sudo tee /etc/modprobe.d/blacklist-mt7921.conf
echo "blacklist mt7921u" | sudo tee -a /etc/modprobe.d/blacklist-mt7921.conf
sudo update-initramfs -u

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.