CVE-2025-20704 Memory corruption in MT6813, MT6835, MT6835T, MT6878, MT6878M, MT6897, MT6899, MT6991, MT8676, MT8678, MT8792, MT8863, MT8873, MT8883

High 8.0 Published Updated

Remote attackers can escalate privileges via out-of-bounds write in MediaTek modem firmware when a device connects to a rogue base station.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-20704?

CVE-2025-20704 is a high-severity memory corruption vulnerability in MediaTek, Inc. MT6813, MT6835, MT6835T, MT6878, MT6878M, MT6897, MT6899, MT6991, MT8676, MT8678, MT8792, MT8863, MT8873, MT8883, published on 1 Sep 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

In Modem, there is a possible out of bounds write due to a missing bounds check. This could lead to remote escalation of privilege, if a UE has connected to a rogue base station controlled by the attacker, with no additional execution privileges needed. User interaction is needed for exploitation. Patch ID: MOLY01516959; Issue ID: MSV-3502.

Weakness: CWE-787

Which versions are affected by CVE-2025-20704?

It affects 2 products.

Products include Mediatek Nr17, Mediatek Nr17r.

How do I fix CVE-2025-20704?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-20704 being exploited?

There is no known exploitation of CVE-2025-20704 in the wild and no public exploit code.

Sources

Also known as A-429908205, ASB-A-429908205, GHSA-ccx6-mqj7-mfjp, M-MOLY01516959.

Is CVE-2025-20704 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free