CyberSecBulletin
CVE-2024-20057NVD status: Analyzed

MT6761, MT6765, MT6768, MT6779, MT6781…: Out-of-bounds Write

CVE-2024-20057 is a high-severity out-of-bounds write vulnerability in MT6761, MT6765, MT6768, MT6779, MT6781, MT6785, MT6789, MT6833, MT6835, MT6853, MT6855, MT6873, MT6877, MT6879, MT6883, MT6885, MT6886, MT6889, MT6893, MT6895, MT6897, MT6983, MT8321, MT8385, MT8755, MT8765, MT8766, MT8768, MT8771, MT8781, MT8786, MT8788, MT8789, MT8791T, MT8792, MT8795T, MT8796 from MediaTek, with a CVSS 3.1 base score of 7.2 out of 10. It can be exploited remotely over the network by an attacker with administrator privileges, without any action from a user. Affected MT6761, MT6765, MT6768, MT6779, MT6781, MT6785, MT6789, MT6833, MT6835, MT6853, MT6855, MT6873, MT6877, MT6879, MT6883, MT6885, MT6886, MT6889, MT6893, MT6895, MT6897, MT6983, MT8321, MT8385, MT8755, MT8765, MT8766, MT8768, MT8771, MT8781, MT8786, MT8788, MT8789, MT8791T, MT8792, MT8795T, MT8796 versions: Android 12.0, 13.0, 14.0. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 0.29% chance of exploitation within 30 days, which is low compared with other CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Check which version of MT6761, MT6765, MT6768, MT6779, MT6781, MT6785, MT6789, MT6833, MT6835, MT6853, MT6855, MT6873, MT6877, MT6879, MT6883, MT6885, MT6886, MT6889, MT6893, MT6895, MT6897, MT6983, MT8321, MT8385, MT8755, MT8765, MT8766, MT8768, MT8771, MT8781, MT8786, MT8788, MT8789, MT8791T, MT8792, MT8795T, MT8796 you run against the affected versions below, and install the vendor's latest release.
  2. Read the advisory on corp.mediatek.com for workarounds and exact fixed builds.

Affected products and versions

VendorProductAffected versionsFixed in
MediaTekMT6761, MT6765, MT6768, MT6779, MT6781, MT6785, MT6789, MT6833, MT6835, MT6853, MT6855, MT6873, MT6877, MT6879, MT6883, MT6885, MT6886, MT6889, MT6893, MT6895, MT6897, MT6983, MT8321, MT8385, MT8755, MT8765, MT8766, MT8768, MT8771, MT8781, MT8786, MT8788, MT8789, MT8791T, MT8792, MT8795T, MT8796Android 12.0, 13.0, 14.0Not stated
MediaTekmt6765android_12.0 through android_14.0Not stated
MediaTekmt6779android_12.0 through android_14.0Not stated
MediaTekmt6781android_12.0 through android_14.0Not stated
MediaTekmt6789android_12.0 through android_14.0Not stated
MediaTekmt6833android_12.0 through android_14.0Not stated
MediaTekmt6835android_12.0 through android_14.0Not stated
MediaTekmt6853android_12.0 through android_14.0Not stated
MediaTekmt6855android_12.0 through android_14.0Not stated
MediaTekmt6873android_12.0 through android_14.0Not stated
MediaTekmt6877android_12.0 through android_14.0Not stated
MediaTekmt6879android_12.0 through android_14.0Not stated
MediaTekmt6885android_12.0 through android_14.0Not stated
MediaTekmt6886android_12.0 through android_14.0Not stated
MediaTekmt6893android_12.0 through android_14.0Not stated
MediaTekmt6895android_12.0 through android_14.0Not stated
MediaTekmt6983android_12.0 through android_14.0Not stated
MediaTekmt8321android_12.0 through android_14.0Not stated
MediaTekmt8755android_12.0 through android_14.0Not stated
MediaTekmt8765android_12.0 through android_14.0Not stated
MediaTekmt8766android_12.0 through android_14.0Not stated
MediaTekmt8771android_12.0 through android_14.0Not stated
MediaTekmt8781android_12.0 through android_14.0Not stated
MediaTekmt8788android_12.0 through android_14.0Not stated
MediaTekmt8789android_12.0 through android_14.0Not stated

Version data comes from the organisation that assigned the CVE; 14 further products are omitted here. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
NetworkCan be exploited remotely over a network, including the internet.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
HighAdministrator-level access is required first.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
HighData or code can be modified at will.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H. Scored by CISA (ADP).

Official description

In keyInstall, there is a possible out of bounds write due to a missing bounds check. This could lead to local escalation of privilege with System execution privileges needed. User interaction is not needed for exploitation. Patch ID: ALPS08587881; Issue ID: ALPS08587881.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Out-of-bounds Write

The product writes data past the end, or before the beginning, of the intended buffer.

How developers prevent this class of flaw

  • Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, many languages that perform their own memory management, such as Java and Perl, are not subject to buffer overflows. Other languages, such as Ada and C#, typically provide overflow protection, but the protection can be disabled by the programmer. Be wary that a language's interface to native code may still be subject to overflows, even if the language itself is theoretically safe.
  • Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. Examples include the Safe C String Library (SafeStr) by Messier and Viega, and the Strsafe.h library from Microsoft. These libraries provide safer versions of overflow-prone string-handling functions.
  • Use automatic buffer overflow detection mechanisms that are offered by certain compilers or compiler extensions. Examples include: the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice, which provide various mechanisms including canary-based detection and range/index checking. D3-SFCV (Stack Frame Canary Validation) from D3FEND discusses canary-based detection in detail.

More Out-of-bounds Write vulnerabilities (CWE-787)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
  3. Record last changed materially (score, affected products, status or references).

References

Recent Out-of-bounds Write vulnerabilities

Spotted an error? Tell us.