Use after free in Dawn (CVE-2024-2885)
A heap use-after-free occurs in the HLSL compiler (dxcompiler.dll) when processing Chrome-generated HLSL shaders from WebGPU. An attacker could crash the GPU process by opening a crafted HTML file with a WebGPU shader on Windows with the D3D12 backend.
- Fix shipped in 16 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 might trigger a heap UAF insider the hlsl compiler.
VERSION Chrome Version: Pre-compiled ASAN Chromium 124.0.6350.0 (Developer Build) (64-bit) Operating System: Win10 Build 19045
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.
FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION Type of crash: GPU Crash State:
==2156==ERROR: AddressSanitizer: heap-use-after-free on address 0x126e221e9f70 at pc 0x7fff5ca9ca87 bp 0x006fed5fc3c0 sp 0x006fed5fc408
READ of size 1 at 0x126e221e9f70 thread T0
==2156==WARNING: Failed to use and restart external symbolizer!
==2156==*** WARNING: Failed to initialize DbgHelp! ***
==2156==*** Most likely this means that the app is already ***
==2156==*** using DbgHelp, possibly with incompatible flags. ***
==2156==*** Due to technical reasons, symbolization might crash ***
==2156==*** or produce wrong results. ***
ModLoad: 00007fffb7c40000 00007fffb7cef000 C:\Windows\System32\ADVAPI32.dll
ModLoad: 00007fffb6cb0000 00007fffb6d4c000 C:\Windows\System32\sechost.dll
ModLoad: 00007fffb65e0000 00007fffb6706000 C:\Windows\System32\RPCRT4.dll
ModLoad: 00007fffb7560000 00007fffb760d000 C:\Windows\System32\shcore.dll
ModLoad: 00007fffb6170000 00007fffb64c4000 C:\Windows\System32\combase.dll
ModLoad: 00007fffb5970000 00007fffb5a70000 C:\Windows\System32\ucrtbase.dll
ModLoad: 00007fff66820000 00007fff93985000 C:\Users\user\Desktop\win32-release_x64_asan-win32-release_x64-1270692\chrome.dll
ModLoad: 00007fffb7610000 00007fffb767b000 C:\Windows\System32\WS2_32.dll
ModLoad: 00007fffb6710000 00007fffb67dd000 C:\Windows\System32\OLEAUT32.dll
ModLoad: 00007fffb5d70000 00007fffb5e0d000 C:\Windows\System32\msvcp_win.dll
ModLoad: 00007fffb5970000 00007fffb5a70000 C:\Windows\System32\ucrtbase.dll
ModLoad: 00007fffb6170000 00007fffb64c4000 C:\Windows\System32\combase.dll
ModLoad: 00007fffb5f50000 00007fffb5fb7000 C:\Windows\System32\WINTRUST.dll
ModLoad: 00007fffb5810000 00007fffb596e000 C:\Windows\System32\CRYPT32.dll
ModLoad: 00007fff9ded0000 00007fff9def7000 C:\Windows\SYSTEM32\WINMM.dll
ModLoad: 00007fff665f0000 00007fff6681d000 C:\Users\user\Desktop\win32-release_x64_asan-win32-release_x64-1270692\dbghelp.dll
ModLoad: 00007fffb4b60000 00007fffb4b9c000 C:\Windows\SYSTEM32\IPHLPAPI.DLL
ModLoad: 00007fffb5650000 00007fffb567e000 C:\Windows\SYSTEM32\USERENV.dll
ModLoad: 00007fffae540000 00007fffae54c000 C:\Windows\SYSTEM32\Secur32.dll
ModLoad: 00007fffae580000 00007fffae68a000 C:\Windows\SYSTEM32\WINHTTP.dll
ModLoad: 00007fffa2b20000 00007fffa2d9f000 C:\Windows\SYSTEM32\DWrite.dll
ModLoad: 00007fff9dbb0000 00007fff9dc48000 C:\Windows\SYSTEM32\WINSPOOL.DRV
ModLoad: 00007fffaeb40000 00007fffaeb5d000 C:\Windows\SYSTEM32\dhcpcsvc.DLL
ModLoad: 00007fffb5680000 00007fffb56b2000 C:\Windows\SYSTEM32\SSPICLI.DLL
ModLoad: 00007fffb52a0000 00007fffb52b2000 C:\Windows\System32\MSASN1.dll
ModLoad: 00007fffb5ec0000 00007fffb5f42000 C:\Windows\System32\bcryptPrimitives.dll
ModLoad: 00007fffb7560000 00007fffb760d000 C:\Windows\System32\shcore.dll
#0 0x7fff5ca9ca86 in anonymous namespace'::GlobalDCE::GlobalIsNeeded C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\Transforms\IPO\GlobalDCE.cpp:244 #1 0x7fff5ca9b52a in anonymous namespace'::GlobalDCE::runOnModule C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\Transforms\IPO\GlobalDCE.cpp:100
#2 0x7fff5bea3c3e in llvm::legacy::PassManagerImpl::run C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\IR\LegacyPassManager.cpp:1771
#3 0x7fff5beab484 in clang::EmitBackendOutput C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\lib\CodeGen\BackendUtil.cpp:779
#4 0x7fff5ba3755c 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
#5 0x7fff5bf89477 in clang::ParseAST C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\lib\Parse\ParseAST.cpp:164
#6 0x7fff5ba31d9f 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
#7 0x7fff5ba3f325 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
#8 0x7fff5b969f07 in DxcCompiler::Compile C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\tools\dxcompiler\dxcompilerobj.cpp:982
#9 0x7fff6883a396 in dawn::native::d3d::CompileShader C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\d3d\ShaderUtils.cpp:355
#10 0x7fff68891d53 in dawn::native::LoadOrRun<dawn::Resultdawn::native::d3d::CompiledShader,dawn::native::ErrorData ()(dawn::native::Blob),dawn::Resultdawn::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
#11 0x7fff689281fa in dawn::native::d3d12::ShaderModule::Compile C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\d3d12\ShaderModuleD3D12.cpp:378
#12 0x7fff688f12ff in dawn::native::d3d12::ComputePipeline::InitializeImpl C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\d3d12\ComputePipelineD3D12.cpp:85
#13 0x7fff6877cf0d in dawn::native::PipelineBase::Initialize C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\Pipeline.cpp:371
#14 0x7fff686f8213 in dawn::native::DeviceBase::CreateComputePipeline C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\Device.cpp:1871
#15 0x7fff686f7cfc in dawn::native::DeviceBase::APICreateComputePipeline C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\Device.cpp:1212
#16 0x7fff85c96889 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
#17 0x7fff857d4d83 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
#18 0x7fff857e15c9 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:1612
#19 0x7fff821b97bc in gpu::webgpu::anonymous namespace'::DawnWireServer::HandleCommands C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\webgpu_decoder_impl.cc:999 #20 0x7fff821b9c4e in gpu::webgpu::anonymous namespace'::WebGPUDecoderImpl::HandleDawnCommands C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\webgpu_decoder_impl.cc:1883
#21 0x7fff821aee7b in gpu::webgpu::`anonymous namespace'::WebGPUDecoderImpl::DoCommands C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\webgpu_decoder_impl.cc:1828
#22 0x7fff77502a14 in gpu::CommandBufferService::Flush C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\command_buffer_service.cc:232
#23 0x7fff74981036 in gpu::CommandBufferStub::OnAsyncFlush C:\b\s\w\ir\cache\builder\src\gpu\ipc\service\command_buffer_stub.cc:507
#24 0x7fff749801e4 in gpu::CommandBufferStub::ExecuteDeferredRequest C:\b\s\w\ir\cache\builder\src\gpu\ipc\service\command_buffer_stub.cc:155
#25 0x7fff7751b1ba in gpu::GpuChannel::ExecuteDeferredRequest C:\b\s\w\ir\cache\builder\src\gpu\ipc\service\gpu_channel.cc:873
#26 0x7fff775276d1 in base::internal::Invoker<base::internal::FunctorTraits<void (gpu::GpuChannel::&&)(mojo::StructPtrgpu::mojom::DeferredRequestParams),base::WeakPtrgpu::GpuChannel &&,mojo::StructPtrgpu::mojom::DeferredRequestParams &&>,base::internal::BindState<1,1,0,void (gpu::GpuChannel::)(mojo::StructPtrgpu::mojom::DeferredRequestParams),base::WeakPtrgpu::GpuChannel,mojo::StructPtrgpu::mojom::DeferredRequestParams >,void ()>::RunOnce C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:980
#27 0x7fff66b20c6e in base::OnceCallback<void ()>::Run C:\b\s\w\ir\cache\builder\src\base\functional\callback.h:156
#28 0x7fff76dc3879 in gpu::SchedulerDfs::ExecuteSequence C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\scheduler_dfs.cc:740
#29 0x7fff76dc1f2c in gpu::SchedulerDfs::RunNextTask C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\scheduler_dfs.cc:665
#30 0x7fff76dc4a83 in base::internal::Invoker<base::internal::FunctorTraits<void (gpu::SchedulerDfs::*&&)(),gpu::SchedulerDfs >,base::internal::BindState<1,1,0,void (gpu::SchedulerDfs::)(),base::internal::UnretainedWrappergpu::SchedulerDfs,base::unretained_traits::MayNotDangle,0 >,void ()>::RunOnce C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:980
#31 0x7fff72d1d912 in base::TaskAnnotator::RunTaskImpl C:\b\s\w\ir\cache\builder\src\base\task\common\task_annotator.cc:202
#32 0x7fff75d9517b 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
#33 0x7fff75d940a4 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
#34 0x7fff75dbc93a in base::MessagePumpDefault::Run C:\b\s\w\ir\cache\builder\src\base\message_loop\message_pump_default.cc:40
#35 0x7fff75d96eca 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:641
#36 0x7fff72d6a150 in base::RunLoop::Run C:\b\s\w\ir\cache\builder\src\base\run_loop.cc:134
#37 0x7fff754716f9 in content::GpuMain C:\b\s\w\ir\cache\builder\src\content\gpu\gpu_main.cc:431
#38 0x7fff719a387c in content::RunOtherNamedProcessTypeMain C:\b\s\w\ir\cache\builder\src\content\app\content_main_runner_impl.cc:771
#39 0x7fff719a5b96 in content::ContentMainRunnerImpl::Run C:\b\s\w\ir\cache\builder\src\content\app\content_main_runner_impl.cc:1146
#40 0x7fff719a1cac in content::RunContentProcess C:\b\s\w\ir\cache\builder\src\content\app\content_main.cc:333
#41 0x7fff719a248e in content::ContentMain C:\b\s\w\ir\cache\builder\src\content\app\content_main.cc:346
#42 0x7fff6682169b in ChromeMain C:\b\s\w\ir\cache\builder\src\chrome\app\chrome_main.cc:192
#43 0x7ff7ec425133 in MainDllLoader::Launch C:\b\s\w\ir\cache\builder\src\chrome\app\main_dll_loader_win.cc:169
#44 0x7ff7ec422522 in main C:\b\s\w\ir\cache\builder\src\chrome\app\chrome_exe_main_win.cc:401
#45 0x7ff7ec7ac7d3 in __scrt_common_main_seh D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
#46 0x7fffb6d67613 in BaseThreadInitThunk+0x13 (C:\Windows\System32\KERNEL32.DLL+0x180017613)
#47 0x7fffb81026a0 in RtlUserThreadStart+0x20 (C:\Windows\SYSTEM32\ntdll.dll+0x1800526a0)
0x126e221e9f70 is located 48 bytes inside of 200-byte region [0x126e221e9f40,0x126e221ea008)
freed by thread T0 here:
#0 0x7ff7ec4d115d in free C:\b\s\w\ir\cache\builder\src\third_party\llvm\compiler-rt\lib\asan\asan_malloc_win.cpp:82
#1 0x7fff5c8528d9 in llvm::Function::~Function C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\IR\Function.cpp:275
#2 0x7fff5bc7acb7 in llvm::iplist<llvm::Function,llvm::ilist_traitsllvm::Function >::erase C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\include\llvm\ADT\ilist.h:479
#3 0x7fff5c84a73f in llvm::Function::eraseFromParent C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\IR\Function.cpp:244
#4 0x7fff5cb97e7c in anonymous namespace'::TempOverloadPool::~TempOverloadPool C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\HLSL\HLMatrixLowerPass.cpp:63 #5 0x7fff5cb97315 in anonymous namespace'::HLMatrixLowerPass::runOnModule C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\HLSL\HLMatrixLowerPass.cpp:258
#6 0x7fff5bea3c3e in llvm::legacy::PassManagerImpl::run C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\IR\LegacyPassManager.cpp:1771
#7 0x7fff5beab484 in clang::EmitBackendOutput C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\lib\CodeGen\BackendUtil.cpp:779
#8 0x7fff5ba3755c 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
#9 0x7fff5bf89477 in clang::ParseAST C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\lib\Parse\ParseAST.cpp:164
#10 0x7fff5ba31d9f 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
#11 0x7fff5ba3f325 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
#12 0x7fff5b969f07 in DxcCompiler::Compile C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\tools\dxcompiler\dxcompilerobj.cpp:982
#13 0x7fff6883a396 in dawn::native::d3d::CompileShader C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\d3d\ShaderUtils.cpp:355
#14 0x7fff68891d53 in dawn::native::LoadOrRun<dawn::Resultdawn::native::d3d::CompiledShader,dawn::native::ErrorData ()(dawn::native::Blob),dawn::Resultdawn::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
#15 0x7fff689281fa in dawn::native::d3d12::ShaderModule::Compile C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\d3d12\ShaderModuleD3D12.cpp:378
#16 0x7fff688f12ff in dawn::native::d3d12::ComputePipeline::InitializeImpl C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\d3d12\ComputePipelineD3D12.cpp:85
#17 0x7fff6877cf0d in dawn::native::PipelineBase::Initialize C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\Pipeline.cpp:371
#18 0x7fff686f8213 in dawn::native::DeviceBase::CreateComputePipeline C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\Device.cpp:1871
#19 0x7fff686f7cfc in dawn::native::DeviceBase::APICreateComputePipeline C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\Device.cpp:1212
#20 0x7fff85c96889 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
#21 0x7fff857d4d83 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
#22 0x7fff857e15c9 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:1612
#23 0x7fff821b97bc in gpu::webgpu::anonymous namespace'::DawnWireServer::HandleCommands C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\webgpu_decoder_impl.cc:999 #24 0x7fff821b9c4e in gpu::webgpu::anonymous namespace'::WebGPUDecoderImpl::HandleDawnCommands C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\webgpu_decoder_impl.cc:1883
#25 0x7fff821aee7b in gpu::webgpu::anonymous namespace'::WebGPUDecoderImpl::DoCommands C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\webgpu_decoder_impl.cc:1828 #26 0x7fff77502a14 in gpu::CommandBufferService::Flush C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\command_buffer_service.cc:232 #27 0x7fff74981036 in gpu::CommandBufferStub::OnAsyncFlush C:\b\s\w\ir\cache\builder\src\gpu\ipc\service\command_buffer_stub.cc:507 previously allocated by thread T0 here: #0 0x7ff7ec4d125d in malloc C:\b\s\w\ir\cache\builder\src\third_party\llvm\compiler-rt\lib\asan\asan_malloc_win.cpp:98 #1 0x7fff5d8c6956 in operator new D:\a\_work\1\s\src\vctools\crt\vcstartup\src\heap\new_scalar.cpp:35 #2 0x7fff5c91c847 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 0x7fff5bc32284 in llvm::Function::Create C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\include\llvm\IR\Function.h:123 #4 0x7fff5bc76057 in llvm::Module::getOrInsertFunction C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\IR\Module.cpp:129 #5 0x7fff5bc76231 in llvm::Module::getOrInsertFunction C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\IR\Module.cpp:147 #6 0x7fff5cb9a2e9 in anonymous namespace'::TempOverloadPool::get C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\HLSL\HLMatrixLowerPass.cpp:88
#7 0x7fff5cba2458 in anonymous namespace'::HLMatrixLowerPass::getLoweredByValOperand C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\HLSL\HLMatrixLowerPass.cpp:427 #8 0x7fff5cb9cda6 in anonymous namespace'::HLMatrixLowerPass::lowerHLOperation C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\HLSL\HLMatrixLowerPass.cpp:899
#9 0x7fff5cb96488 in anonymous namespace'::HLMatrixLowerPass::runOnModule C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\HLSL\HLMatrixLowerPass.cpp:243 #10 0x7fff5bea3c3e in llvm::legacy::PassManagerImpl::run C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\IR\LegacyPassManager.cpp:1771 #11 0x7fff5beab484 in clang::EmitBackendOutput C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\lib\CodeGen\BackendUtil.cpp:779 #12 0x7fff5ba3755c 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 #13 0x7fff5bf89477 in clang::ParseAST C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\lib\Parse\ParseAST.cpp:164 #14 0x7fff5ba31d9f 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 #15 0x7fff5ba3f325 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 #16 0x7fff5b969f07 in DxcCompiler::Compile C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\tools\clang\tools\dxcompiler\dxcompilerobj.cpp:982 #17 0x7fff6883a396 in dawn::native::d3d::CompileShader C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\d3d\ShaderUtils.cpp:355 #18 0x7fff68891d53 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 #19 0x7fff689281fa in dawn::native::d3d12::ShaderModule::Compile C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\d3d12\ShaderModuleD3D12.cpp:378 #20 0x7fff688f12ff in dawn::native::d3d12::ComputePipeline::InitializeImpl C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\d3d12\ComputePipelineD3D12.cpp:85 #21 0x7fff6877cf0d in dawn::native::PipelineBase::Initialize C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\Pipeline.cpp:371 #22 0x7fff686f8213 in dawn::native::DeviceBase::CreateComputePipeline C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\Device.cpp:1871 #23 0x7fff686f7cfc in dawn::native::DeviceBase::APICreateComputePipeline C:\b\s\w\ir\cache\builder\src\third_party\dawn\src\dawn\native\Device.cpp:1212 #24 0x7fff85c96889 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 #25 0x7fff857d4d83 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 #26 0x7fff857e15c9 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:1612 #27 0x7fff821b97bc in gpu::webgpu::anonymous namespace'::DawnWireServer::HandleCommands C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\webgpu_decoder_impl.cc:999
SUMMARY: AddressSanitizer: heap-use-after-free C:\b\s\w\ir\cache\builder\src\third_party\dawn\third_party\dxc\lib\Transforms\IPO\GlobalDCE.cpp:244 in `anonymous namespace'::GlobalDCE::GlobalIsNeeded Shadow bytes around the buggy address: 0x126e221e9c80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x126e221e9d00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x126e221e9d80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x126e221e9e00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x126e221e9e80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x126e221e9f00: fa fa fa fa fa fa f7 fa fd fd fd fd fd fd[fd]fd 0x126e221e9f80: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x126e221ea000: fd fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x126e221ea080: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x126e221ea100: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x126e221ea180: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 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
==2156==ADDITIONAL INFO
==2156==Note: Please include this section with the ASan report. Task trace: #0 0x7fff76dbdbc9 in gpu::SchedulerDfs::TryScheduleSequence C:\b\s\w\ir\cache\builder\src\gpu\command_buffer\service\scheduler_dfs.cc:481
MiraclePtr Status: NOT PROTECTED No raw_ptr<T> access to this region was detected prior to this crash. This crash is still exploitable with MiraclePtr. Refer to https://chromium.googlesource.com/chromium/src/+/main/base/memory/raw_ptr.md for details.
==2156==END OF ADDITIONAL INFO ==2156==ABORTING
CREDIT INFORMATION Reporter credit: wgslfuzz
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
Impact
An attacker could crash the GPU process by convincing a user to open a malicious HTML file on Windows with the D3D12 backend.
What the attacker needed
Windows with D3D12 backend; victim opens a malicious HTML file
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 use-after-free is a memory bug where a program keeps using memory after it has been freed, which can cause crashes or worse. Here, a web page with a special graphics shader makes Chrome's GPU process crash on Windows. The attacker only needs to convince someone to open a malicious HTML file.
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.