Skip to content
Memory corruption Advisory Advanced CVE-2024-6102

Out of bounds memory access in Dawn (CVE-2024-6102)

A crafted WebGPU shader, when translated to HLSL and compiled by the bundled DXC compiler, triggers an out-of-bounds read (or a use-after-free in a standalone Linux build) inside the compiler's loop analysis. An attacker could crash the GPU process by getting a victim to open a malicious HTML page.

wgslfuzz Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 43 days

VULNERABILITY DETAILS

Chromium translates wgsl shaders via tint to an OS-specific shader format. On Windows, the OS-specific file format is hlsl, processed in dxcompiler.dll. When compiling chrome-generated hlsl files, this triggers an OOB inside the hlsl compiler. Standalone reproducing on linux triggers a UAF instead.

VERSION

Chrome Version: Pre-compiled ASAN Chromium 126.0.6465.0 (Developer Build) (64-bit)
Operating System: Win10 Build 19045.4291

REPRODUCTION CASE

Attached is a .html file containing a WebGPU shader. Opening the html file (on windows with the D3D12 backend) crashes the GPU process.

Reproducing the issue stand-alone on Linux also possible, this triggers a UAF instead of an OOB:

  1. Compile the standalone.wgsl with tint (commit 5976efe6b4b72c822085cf7ee08ad00036888ab5) to hlsl via ./tint standalone.wgsl -o standalone.hlsl. I also attached standalone.hlsl, but you should get the very same file when compiling standalone.wgsl yourself
  2. Compile the hlsl with dxc (commit 773b01272719e07ea369bc17f5ddfce248751c7a): ./dxc-3.7 standalone.hlsl -T cs_6_2. This should trigger an ASAN violation.

Attached:

  • html that triggers an ASAN violation in chromium
  • wgsl for producing the hlsl shader
  • the hlsl shader
  • asan log file
