Skip to content
Memory corruption Advisory Advanced CVE-2025-6558

Incorrect validation of untrusted input in ANGLE and GPU (CVE-2025-6558)

A vulnerability in the Mali GPU driver (libGLES_mali.so) allows a sandbox escape on Android devices with Mali chipsets. An attacker could exploit this to break out of the Chrome sandbox, and there is evidence it is being used in the wild.

Clément Lecigne Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 23 days

NOTE: This bug is similar to b/402078335 but is targeting Mali devices. NOTE: We have evidence that the following bug is being used in the wild.

VULNERABILITY DETAILS

Google Threat Intelligence Group discovered an in the wild Chrome sandbox escape targeting Android devices with Mali chipsets. The vulnerability appears to be in libGLES_mali.so. We haven't yet concluded a root cause analysis, but our testing hints at a a possible type confusion caused by updating the texture type and format in glTexImage2D(..GL_RGB, GL_UNSIGNED_BYTE..) -> glTexStorage2D(..GL_RGB9_E5..) -> glTexSubImage2D(..GL_RGB, GL_HALF_FLOAT..) leading to an OOB write in gles_context*.

We were able to reproduce the crash on a Pixel 7 (Mali-G710 MP7) with latest updates. (mostly due to our current poc only supporting 32-bit devices)

We have just reported this vulnerability to ARM, but based on our experience it could take weeks, or even months, before patches roll out to Android devices - which is why we would also like to report this vulnerability also to Chrome security, in order to see if there is anything we can do in the short term on the Chrome side to block the exploit.

The sandbox escape was chained with an exploit against the Chrome renderer (CVE-2025-5419) and a privilege escalation in Sigqueue (https://kernel.dance/#f90fff1e152dedf52b932240ebbd670d83330eca).

CREDIT

Clément Lecigne and Vlad Stolyarov of Google's Threat Analysis Group.

VERSION

Chrome Version: latest (since the vuln is targeting a Mali library)
Operating System: Android on Mali chipsets

REPRODUCTION CASE

  • Compile poc.c (attached) with:

$NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/clang poc.c -lGLESv3 -lGLESv2 -lEGL -lm --target=armv7a-linux-android34 -g -O0 -o poc_32

  • Exploit discovered in-the-wild was targeting 32-bit Chrome, but the vulnerability is likely present in 64-bit Chrome as well.
  • Run with adb push ./poc_32 /data/local/tmp && adb shell /data/local/tmp/poc_32
  • Observe crash in the logcat output.

FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION

Type of crash: browser Crash State:

06-23 11:38:42.751 10308 10308 F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x31336 in tid 10308 (poc_32), pid 10308 (poc_32)
06-23 11:38:42.904 10317 10317 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-23 11:38:42.904 10317 10317 F DEBUG   : Build fingerprint: 'google/panther/panther:16/BP2A.250605.031.A2/13578606:user/release-keys'
06-23 11:38:42.904 10317 10317 F DEBUG   : Revision: 'MP1.0'
06-23 11:38:42.904 10317 10317 F DEBUG   : ABI: 'arm'
06-23 11:38:42.904 10317 10317 F DEBUG   : Timestamp: 2025-06-23 11:38:42.802837105+0200
06-23 11:38:42.904 10317 10317 F DEBUG   : Process uptime: 1s
06-23 11:38:42.904 10317 10317 F DEBUG   : Cmdline: /data/local/tmp/poc_32
06-23 11:38:42.904 10317 10317 F DEBUG   : pid: 10308, tid: 10308, name: poc_32  >>> /data/local/tmp/poc_32 <<<
06-23 11:38:42.904 10317 10317 F DEBUG   : uid: 2000
06-23 11:38:42.904 10317 10317 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x00031336
06-23 11:38:42.904 10317 10317 F DEBUG   :     r0  f3f41db0  r1  00000000  r2  00000000  r3  00031337
06-23 11:38:42.904 10317 10317 F DEBUG   :     r4  f331fc7c  r5  f775a2d0  r6  00000000  r7  f775a2dc
06-23 11:38:42.904 10317 10317 F DEBUG   :     r8  f331fbd8  r9  00000000  r10 f3314290  r11 00000001
06-23 11:38:42.904 10317 10317 F DEBUG   :     ip  00000001  sp  ff92b1b0  lr  f48cd5af  pc  00031336
06-23 11:38:42.904 10317 10317 F DEBUG   : 5 total frames
06-23 11:38:42.904 10317 10317 F DEBUG   : backtrace:
06-23 11:38:42.904 10317 10317 F DEBUG   :   NOTE: Function names and BuildId information is missing for some frames due
06-23 11:38:42.904 10317 10317 F DEBUG   :   NOTE: to unreadable libraries. For unwinds of apps, only shared libraries
06-23 11:38:42.904 10317 10317 F DEBUG   :   NOTE: found under the lib/ directory are readable.
06-23 11:38:42.904 10317 10317 F DEBUG   :   NOTE: On this device, run setenforce 0 to make the libraries readable.
06-23 11:38:42.904 10317 10317 F DEBUG   :   NOTE: Unreadable libraries:
06-23 11:38:42.904 10317 10317 F DEBUG   :   NOTE:   /data/local/tmp/poc_32
06-23 11:38:42.904 10317 10317 F DEBUG   :       #00 pc 00031336  <unknown>
06-23 11:38:42.904 10317 10317 F DEBUG   :       #01 pc 006185ad  /vendor/lib/egl/libGLES_mali.so (gles_drawp_handle_dependencies(gles_context*, gles_draw_call*, glescore_submission*)+196) (BuildId: da7af0632b11c153bc5a10aa30fdc8a1314007c5)
06-23 11:38:42.904 10317 10317 F DEBUG   :       #02 pc 00619a6b  /vendor/lib/egl/libGLES_mali.so (gles_drawp_draw_common+794) (BuildId: da7af0632b11c153bc5a10aa30fdc8a1314007c5)
06-23 11:38:42.904 10317 10317 F DEBUG   :       #03 pc 005d1373  /vendor/lib/egl/libGLES_mali.so (gles_draw_draw_arrays+32) (BuildId: da7af0632b11c153bc5a10aa30fdc8a1314007c5)
06-23 11:38:42.904 10317 10317 F DEBUG   :       #04 pc 000025e4  /data/local/tmp/poc_32

The original report as published on the Chromium issue tracker, by Clément Lecigne and Vlad Stolyarov of Google's Threat Analysis Group. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a type confusion in the Mali GPU driver caused by changing texture type and format between calls, leading to an out-of-bounds write.

Impact

The vulnerability could allow a sandbox escape on Android devices with Mali chipsets, and it has been exploited in the wild chained with a renderer exploit and a kernel privilege escalation.

What the attacker needed

Android device with Mali chipset; Ability to run a native binary on the device

How it was found

  1. Compile the provided proof-of-concept C file for 32-bit ARM Android.
  2. Push the compiled binary to the device and run it.
  3. Observe the crash in the logcat output.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A sandbox is a security boundary that keeps a compromised browser process from affecting the rest of the device. This report describes a flaw in the graphics driver that lets an attacker who already has control of the browser's rendering process escape that boundary and run code with higher privileges.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.