Skip to main content

MediaTek WLAN Driver CVE-2025-20717

HIGH
Stack-based Buffer Overflow (CWE-121)
2025-10-14 security@mediatek.com
7.8
CVSS 3.1 · Vendor: mediatek
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain System privilege on device
  2. Delivery
    Invoke vulnerable wlan AP driver interface
  3. Exploit
    Trigger stack out-of-bounds write via bad bounds check
  4. Execution
    Corrupt kernel memory
  5. Impact
    Escalate to kernel-level control

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires local access to a device running the affected MediaTek wlan AP driver (MediaTek Software Development Kit, or OpenWrt 19.07.0 / 21.02.0 on MediaTek-based hardware) AND the attacker must ALREADY hold System privilege on that device before triggering the bug. No user interaction is required (UI:N). The attack is reachable only through the local wlan AP driver interface - it is not remotely exploitable over the network. The pre-existing System-privilege requirement is the dominant limiting factor: this is a second-stage escalation primitive, not an initial-access vulnerability.

Impact

This is a genuine but conditional local privilege-escalation flaw, not a remote emergency. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 7.8 HIGH) describes a local attacker with low complexity and no user interaction achieving full confidentiality/integrity/availability impact. The critical qualifier is in the description: exploitation requires the attacker to 'have already obtained the System privilege.' This is a strong limiting factor - System is already a highly privileged context on Android/embedded platforms, so this bug escalates System to kernel/driver level rather than granting an unprivileged user a foothold. There is a tension worth flagging: MediaTek rated PR:L, but a prerequisite of pre-existing System privilege is more honestly PR:H, which would lower the real-world score. No EPSS score, no CISA KEV listing, and no public POC were provided, so exploitation status is: no public exploit identified at time of analysis. No SSVC data was supplied. Overall this is a defense-in-depth kernel-hardening fix that matters for device integrity but requires a significant pre-existing compromise, placing it below internet-facing criticals in patch priority.

Exploit ScenarioDerived

An attacker who has already compromised a MediaTek-based access point or router to the point of holding System privilege (e.g., via a prior app/service compromise) invokes the vulnerable wlan AP driver path with crafted input that fails the incorrect bounds check, triggering a stack-based out-of-bounds write. This corrupts kernel/driver memory to escalate from System to full kernel-level control without any user interaction. No public exploit code is known at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 01, 2026

Local privilege escalation in the MediaTek WLAN AP driver (shipped via the MediaTek Software Development Kit and integrated into OpenWrt 19.07.0 and 21.02.0 builds on MediaTek-based hardware) allows an attacker who already holds System privilege on the device to trigger a stack-based out-of-bounds write and gain elevated code execution. Exploitation requires local access to the affected driver interface and a pre-existing System-privilege foothold, so this is a second-stage escalation primitive rather than an initial-access or remote vulnerability; user interaction is not required. No public exploit code or confirmed active exploitation was identified at time of analysis, and the vendor has published a fix (Patch ID WCNCR00419946) in its October 2025 product security bulletin.

RemediationAI

The primary fix is the vendor-supplied driver update identified as Patch ID WCNCR00419946 in MediaTek's October 2025 product security bulletin (https://corp.mediatek.com/product-security-bulletin/October-2025); apply it through your silicon/module vendor or download the corresponding patched SDK drop and rebuild firmware, then publish updated images for OpenWrt 19.07.0 and 21.02.0 devices running MediaTek wireless hardware - since OpenWrt 19.07.x and 21.02.x are end-of-life branches, the practical route is to rebuild on a supported OpenWrt release once the fixed driver/firmware blob lands, as no in-place package update path is guaranteed. Because the bug is only reachable from an already System-privileged local context, the most effective compensating controls are to prevent untrusted code from ever reaching that privilege level: do not grant System/root to non-administrative users or to container/jail workloads on the AP, and enforce that custom applications run as unprivileged users rather than the Wi-Fi driver's context. Where AP functionality is not required, disabling the wireless AP mode or the affected MediaTek wireless interface removes the attack surface entirely, at the cost of losing Wi-Fi service on that radio; restricting local management access (disabling unused debug interfaces and serial/console logins, tightening SSH/HTTP admin exposure) reduces the chance an attacker can acquire the System foothold the exploit depends on, though it does not remove the underlying driver bug. Note that KEV status is not confirmed for this CVE and no public exploit code was identified at time of analysis, so remediation can be scheduled in a normal patch cycle rather than treated as an emergency, but the driver update should still be tracked to completion because the flaw is a memory-corruption primitive whose weaponization potential increases once a pre-existing System-privilege vector is found.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a classic CWE-121 stack-based buffer overflow in the MediaTek wlan AP (access point) driver: a length or index value reaching a driver routine is not validated against the size of a destination buffer on the stack, so a crafted local request causes an out-of-bounds write past the buffer boundary. The affected component is the wireless AP driver used with MediaTek Wi-Fi silicon, distributed both as part of the MediaTek Software Development Kit (CPE cpe:2.3:a:mediatek:software_development_kit) and as the driver/firmware stack bundled into OpenWrt 19.07.0 and 21.02.0 images for MediaTek-based access points and routers (CPE cpe:2.3:o:openwrt:openwrt:19.07.0 and cpe:2.3:o:openwrt:openwrt:21.02.0). Because the vulnerable code sits in the kernel-side AP driver, a successful write can corrupt adjacent kernel stack data and be pivoted into code execution at the driver's privilege level, which is why the impact is scored High across confidentiality, integrity and availability. The vendor bulletin issued under Patch ID WCNCR00419946 and issue ID MSV-3582 references the AP driver configuration paths; the publicly published CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) rates the privilege prerequisite as Low, whereas our independent assessment re-scores it as High (PR:H) because the bug is only reachable once the caller already has System privilege on the device, making the practical exploitation surface considerably narrower than the vendor score implies.