[6692:7064:0507/074000.582:WARNING:chrome_main_delegate.cc(742)] This is Chrome version 126.0.6465.0 (not a warning)
[6692:5068:0507/074001.205:WARNING:dns_config_service_win.cc(605)] Failed to read DnsConfig.
[6692:9024:0507/074001.440:ERROR:sandbox_win.cc(913)] Sandbox cannot access executable. Check filesystem permissions are valid. See https://bit.ly/31yqMJR.: Access is denied. (0x5)
[6692:7064:0507/074001.721:WARNING:account_consistency_mode_manager.cc(77)] Desktop Identity Consistency cannot be enabled as no OAuth client ID and client secret have been configured.
[6692:7064:0507/074002.268:WARNING:browser_management_service.cc(128)] EnterpriseLogoUrl fetch failed with error code -1 and MIME type 
[6692:7064:0507/074004.924:ERROR:network_service_instance_impl.cc(600)] Network service crashed, restarting service.
[6692:7064:0507/074005.111:WARNING:external_registry_loader_win.cc(232)] Error observing HKLM: 5
[6692:3440:0507/074009.806:WARNING:dns_config_service_win.cc(605)] Failed to read DnsConfig.
[3896:1988:0507/074010.587:WARNING:dns_config_service_win.cc(605)] Failed to read DnsConfig.
[3896:3148:0507/074016.083:WARNING:dns_config_service_win.cc(605)] Failed to read DnsConfig.
[6692:1216:0507/074021.929:WARNING:dns_config_service_win.cc(605)] Failed to read DnsConfig.
[3896:4800:0507/074026.099:WARNING:dns_config_service_win.cc(605)] Failed to read DnsConfig.
[6692:6224:0507/074041.952:WARNING:dns_config_service_win.cc(605)] Failed to read DnsConfig.
[3896:3148:0507/074046.143:WARNING:dns_config_service_win.cc(605)] Failed to read DnsConfig.
[6692:7064:0507/074147.240:INFO:CONSOLE(20)] "[object GPUDevice]", source: file://vboxsvr/shared/indexComputeExitLimit.html (20)
=================================================================
==5716==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x11f6a1ef6c08 at pc 0x7ffed72203f3 bp 0x006a465fba90 sp 0x006a465fbad8
READ of size 8 at 0x11f6a1ef6c08 thread T0
==5716==WARNING: Failed to use and restart external symbolizer!
==5716==*** WARNING: Failed to initialize DbgHelp!              ***
==5716==*** Most likely this means that the app is already      *** 
==5716==*** using DbgHelp, possibly with incompatible flags.    *** 
==5716==*** Due to technical reasons, symbolization might crash *** 
==5716==*** or produce wrong results.                           ***
    #0 0x7ffed72203f2 in llvm::ScalarEvolution::ComputeExitLimit C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\Analysis\ScalarEvolution.cpp:4988
    #1 0x7ffed721da66 in llvm::ScalarEvolution::ComputeBackedgeTakenCount C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\Analysis\ScalarEvolution.cpp:4875
    #2 0x7ffed721c714 in llvm::ScalarEvolution::getBackedgeTakenInfo C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\Analysis\ScalarEvolution.cpp:4624
    #3 0x7ffed721bc7e in llvm::ScalarEvolution::getSmallConstantTripCount C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\Analysis\ScalarEvolution.cpp:4500
    #4 0x7ffed67fae9d in `anonymous namespace'::LoopUnroll::runOnLoop C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\Transforms\Scalar\LoopUnrollPass.cpp:814
    #5 0x7ffed73359bb in llvm::LPPassManager::runOnFunction C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\Analysis\LoopPass.cpp:251
    #6 0x7ffed54f7f54 in llvm::FPPassManager::runOnFunction C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\IR\LegacyPassManager.cpp:1587
    #7 0x7ffed54f89ee in llvm::FPPassManager::runOnModule C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\IR\LegacyPassManager.cpp:1609
    #8 0x7ffed54f96a5 in llvm::legacy::PassManagerImpl::run C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\IR\LegacyPassManager.cpp:1771
    #9 0x7ffed55029cc in clang::EmitBackendOutput C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\lib\CodeGen\BackendUtil.cpp:779
    #10 0x7ffed4f108c1 in clang::BackendConsumer::HandleTranslationUnit C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\lib\CodeGen\CodeGenAction.cpp:191
    #11 0x7ffed562e431 in clang::ParseAST C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\lib\Parse\ParseAST.cpp:164
    #12 0x7ffed4f0b5b2 in clang::CodeGenAction::ExecuteAction C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\lib\CodeGen\CodeGenAction.cpp:807
    #13 0x7ffed4f18d83 in clang::FrontendAction::Execute C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\lib\Frontend\FrontendAction.cpp:455
    #14 0x7ffed4df6b73 in DxcCompiler::Compile C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\tools\dxcompiler\dxcompilerobj.cpp:984
    #15 0x7ffedd531fb5 in dawn::native::d3d::CompileShader C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\d3d\ShaderUtils.cpp:355
    #16 0x7ffedd59954e in dawn::native::LoadOrRun<dawn::Result<dawn::native::d3d::CompiledShader,dawn::native::ErrorData> (*)(dawn::native::Blob),dawn::Result<dawn::native::d3d::CompiledShader,dawn::native::ErrorData> (*)(dawn::native::d3d::D3DCompilationRequest)> C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\CacheRequest.h:154
    #17 0x7ffedd6411b4 in dawn::native::d3d12::ShaderModule::Compile C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\d3d12\ShaderModuleD3D12.cpp:378
    #18 0x7ffedd60467c in dawn::native::d3d12::ComputePipeline::InitializeImpl C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\d3d12\ComputePipelineD3D12.cpp:87
    #19 0x7ffedd44bec0 in dawn::native::PipelineBase::Initialize C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\Pipeline.cpp:371
    #20 0x7ffedd398841 in dawn::native::DeviceBase::CreateComputePipeline C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\Device.cpp:1996
    #21 0x7ffedd398227 in dawn::native::DeviceBase::APICreateComputePipeline C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\Device.cpp:1299
    #22 0x7ffeff83bd5d in dawn::wire::server::Server::DoDeviceCreateComputePipeline C:\b\s\w\ir\cache\builder\src\out\Release_x64\gen\third_party\dawn\src\dawn\wire\server\ServerDoers_autogen.cpp:250
    #23 0x7ffeff240714 in dawn::wire::server::Server::HandleDeviceCreateComputePipeline C:\b\s\w\ir\cache\builder\src\out\Release_x64\gen\third_party\dawn\src\dawn\wire\server\ServerHandlers_autogen.cpp:477   
    #24 0x7ffeff2491ed in dawn::wire::server::Server::HandleCommandsImpl C:\b\s\w\ir\cache\builder\src\out\Release_x64\gen\third_party\dawn\src\dawn\wire\server\ServerHandlers_autogen.cpp:1652
    #25 0x7ffefadfa692 in gpu::webgpu::`anonymous namespace'::DawnWireServer::HandleCommands C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\webgpu_decoder_impl.cc:992
    #26 0x7ffefadfaae5 in gpu::webgpu::`anonymous namespace'::WebGPUDecoderImpl::HandleDawnCommands C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\webgpu_decoder_impl.cc:1888
    #26 0x7ffefadfaae5 in gpu::webgpu::`anonymous namespace'::WebGPUDecoderImpl::HandleDawnCommands C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\webgpu_decoder_impl.cc:1888
    #27 0x7ffefadeee71 in gpu::webgpu::`anonymous namespace'::WebGPUDecoderImpl::DoCommands C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\webgpu_decoder_impl.cc:1833
    #28 0x7ffeeead8863 in gpu::CommandBufferService::Flush C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\command_buffer_service.cc:232
    #29 0x7ffeeb68af1c in gpu::CommandBufferStub::OnAsyncFlush C:\b\s\w\ir\cache\builder\src\gpu\ipc\service\command_buffer_stub.cc:506
    #30 0x7ffeeb6899c3 in gpu::CommandBufferStub::ExecuteDeferredRequest C:\b\s\w\ir\cache\builder\src\gpu\ipc\service\command_buffer_stub.cc:154
    #31 0x7ffeeeaf669a in gpu::GpuChannel::ExecuteDeferredRequest C:\b\s\w\ir\cache\builder\src\gpu\ipc\service\gpu_channel.cc:936
    #32 0x7ffeeeb079ba in base::internal::Invoker<base::internal::FunctorTraits<void (gpu::GpuChannel::*&&)(mojo::StructPtr<gpu::mojom::DeferredRequestParams>),base::WeakPtr<gpu::GpuChannel> &&,mojo::StructPtr<gpu::mojom::DeferredRequestParams> &&>,base::internal::BindState<1,1,0,void (gpu::GpuChannel::*)(mojo::StructPtr<gpu::mojom::DeferredRequestParams>),base::WeakPtr<gpu::GpuChannel>,mojo::StructPtr<gpu::mojom::DeferredRequestParams> >,void ()>::RunOnce C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:980
    #33 0x7ffeee15bf4d in gpu::SchedulerDfs::ExecuteSequence C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\scheduler_dfs.cc:743
    #34 0x7ffeee15a2a8 in gpu::SchedulerDfs::RunNextTask C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\scheduler_dfs.cc:668
    #35 0x7ffeee15d5d8 in base::internal::Invoker<base::internal::FunctorTraits<void (gpu::SchedulerDfs::*&&)(),gpu::SchedulerDfs *>,base::internal::BindState<1,1,0,void (gpu::SchedulerDfs::*)(),base::internal::UnretainedWrapper<gpu::SchedulerDfs,base::unretained_traits::MayNotDangle,0> >,void ()>::RunOnce C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:980
    #36 0x7ffee959bf20 in base::TaskAnnotator::RunTaskImpl C:\b\s\w\ir\cache\builder\src\base\task\common\task_annotator.cc:203
    #37 0x7ffeecf78d6e in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl C:\b\s\w\ir\cache\builder\src\base\task\sequence_manager\thread_controller_with_message_pump_impl.cc:473
    #38 0x7ffeecf77c79 in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork C:\b\s\w\ir\cache\builder\src\base\task\sequence_manager\thread_controller_with_message_pump_impl.cc:338
    #39 0x7ffeecfad27e in base::MessagePumpDefault::Run C:\b\s\w\ir\cache\builder\src\base\message_loop\message_pump_default.cc:40
    #40 0x7ffeecf7a9bc in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run C:\b\s\w\ir\cache\builder\src\base\task\sequence_manager\thread_controller_with_message_pump_impl.cc:645
    #41 0x7ffee95e6430 in base::RunLoop::Run C:\b\s\w\ir\cache\builder\src\base\run_loop.cc:134
    #42 0x7ffeec42e15d in content::GpuMain C:\b\s\w\ir\cache\builder\src\content\gpu\gpu_main.cc:438
    #43 0x7ffee7e88232 in content::RunOtherNamedProcessTypeMain C:\b\s\w\ir\cache\builder\src\content\app\content_main_runner_impl.cc:780
    #44 0x7ffee7e8a7b3 in content::ContentMainRunnerImpl::Run C:\b\s\w\ir\cache\builder\src\content\app\content_main_runner_impl.cc:1156
    #45 0x7ffee7e861cd in content::RunContentProcess C:\b\s\w\ir\cache\builder\src\content\app\content_main.cc:332
    #46 0x7ffee7e86cbd in content::ContentMain C:\b\s\w\ir\cache\builder\src\content\app\content_main.cc:345
    #47 0x7ffedae616b1 in ChromeMain C:\b\s\w\ir\cache\builder\src\chrome\app\chrome_main.cc:192
    #48 0x7ff698ed43a5 in MainDllLoader::Launch C:\b\s\w\ir\cache\builder\src\chrome\app\main_dll_loader_win.cc:181
    #49 0x7ff698ed1db2 in main C:\b\s\w\ir\cache\builder\src\chrome\app\chrome_exe_main_win.cc:350
    #50 0x7ff6992b0143 in __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
    #51 0x7fff52017343 in BaseThreadInitThunk+0x13 (C:\Windows\System32\KERNEL32.DLL+0x180017343)
    #52 0x7fff527426b0 in RtlUserThreadStart+0x20 (C:\Windows\SYSTEM32\ntdll.dll+0x1800526b0)

0x11f6a1ef6c08 is located 24 bytes before 96-byte region [0x11f6a1ef6c20,0x11f6a1ef6c80)
allocated by thread T0 here:
    #0 0x7ff698facb0d in malloc C:\b\s\w\ir\cache\builder\src\third_party\llvm\compiler-rt\lib\asan\asan_malloc_win.cpp:98
    #1 0x7ffed7912f5e in operator new D:\a\_work\1\s\src\vctools\crt\vcstartup\src\heap\new_scalar.cpp:36
    #2 0x7ffed639bc31 in llvm::User::operator new C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\IR\User.cpp:96
    #3 0x7ffed71947f2 in llvm::SplitBlockPredecessors C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\Transforms\Utils\BasicBlockUtils.cpp:496
    #4 0x7ffed731d6a6 in llvm::InsertPreheaderForLoop C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\Transforms\Utils\LoopSimplify.cpp:145
    #5 0x7ffed731f0bd in llvm::simplifyLoop C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\Transforms\Utils\LoopSimplify.cpp:740
    #6 0x7ffed7323e12 in LoopSimplify::runOnFunction C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\Transforms\Utils\LoopSimplify.cpp:790
    #7 0x7ffed54f7f54 in llvm::FPPassManager::runOnFunction C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\IR\LegacyPassManager.cpp:1587
    #8 0x7ffed54f89ee in llvm::FPPassManager::runOnModule C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\IR\LegacyPassManager.cpp:1609
    #9 0x7ffed54f96a5 in llvm::legacy::PassManagerImpl::run C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\IR\LegacyPassManager.cpp:1771
    #10 0x7ffed55029cc in clang::EmitBackendOutput C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\lib\CodeGen\BackendUtil.cpp:779
    #11 0x7ffed4f108c1 in clang::BackendConsumer::HandleTranslationUnit C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\lib\CodeGen\CodeGenAction.cpp:191
    #12 0x7ffed562e431 in clang::ParseAST C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\lib\Parse\ParseAST.cpp:164
    #13 0x7ffed4f0b5b2 in clang::CodeGenAction::ExecuteAction C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\lib\CodeGen\CodeGenAction.cpp:807
    #14 0x7ffed4f18d83 in clang::FrontendAction::Execute C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\lib\Frontend\FrontendAction.cpp:455
    #15 0x7ffed4df6b73 in DxcCompiler::Compile C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\tools\dxcompiler\dxcompilerobj.cpp:984
    #16 0x7ffedd531fb5 in dawn::native::d3d::CompileShader C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\d3d\ShaderUtils.cpp:355
    #17 0x7ffedd59954e in dawn::native::LoadOrRun<dawn::Result<dawn::native::d3d::CompiledShader,dawn::native::ErrorData> (*)(dawn::native::Blob),dawn::Result<dawn::native::d3d::CompiledShader,dawn::native::ErrorData> (*)(dawn::native::d3d::D3DCompilationRequest)> C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\CacheRequest.h:154
    #18 0x7ffedd6411b4 in dawn::native::d3d12::ShaderModule::Compile C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\d3d12\ShaderModuleD3D12.cpp:378
    #19 0x7ffedd60467c in dawn::native::d3d12::ComputePipeline::InitializeImpl C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\d3d12\ComputePipelineD3D12.cpp:87
    #20 0x7ffedd44bec0 in dawn::native::PipelineBase::Initialize C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\Pipeline.cpp:371
    #21 0x7ffedd398841 in dawn::native::DeviceBase::CreateComputePipeline C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\Device.cpp:1996
    #22 0x7ffedd398227 in dawn::native::DeviceBase::APICreateComputePipeline C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\Device.cpp:1299
    #23 0x7ffeff83bd5d in dawn::wire::server::Server::DoDeviceCreateComputePipeline C:\b\s\w\ir\cache\builder\src\out\Release_x64\gen\third_party\dawn\src\dawn\wire\server\ServerDoers_autogen.cpp:250
    #24 0x7ffeff240714 in dawn::wire::server::Server::HandleDeviceCreateComputePipeline C:\b\s\w\ir\cache\builder\src\out\Release_x64\gen\third_party\dawn\src\dawn\wire\server\ServerHandlers_autogen.cpp:477
    #25 0x7ffeff2491ed in dawn::wire::server::Server::HandleCommandsImpl C:\b\s\w\ir\cache\builder\src\out\Release_x64\gen\third_party\dawn\src\dawn\wire\server\ServerHandlers_autogen.cpp:1652
    #26 0x7ffefadfa692 in gpu::webgpu::`anonymous namespace'::DawnWireServer::HandleCommands C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\webgpu_decoder_impl.cc:992
    #27 0x7ffefadfaae5 in gpu::webgpu::`anonymous namespace'::WebGPUDecoderImpl::HandleDawnCommands C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\webgpu_decoder_impl.cc:1888

SUMMARY: AddressSanitizer: heap-buffer-overflow C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\Analysis\ScalarEvolution.cpp:4988 in llvm::ScalarEvolution::ComputeExitLimit
Shadow bytes around the buggy address:
  0x11f6a1ef6980: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 00 00
  0x11f6a1ef6a00: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 00 fa
  0x11f6a1ef6a80: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 00 00
  0x11f6a1ef6b00: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 00 fa
  0x11f6a1ef6b80: fa fa f7 fa fd fd fd fd fd fd fd fd fd fd fd fd
=>0x11f6a1ef6c00: fa[fa]f7 fa 00 00 00 00 00 00 00 00 00 00 00 00
  0x11f6a1ef6c80: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 00 fa
  0x11f6a1ef6d00: fa fa f7 fa fd fd fd fd fd fd fd fd fd fd fd fd
  0x11f6a1ef6d80: fa fa f7 fa fd fd fd fd fd fd fd fd fd fd fd fa
  0x11f6a1ef6e00: fa fa f7 fa fd fd fd fd fd fd fd fd fd fd fd fa
  0x11f6a1ef6e80: fa fa f7 fa fd fd fd fd fd fd fd fd fd fd fd fd
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb


==5716==ADDITIONAL INFO

==5716==Note: Please include this section with the ASan report.
Task trace:
    #0 0x7ffeee1534a5 in gpu::SchedulerDfs::TryScheduleSequence C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\scheduler_dfs.cc:483


==5716==END OF ADDITIONAL INFO
==5716==ABORTING
[6692:7064:0507/074158.199:ERROR:gpu_process_host.cc(1002)] GPU process exited unexpectedly: exit_code=1
[6692:7064:0507/074158.199:WARNING:gpu_process_host.cc(1436)] The GPU process has crashed 1 time(s)

The original report as published on the Chromium issue tracker, by wgslfuzz. 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 bug in the bundled DXC/LLVM loop analysis (ScalarEvolution::ComputeExitLimit) that mishandles the loop structure produced from the translated shader, leading to an out-of-bounds read.

What the attacker needed

Victim opens a malicious HTML page; Windows with D3D12 backend for the browser crash

How it was found

  1. Compile the supplied WGSL shader to HLSL using the tint tool.
  2. Compile the resulting HLSL with the dxc compiler targeting compute shader 6.2.
  3. Observe the AddressSanitizer violation.

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.

WebGPU lets web pages run small programs called shaders on the graphics card. Chrome converts these shaders into another format before handing them to a compiler that ships inside the browser. A specially crafted shader confuses that compiler, which reads memory it should not, and the graphics process crashes.

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 by wgslfuzz

View all

16 more disclosed reports, best first.

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.