Use after free in WebGL (CVE-2026-19137)
When a texture is redefined with more layers, the function GrowMipLevelArray reallocates the per-texture MipLevel array, but the framebuffer object's attachment array keeps pointers into the freed memory. Later GPU operations that read those stale pointers cause a use-after-free, which the reporter observed as a crash in the GPU process on Android.
- Fix shipped in 4 months
ecurity Bug
Important: Please do not change the component of this bug manually.
Please READ THIS FAQ before filing a bug: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/security/faq.md
Please see the following link for instructions on filing security bugs: https://www.chromium.org/Home/chromium-security/reporting-security-bugs
Reports may be eligible for reward payments under the Chrome VRP: https://g.co/chrome/vrp
NOTE: Security bugs are normally made public once a fix has been widely deployed.
VULNERABILITY DETAILS
The function GrowMipLevelArray is responsible for expanding the per-texture MipLevel array when a texture is redefined with additional layers.
The vulnerable reallocation:
psMipLevel = GLES3Realloc(psTex->psMipLevel,
sizeof(GLES3MipMapLevel) * ui32NewMaxLevels);
After realloc(), the FBO's apsAttachment[] array still holds pointers into the old (now freed) MipLevel array. Subsequent operations that access the FBO attachment through these stale pointers trigger Use-After-Free.
Chrome Version: [146.0.7680.177] + [stable]
Operating System: [Android pixel 10 latest patch]
REPRODUCTION CASE
1.just open chrome on pixel 10 with MTE enabled,no need other flags enable MTE step 1.1 push chrome-command-line to /data/local/tmp 1.2 #enable-command-line-on-non-rooted-devices 1.3 reload chrome
2.load poc.html
3.logcat | grep DEBUG
FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION
Type of crash: [gpu.]
Crash State:
Symbolizing stack using ABI=arm64
signal 11 (SIGSEGV), code 9 (SEGV_MTESERR), fault addr 0x74a96f4730 in tid 9369 (CrGpuMain), pid 9353 (ileged_process2)
Build fingerprint: 'google/frankel/frankel:16/CP1A.260305.018/14887507:user/release-keys'
Revision: 'MP1.0'
pid: 9353, tid: 9369, name: CrGpuMain >>> org.chromium.chrome:privileged_process2 <<<
signal 11 (SIGSEGV), code 9 (SEGV_MTESERR), fault addr 0x00000074a96f4730 (read)
Stack Trace:
RELADDR FUNCTION FILE:LINE
000000000008fe48 ScheduleTA+1336) (BuildId: cefd59f52838946b0e646aaf2bb04c76 /vendor/lib64/egl/libGLESv2_powervr.so
0000000000082fd4 KickUnFlushed_ScheduleTA+68) (BuildId: cefd59f52838946b0e646aaf2bb04c76 /vendor/lib64/egl/libGLESv2_powervr.so
00000000000cd704 RM_FlushUnKickedResource+340) (BuildId: cefd59f52838946b0e646aaf2bb04c76 /vendor/lib64/egl/libGLESv2_powervr.so
0000000000146bc0 TexImage3D+640) (BuildId: cefd59f52838946b0e646aaf2bb04c76 /vendor/lib64/egl/libGLESv2_powervr.so
00000000001468e0 Impl_glTexImage3D(unsigned int, int, int, int, int, int, int, unsigned int, unsigned int, void const*, GLES3Context_TAG*) (.__uniq.124271684878746512121637812560551803626)+96) (BuildId: cefd59f52838946b0e646aaf2bb04c76 /vendor/lib64/egl/libGLESv2_powervr.so
0000000000146174 glTexImage3D+68) (BuildId: cefd59f52838946b0e646aaf2bb04c76 /vendor/lib64/egl/libGLESv2_powervr.so
0000000003675648 rx::TextureGL::setImageHelper(gl::Context const*, gl::TextureTarget, unsigned long, unsigned int, angle::Extents<int> const&, unsigned int, unsigned int, unsigned char const*) ../../third_party/angle/src/libANGLE/renderer/gl/TextureGL.cpp:286:22
0000000003674c58 rx::TextureGL::setImage(gl::Context const*, gl::ImageIndex const&, unsigned int, angle::Extents<int> const&, unsigned int, unsigned int, gl::PixelUnpackState const&, gl::Buffer*, unsigned char const*) ../../third_party/angle/src/libANGLE/renderer/gl/TextureGL.cpp:240:15
00000000035a9b3c gl::Texture::setImage(gl::Context*, gl::PixelUnpackState const&, gl::Buffer*, gl::TextureTarget, int, unsigned int, angle::Extents<int> const&, unsigned int, unsigned int, unsigned char const*) ../../third_party/angle/src/libANGLE/Texture.cpp:1413:25
000000000352c230 gl::Context::texImage3D(gl::TextureTarget, int, int, int, int, int, int, unsigned int, unsigned int, void const*) ../../third_party/angle/src/libANGLE/Context.cpp:5609:32
00000000083b3958 GL_TexImage3DRobustANGLE ../../third_party/angle/src/libGLESv2/entry_points_gles_ext_autogen.cpp:3495:22
0000000009a0e364 gpu::gles2::GLES2DecoderPassthroughImpl::DoTexImage3D(unsigned int, int, int, int, int, int, int, unsigned int, unsigned int, int, void const*) ../../gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc:2930:10
0000000009a1a2dc gpu::gles2::GLES2DecoderPassthroughImpl::HandleTexImage3D(unsigned int, void const volatile*) ../../gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers.cc:1101:10
00000000099fb52c gpu::error::Error gpu::gles2::GLES2DecoderPassthroughImpl::DoCommandsImpl<false>(unsigned int, void const volatile*, int, int*) ../../gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc:742:20
00000000042bd920 gpu::CommandBufferService::Flush(int, gpu::AsyncAPIInterface*) ../../gpu/command_buffer/service/command_buffer_service.cc:267:35
0000000009aca028 gpu::CommandBufferStub::OnAsyncFlush(int, unsigned int, std::__Cr::vector<gpu::SyncToken, std::__Cr::allocator<gpu::SyncToken>> const&) ../../gpu/ipc/service/command_buffer_stub.cc:504:22
0000000009ac9cc0 gpu::CommandBufferStub::ExecuteDeferredRequest(gpu::mojom::DeferredCommandBufferRequestParams&, gpu::FenceSyncReleaseDelegate*) ../../gpu/ipc/service/command_buffer_stub.cc:173:7
0000000009acfb50 gpu::GpuChannel::ExecuteDeferredRequest(mojo::StructPtr<gpu::mojom::DeferredRequestParams>, gpu::FenceSyncReleaseDelegate*) ../../gpu/ipc/service/gpu_channel.cc:833:13
0000000009ad29e0 void base::internal::DecayedFunctorTraits<void (gpu::GpuChannel::*)(mojo::StructPtr<gpu::mojom::DeferredRequestParams>, gpu::FenceSyncReleaseDelegate*), base::WeakPtr<gpu::GpuChannel>&&, mojo::StructPtr<gpu::mojom::DeferredRequestParams>&&>::Invoke<void (gpu::GpuChannel::*)(mojo::StructPtr<gpu::mojom::DeferredRequestParams>, gpu::FenceSyncReleaseDelegate*), base::WeakPtr<gpu::GpuChannel> const&, mojo::StructPtr<gpu::mojom::DeferredRequestParams>, gpu::FenceSyncReleaseDelegate*>(void (gpu::GpuChannel::*)(mojo::StructPtr<gpu::mojom::DeferredRequestParams>, gpu::FenceSyncReleaseDelegate*), base::WeakPtr<gpu::GpuChannel> const&, mojo::StructPtr<gpu::mojom::DeferredRequestParams>&&, gpu::FenceSyncReleaseDelegate*&&) ../../base/functional/bind_internal.h:740:12
v------> void base::internal::InvokeHelper<true, base::internal::FunctorTraits<void (gpu::GpuChannel::*&&)(mojo::StructPtr<gpu::mojom::DeferredRequestParams>, gpu::FenceSyncReleaseDelegate*), base::WeakPtr<gpu::GpuChannel>&&, mojo::StructPtr<gpu::mojom::DeferredRequestParams>&&>, void, 0ul, 1ul>::MakeItSo<void (gpu::GpuChannel::*)(mojo::StructPtr<gpu::mojom::DeferredRequestParams>, gpu::FenceSyncReleaseDelegate*), std::__Cr::tuple<base::WeakPtr<gpu::GpuChannel>, mojo::StructPtr<gpu::mojom::DeferredRequestParams>>, gpu::FenceSyncReleaseDelegate*>(void (gpu::GpuChannel::*&&)(mojo::StructPtr<gpu::mojom::DeferredRequestParams>, gpu::FenceSyncReleaseDelegate*), std::__Cr::tuple<base::WeakPtr<gpu::GpuChannel>, mojo::StructPtr<gpu::mojom::DeferredRequestParams>>&&, gpu::FenceSyncReleaseDelegate*&&) ../../base/functional/bind_internal.h:956:5
v------> void base::internal::Invoker<base::internal::FunctorTraits<void (gpu::GpuChannel::*&&)(mojo::StructPtr<gpu::mojom::DeferredRequestParams>, gpu::FenceSyncReleaseDelegate*), base::WeakPtr<gpu::GpuChannel>&&, mojo::StructPtr<gpu::mojom::DeferredRequestParams>&&>, base::internal::BindState<true, true, false, void (gpu::GpuChannel::*)(mojo::StructPtr<gpu::mojom::DeferredRequestParams>, gpu::FenceSyncReleaseDelegate*), base::WeakPtr<gpu::GpuChannel>, mojo::StructPtr<gpu::mojom::DeferredRequestParams>>, void (gpu::FenceSyncReleaseDelegate*)>::RunImpl<void (gpu::GpuChannel::*)(mojo::StructPtr<gpu::mojom::DeferredRequestParams>, gpu::FenceSyncReleaseDelegate*), std::__Cr::tuple<base::WeakPtr<gpu::GpuChannel>, mojo::StructPtr<gpu::mojom::DeferredRequestParams>>, 0ul, 1ul>(void (gpu::GpuChannel::*&&)(mojo::StructPtr<gpu::mojom::DeferredRequestParams>, gpu::FenceSyncReleaseDelegate*), std::__Cr::tuple<base::WeakPtr<gpu::GpuChannel>, mojo::StructPtr<gpu::mojom::DeferredRequestParams>>&&, std::__Cr::integer_sequence<unsigned long, 0ul, 1ul>, gpu::FenceSyncReleaseDelegate*&&) ../../base/functional/bind_internal.h:1069:14
0000000009ad2964 base::internal::Invoker<base::internal::FunctorTraits<void (gpu::GpuChannel::*&&)(mojo::StructPtr<gpu::mojom::DeferredRequestParams>, gpu::FenceSyncReleaseDelegate*), base::WeakPtr<gpu::GpuChannel>&&, mojo::StructPtr<gpu::mojom::DeferredRequestParams>&&>, base::internal::BindState<true, true, false, void (gpu::GpuChannel::*)(mojo::StructPtr<gpu::mojom::DeferredRequestParams>, gpu::FenceSyncReleaseDelegate*), base::WeakPtr<gpu::GpuChannel>, mojo::StructPtr<gpu::mojom::DeferredRequestParams>>, void (gpu::FenceSyncReleaseDelegate*)>::RunOnce(base::internal::BindStateBase*, gpu::FenceSyncReleaseDelegate*) ../../base/functional/bind_internal.h:982:12
v------> base::OnceCallback<void (media::DemuxerStream*)>::Run(media::DemuxerStream*) && ../../base/functional/callback.h:155:12
v------> void base::internal::DecayedFunctorTraits<base::OnceCallback<void (media::DemuxerStream*)>, media::DemuxerStream*&&>::Invoke<base::OnceCallback<void (media::DemuxerStream*)>, media::DemuxerStream*>(base::OnceCallback<void (media::DemuxerStream*)>&&, media::DemuxerStream*&&) ../../base/functional/bind_internal.h:815:49
v------> void base::internal::InvokeHelper<false, base::internal::FunctorTraits<base::OnceCallback<void (media::DemuxerStream*)>&&, media::DemuxerStream*&&>, void, 0ul>::MakeItSo<base::OnceCallback<void (media::DemuxerStream*)>, std::__Cr::tuple<base::internal::UnretainedWrapper<media::DemuxerStream, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>>>(base::OnceCallback<void (media::DemuxerStream*)>&&, std::__Cr::tuple<base::internal::UnretainedWrapper<media::DemuxerStream, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>>&&) ../../base/functional/bind_internal.h:932:12
v------> void base::internal::Invoker<base::internal::FunctorTraits<base::OnceCallback<void (media::DemuxerStream*)>&&, media::DemuxerStream*&&>, base::internal::BindState<false, true, true, base::OnceCallback<void (media::DemuxerStream*)>, base::internal::UnretainedWrapper<media::DemuxerStream, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>>, void ()>::RunImpl<base::OnceCallback<void (media::DemuxerStream*)>, std::__Cr::tuple<base::internal::UnretainedWrapper<media::DemuxerStream, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>>, 0ul>(base::OnceCallback<void (media::DemuxerStream*)>&&, std::__Cr::tuple<base::internal::UnretainedWrapper<media::DemuxerStream, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>>&&, std::__Cr::integer_sequence<unsigned long, 0ul>) ../../base/functional/bind_internal.h:1069:14
0000000003bb79a4 base::internal::Invoker<base::internal::FunctorTraits<base::OnceCallback<void (BrowserWindowInterface*)>&&, base::raw_ptr<BrowserWindowInterface, (partition_alloc::internal::RawPtrTraits)1>&&>, base::internal::BindState<false, true, true, base::OnceCallback<void (BrowserWindowInterface*)>, base::internal::UnretainedWrapper<BrowserWindowInterface, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)1>>, void ()>::RunOnce(base::internal::BindStateBase*) ../../base/functional/bind_internal.h:982:12
v------> base::OnceCallback<void ()>::Run() && ../../base/functional/callback.h:155:12
00000000042c3384 gpu::Scheduler::ExecuteSequence(base::IdType<gpu::SyncPointOrderData, unsigned int, 0u, 1u>) ../../gpu/command_buffer/service/scheduler.cc:707:29
00000000042c2a7c gpu::Scheduler::RunNextTask() ../../gpu/command_buffer/service/scheduler.cc:625:3
v------> base::OnceCallback<void ()>::Run() && ../../base/functional/callback.h:155:12
000000000703a1fc base::TaskAnnotator::RunTaskImpl(base::PendingTask&) ../../base/task/common/task_annotator.cc:229:34
v------> void base::TaskAnnotator::RunTask<base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::LazyNow*)::$_3>(perfetto::StaticString, base::PendingTask&, base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::LazyNow*)::$_3&&) ../../base/task/common/task_annotator.h:112:5
0000000007056a3c base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::LazyNow*) ../../base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:475:23
0000000007056640 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() ../../base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:346:40
0000000006fead28 base::MessagePumpDefault::Run(base::MessagePump::Delegate*) ../../base/message_loop/message_pump_default.cc:42:55
0000000007057100 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) ../../base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:650:12
00000000070182cc base::RunLoop::Run(base::Location const&) ../../base/run_loop.cc:135:14
000000000ce4b014 content::GpuMain(content::MainFunctionParams) ../../content/gpu/gpu_main.cc:485:14
0000000006fc2288 content::RunOtherNamedProcessTypeMain(std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>> const&, content::MainFunctionParams, content::ContentMainDelegate*) ../../content/app/content_main_runner_impl.cc:762:14
0000000006fc30d8 content::ContentMainRunnerImpl::Run() ../../content/app/content_main_runner_impl.cc:1152:10
0000000006fc0acc content::RunContentProcess(content::ContentMainParams, content::ContentMainRunner*) ../../content/app/content_main.cc:358:36
0000000006fc1ac8 content::StartContentMain(bool) ../../content/app/android/content_main_android.cc:54:10
00000000002c2300 art_quick_generic_jni_trampoline+144) (BuildId: 61c7a211c01ef3c0068b4fbe31051050 /apex/com.android.art/lib64/libart.so
00000000002ab260 art_quick_invoke_static_stub+640) (BuildId: 61c7a211c01ef3c0068b4fbe31051050 /apex/com.android.art/lib64/libart.so
0000000000585c88 bool art::interpreter::DoCall<false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, bool, art::JValue*)+1984) (BuildId: 61c7a211c01ef3c0068b4fbe31051050 /apex/com.android.art/lib64/libart.so
000000000048ff6c void art::interpreter::ExecuteSwitchImplCpp<false>(art::interpreter::SwitchImplContext*)+468) (BuildId: 61c7a211c01ef3c0068b4fbe31051050 /apex/com.android.art/lib64/libart.so
00000000003d1718 ExecuteSwitchImplAsm+8) (BuildId: 61c7a211c01ef3c0068b4fbe31051050 /apex/com.android.art/lib64/libart.so
000000000029005c offset 0x4085000) (xi1.run+0 /data/app/~~ayCs0G1cEE9vDupqqYSiOA==/org.chromium.chrome-OG-qSl8JAd4v0pHWHiahqA==/base.apk/libmonochrome.so
00000000003d136c art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.__uniq.112435418011751916792819755956732575238.llvm.15381326084910962254)+364) (BuildId: 61c7a211c01ef3c0068b4fbe31051050 /apex/com.android.art/lib64/libart.so
00000000003d0aa0 artQuickToInterpreterBridge+1020) (BuildId: 61c7a211c01ef3c0068b4fbe31051050 /apex/com.android.art/lib64/libart.so
00000000002c2438 art_quick_to_interpreter_bridge+88) (BuildId: 61c7a211c01ef3c0068b4fbe31051050 /apex/com.android.art/lib64/libart.so
00000000000049a8 offset 0x2000000) (java.lang.Thread.run+136 [anon_shmem:dalvik-jit-code-cache]
00000000002aaf94 art_quick_invoke_stub+612) (BuildId: 61c7a211c01ef3c0068b4fbe31051050 /apex/com.android.art/lib64/libart.so
00000000002709b0 art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+220) (BuildId: 61c7a211c01ef3c0068b4fbe31051050 /apex/com.android.art/lib64/libart.so
00000000004bdfc8 art::Thread::CreateCallback(void*)+1184) (BuildId: 61c7a211c01ef3c0068b4fbe31051050 /apex/com.android.art/lib64/libart.so
00000000004bdb18 art::Thread::CreateCallbackWithUffdGc(void*)+8) (BuildId: 61c7a211c01ef3c0068b4fbe31051050 /apex/com.android.art/lib64/libart.so
000000000008a914 __pthread_start(void*) (.__uniq.67847048707805468364044055584648682506)+180) (BuildId: 8d65ea529c21c79c019713e50adb6675 /apex/com.android.runtime/lib64/bionic/libc.so
000000000007b5a4 __start_thread+68) (BuildId: 8d65ea529c21c79c019713e50adb6675 /apex/com.android.runtime/lib64/bionic/libc.so
Please do not close this page again. Please find a professional to categorize it.
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 the reallocation in GrowMipLevelArray does not update or invalidate the FBO attachment pointers that referenced the previous MipLevel array.
Impact
The stale pointers cause a use-after-free in the GPU process, observed as a SIGSEGV with an MTE tag mismatch; the text does not claim a working exploit beyond the crash.
What the attacker needed
Android device with MTE enabled; Chrome command-line flag enabled; Victim loads a crafted page
How it was found
- Enable MTE on the Pixel 10 by pushing a chrome-command-line file and reloading Chrome.
- Load the proof-of-concept HTML page.
- Watch logcat for the DEBUG tag to see the crash.
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 texture in a browser's graphics layer keeps a list of small records describing its mipmap levels. When the list is made bigger, the old memory is freed and a new block is allocated, but another structure still points at the old block. Reading through that old pointer is a use-after-free, which can crash the graphics process and, in principle, be turned into memory corruption.
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.