Know when Openwrt gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mediatek) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 6.7 MEDIUM

Local driver interface (AV:L), no user interaction (UI:N); PR:H because the description requires the attacker to already hold System privilege, and full C/I/A impact on kernel/driver.

3.1 AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mediatek).

CVSS VectorVendor: mediatek

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

In wlan AP driver, there is a possible out of bounds write due to an incorrect bounds check. This could lead to local escalation of privilege if a malicious actor has already obtained the System privilege. User interaction is not needed for exploitation. Patch ID: WCNCR00419946; Issue ID: MSV-3582.

Executive ViewAI

Why It Matters

A privilege-escalation flaw in the MediaTek WLAN AP driver affects network devices running OpenWrt 19.07.0 and 21.02.0 on MediaTek-based hardware, allowing someone who already holds System-level access on the device to escalate to elevated code execution. Because this is a second-stage escalation rather than a remote entry point, the direct risk to the organization is concentrated in already-compromised or insider-accessible network hardware, but it materially weakens the containment barrier that leadership relies on to limit the blast radius of any initial intrusion. With no patched OpenWrt build identified for these widely deployed releases, affected devices should be treated as unmitigated and prioritized for replacement or compensating controls.

Business Impact: Medium
Compensating Controls

No vendor-released patched build was identified for OpenWrt 19.07.0 and 21.02.0 deployments at time of analysis; interim mitigations are to eliminate or tightly restrict pre-existing System-privilege access on affected devices, disable unused local management and driver interfaces, segment affected hardware onto isolated management networks, and monitor for local privilege changes, pending availability of the MediaTek fix identified as WCNCR00419946 in the October 2025 product security bulletin.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Medium
MediaTek wlan SDK ships in many consumer routers and OpenWrt builds
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

Affected Products (CPE)CVE.org

cpe:2.3:a:mediatek:software_development_kit:*:*:*:*:*:*:*:*
cpe:2.3:o:openwrt:openwrt:19.07.0:-:*:*:*:*:*:*
cpe:2.3:o:openwrt:openwrt:21.02.0:-:*:*:*:*:*:*
CVE-2024-20017 CRITICAL POC
9.8 Mar 04

In wlan service, there is a possible out of bounds write due to improper input validation. Rated critical severity (CVSS

CVE-2020-7982 HIGH POC
8.1 Mar 16

An issue was discovered in OpenWrt 18.06.0 to 18.06.6 and 19.07.0, and LEDE 17.01.0 to 17.01.7. Rated high severity (CVS

CVE-2019-15513 HIGH POC
7.5 Aug 23

An issue was discovered in OpenWrt libuci (aka Library for the Unified Configuration Interface) before 15.05.1 as used o

CVE-2018-19630 MEDIUM POC
6.1 Nov 28

cgi_handle_request in uhttpd in OpenWrt through 18.06.1 and LEDE through 17.01 has unauthenticated reflected XSS via the

CVE-2025-20654 CRITICAL
9.8 Apr 07

In wlan service, there is a possible out of bounds write due to an incorrect bounds check. Rated critical severity (CVSS

CVE-2019-5102 MEDIUM POC
5.9 Nov 18

An exploitable information leak vulnerability exists in the ustream-ssl library of OpenWrt, versions 18.06.4 and 15.05.1

CVE-2019-5101 MEDIUM POC
5.9 Nov 18

An exploitable information leak vulnerability exists in the ustream-ssl library of OpenWrt, versions 18.06.4 and 15.05.1

CVE-2025-20674 CRITICAL
9.8 Jun 02

Remote privilege escalation in Android WLAN AP driver via packet injection.

CVE-2025-20683 CRITICAL
9.8 Jul 08

In wlan AP driver, there is a possible out of bounds write due to an incorrect bounds check. This could lead to local es

CVE-2025-20682 CRITICAL
9.8 Jul 08

In wlan AP driver, there is a possible out of bounds write due to an incorrect bounds check. This could lead to local es

CVE-2025-20681 CRITICAL
9.8 Jul 08

In wlan AP driver, there is a possible out of bounds write due to an incorrect bounds check. This could lead to local es

CVE-2026-30872 CRITICAL
9.8 Mar 19

Remote code execution in OpenWrt's mDNS daemon (versions before 24.10.6 and 25.12.1) allows unauthenticated attackers to

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy