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

Out of bounds read in WebTransport (CVE-2024-7255)

A WebTransport close event caused a type confusion between WebTransportCloseInfo and WebSocketCloseInfo, leading to an out-of-bounds read and a tab crash. An attacker could potentially crash the browser by triggering this condition.

Marten Richter Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 18 days

Security 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 Please provide a brief explanation of the security issue.

VERSION Chrome Version: 126, 127, and Canary tested, but 119 does not show the issue. Operating System: Linux and Windows 11, I do not think it is OS-dependent The server side uses the current quiche git.

REPRODUCTION CASE I may add a simpler reproduction later. But for now, I am developing/maintaining a node.js package for webtransport support. Today, I updated the unit tests to newer browser versions (on my machine, not committed).

You find the code for the server side here: https://github.com/fails-components/webtransport/blob/a58e330ce680018aecb79477d2cdb3e3830134e9/main/test/fixtures/server.js#L107

The client side is represented by this test: https://github.com/fails-components/webtransport/blob/a58e330ce680018aecb79477d2cdb3e3830134e9/main/test/bidirectional-streams.spec.js#L109 It runs until: https://github.com/fails-components/webtransport/blob/a58e330ce680018aecb79477d2cdb3e3830134e9/main/test/bidirectional-streams.spec.js#L125 where the user agent crashes. With crashes, I mean, it says: Fehlercode: STATUS_ACCESS_VIOLATION

I do not know if it is a severe crash (security vulnerability) or just a crash, so I filed it using the security template as a precaution.

I have also seen a problem with my unit test for unidirectional streams at the session's close; for now, I assume it has the same cause.

Debugging canary outside the unit tests using windows (also tested on edge) with Visual Studio shows the following stack trace:

 	chrome.dll!blink::bindings::DictionaryBase::ToV8(blink::ScriptState * script_state) Zeile 16	C++
 	[Inlineframe] chrome.dll!blink::ToV8Traits<blink::AppBannerPromptResult,void>::ToV8(blink::ScriptState * script_state, const blink::AppBannerPromptResult * dictionary) Zeile 275	C++	chrome.dll!blink::ScriptPromiseResolverBase::ResolveOrReject<blink::AppBannerPromptResult,cppgc::internal::BasicMember<blink::AppBannerPromptResult,cppgc::internal::StrongMemberTag,cppgc::internal::DijkstraWriteBarrierPolicy,cppgc::internal::DisabledCheckingPolicy,cppgc::internal::CompressedPointer>>(cppgc::internal::BasicMember<blink::AppBannerPromptResult,cppgc::internal::StrongMemberTag,cppgc::internal::DijkstraWriteBarrierPolicy,cppgc::internal::DisabledCheckingPolicy,cppgc::internal::CompressedPointer> value) Zeile 196	C++
 	[Inlineframe] chrome.dll!blink::ScriptPromiseResolver<blink::WebSocketCloseInfo>::Resolve(cppgc::internal::BasicMember<blink::WebSocketCloseInfo,cppgc::internal::StrongMemberTag,cppgc::internal::DijkstraWriteBarrierPolicy,cppgc::internal::DisabledCheckingPolicy,cppgc::internal::CompressedPointer> value) Zeile 260	C++
 	chrome.dll!blink::ScriptPromiseProperty<blink::WebSocketCloseInfo,blink::IDLAny>::Promise(blink::DOMWrapperWorld & world) Zeile 75	C++
 	chrome.dll!blink::WebTransport::closed(blink::ScriptState * script_state) Zeile 942	C++
 	chrome.dll!blink::`anonymous namespace'::v8_web_transport::ClosedAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value> & info) Zeile 181	C++
 	[Externer Code]	
 	chrome.dll!v8::internal::`anonymous namespace'::Invoke(v8::internal::Isolate * isolate, const v8::internal::`anonymous namespace'::InvokeParams & params) Zeile 435	C++
 	chrome.dll!v8::internal::`anonymous namespace'::InvokeWithTryCatch(v8::internal::Isolate * isolate, const v8::internal::`anonymous namespace'::InvokeParams & params) Zeile 477	C++
 	[Inlineframe] chrome.dll!v8::internal::Execution::TryRunMicrotasks(v8::internal::Isolate * isolate, v8::internal::MicrotaskQueue * microtask_queue) Zeile 578	C++
 	[Inlineframe] chrome.dll!v8::internal::MicrotaskQueue::RunMicrotasks(v8::internal::Isolate * isolate) Zeile 185	C++
 	[Inlineframe] chrome.dll!v8::internal::MicrotaskQueue::PerformCheckpointInternal(v8::Isolate * v8_isolate) Zeile 129	C++
 	chrome.dll!v8::internal::MicrotaskQueue::PerformCheckpoint(v8::Isolate * isolate) Zeile 48	C++
 	[Inlineframe] chrome.dll!blink::scheduler::EventLoop::PerformMicrotaskCheckpoint() Zeile 79	C++
 	[Inlineframe] chrome.dll!blink::Agent::PerformMicrotaskCheckpoint() Zeile 135	C++
 	[Inlineframe] chrome.dll!blink::WindowAgent::PerformMicrotaskCheckpoint() Zeile 50	C++
 	[Inlineframe] chrome.dll!() Zeile 0	C++
 	[Inlineframe] chrome.dll!blink::scheduler::AgentGroupSchedulerImpl::PerformMicrotaskCheckpoint() Zeile 117	C++
 	[Inlineframe] chrome.dll!blink::scheduler::MainThreadSchedulerImpl::PerformMicrotaskCheckpoint() Zeile 1137	C++
 	chrome.dll!blink::scheduler::MainThreadSchedulerImpl::OnTaskCompleted(base::WeakPtr<blink::scheduler::MainThreadTaskQueue> queue, const base::sequence_manager::Task & task, base::sequence_manager::TaskQueue::TaskTiming * task_timing, base::LazyNow * lazy_now) Zeile 2284	C++
 	[Inlineframe] chrome.dll!blink::scheduler::MainThreadTaskQueue::OnTaskCompleted(const base::sequence_manager::Task & task, base::sequence_manager::TaskQueue::TaskTiming * task_timing, base::LazyNow * lazy_now) Zeile 174	C++
 	[Inlineframe] chrome.dll!base::internal::DecayedFunctorTraits<void (blink::scheduler::MainThreadTaskQueue::*)(const base::sequence_manager::Task &, base::sequence_manager::TaskQueue::TaskTiming *, base::LazyNow *),blink::scheduler::MainThreadTaskQueue *>::Invoke(void(blink::scheduler::MainThreadTaskQueue::*)(const base::sequence_manager::Task &, base::sequence_manager::TaskQueue::TaskTiming *, base::LazyNow *) method, blink::scheduler::MainThreadTaskQueue * && receiver_ptr, const base::sequence_manager::Task & args, base::sequence_manager::TaskQueue::TaskTiming * && args, base::LazyNow * && args) Zeile 738	C++
 	[Inlineframe] chrome.dll!base::internal::InvokeHelper<0,base::internal::FunctorTraits<void (blink::scheduler::MainThreadTaskQueue::*const &)(const base::sequence_manager::Task &, base::sequence_manager::TaskQueue::TaskTiming *, base::LazyNow *),blink::scheduler::MainThreadTaskQueue *>,void,0>::MakeItSo(void(blink::scheduler::MainThreadTaskQueue::*)(const base::sequence_manager::Task &, base::sequence_manager::TaskQueue::TaskTiming *, base::LazyNow *) & functor, const std::__Cr::tuple<base::internal::UnretainedWrapper<blink::scheduler::MainThreadTaskQueue,base::unretained_traits::MayNotDangle,0>> & bound, const base::sequence_manager::Task & args, base::sequence_manager::TaskQueue::TaskTiming * && args, base::LazyNow * && args) Zeile 930	C++
 	[Inlineframe] chrome.dll!base::internal::Invoker<base::internal::FunctorTraits<void (blink::scheduler::MainThreadTaskQueue::*const &)(const base::sequence_manager::Task &, base::sequence_manager::TaskQueue::TaskTiming *, base::LazyNow *),blink::scheduler::MainThreadTaskQueue *>,base::internal::BindState<1,1,0,void (blink::scheduler::MainThreadTaskQueue::*)(const base::sequence_manager::Task &, base::sequence_manager::TaskQueue::TaskTiming *, base::LazyNow *),base::internal::UnretainedWrapper<blink::scheduler::MainThreadTaskQueue,base::unretained_traits::MayNotDangle,0>>,void (const base::sequence_manager::Task &, base::sequence_manager::TaskQueue::TaskTiming *, base::LazyNow *)>::RunImpl(void(blink::scheduler::MainThreadTaskQueue::*)(const base::sequence_manager::Task &, base::sequence_manager::TaskQueue::TaskTiming *, base::LazyNow *) & functor, const std::__Cr::tuple<base::internal::UnretainedWrapper<blink::scheduler::MainThreadTaskQueue,base::unretained_traits::MayNotDangle,0>> & bound, std::__Cr::integer_sequence<unsigned long long,0>, const base::sequence_manager::Task & unbound_args, base::sequence_manager::TaskQueue::TaskTiming * && unbound_args, base::LazyNow * && unbound_args) Zeile 1067	C++
 	[Inlineframe] chrome.dll!base::internal::Invoker<base::internal::FunctorTraits<void (blink::scheduler::MainThreadTaskQueue::*const &)(const base::sequence_manager::Task &, base::sequence_manager::TaskQueue::TaskTiming *, base::LazyNow *),blink::scheduler::MainThreadTaskQueue *>,base::internal::BindState<1,1,0,void (blink::scheduler::MainThreadTaskQueue::*)(const base::sequence_manager::Task &, base::sequence_manager::TaskQueue::TaskTiming *, base::LazyNow *),base::internal::UnretainedWrapper<blink::scheduler::MainThreadTaskQueue,base::unretained_traits::MayNotDangle,0>>,void (const base::sequence_manager::Task &, base::sequence_manager::TaskQueue::TaskTiming *, base::LazyNow *)>::Run(base::internal::BindStateBase * base, const base::sequence_manager::Task & unbound_args, base::sequence_manager::TaskQueue::TaskTiming * unbound_args, base::LazyNow * unbound_args) Zeile 987	C++
 	[Inlineframe] chrome.dll!base::RepeatingCallback<void (const base::sequence_manager::Task &, base::sequence_manager::TaskQueue::TaskTiming *, base::LazyNow *)>::Run(const base::sequence_manager::Task & args, base::sequence_manager::TaskQueue::TaskTiming * args, base::LazyNow * args) Zeile 344	C++
 	[Inlineframe] chrome.dll!base::sequence_manager::internal::TaskQueueImpl::OnTaskCompleted(const base::sequence_manager::Task & task, base::sequence_manager::TaskQueue::TaskTiming * task_timing, base::LazyNow * lazy_now) Zeile 1376	C++
 	[Inlineframe] chrome.dll!base::sequence_manager::internal::SequenceManagerImpl::NotifyDidProcessTask(base::sequence_manager::internal::SequenceManagerImpl::ExecutingTask * executing_task, base::LazyNow * time_after_task) Zeile 910	C++
 	chrome.dll!base::sequence_manager::internal::SequenceManagerImpl::DidRunTask(base::LazyNow & lazy_now) Zeile 679	C++
 	[Inlineframe] chrome.dll!base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::LazyNow * continuation_lazy_now) Zeile 500	C++
 	chrome.dll!base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() Zeile 346	C++
 	chrome.dll!base::MessagePumpDefault::Run(base::MessagePump::Delegate * delegate) Zeile 41	C++
 	chrome.dll!base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool application_tasks_allowed, base::TimeDelta timeout) Zeile 657	C++
 	chrome.dll!base::RunLoop::Run(const base::Location & location) Zeile 136	C++
 	chrome.dll!content::RendererMain(content::MainFunctionParams parameters) Zeile 367	C++
 	chrome.dll!content::RunOtherNamedProcessTypeMain(const std::__Cr::basic_string<char,std::__Cr::char_traits<char>,std::__Cr::allocator<char>> & process_type, content::MainFunctionParams main_function_params, content::ContentMainDelegate * delegate) Zeile 798	C++
 	chrome.dll!content::ContentMainRunnerImpl::Run() Zeile 1177	C++
 	[Inlineframe] chrome.dll!content::RunContentProcess(content::ContentMainParams params, content::ContentMainRunner * content_main_runner) Zeile 333	C++
 	chrome.dll!content::ContentMain(content::ContentMainParams params) Zeile 346	C++
 	chrome.dll!ChromeMain(HINSTANCE__ * instance, sandbox::SandboxInterfaceInfo * sandbox_info, __int64 exe_entry_point_ticks) Zeile 230	C++
 	chrome.exe!MainDllLoader::Launch(HINSTANCE__ * instance, base::TimeTicks exe_entry_point_ticks) Zeile 181	C++
 	chrome.exe!wWinMain(HINSTANCE__ * instance, HINSTANCE__ * prev, wchar_t *, int) Zeile 351	C++
 	[Externer Code]	

What I found interesting is that the blink::WebTransportCloseInfo object is converted to a blink::WebSocketCloseInfo. This may be a side effect of the change of the close code type in web transport, which now matches the WebSocketCloseInfo???

The code owner of the affected code is [email protected] .

Besides, I am sitting at the debugger and do not have a clue what caused it, as I am not that familiar with the code. If this changes, I may report more information later.

FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION Type of crash: Tab crash Crash State: See stack trace above crash id: 718f5204b07e6a81 Client ID (if relevant): [see link above]

CREDIT INFORMATION Externally reported security bugs may appear in Chrome release notes. If this bug is included, how would you like to be credited? Reporter credit: Marten Richter [email protected]

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

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

How it worked

Root cause

Likely a type confusion where a WebTransportCloseInfo object is incorrectly treated as a WebSocketCloseInfo during promise resolution, leading to an out-of-bounds read.

Impact

A remote attacker could cause a tab crash (STATUS_ACCESS_VIOLATION) in Chrome versions 126, 127, and Canary, but not in version 119.

What the attacker needed

Victim visits a malicious webpage; browser supports WebTransport

How it was found

  1. Set up a WebTransport server using the provided Node.js package.
  2. Run the bidirectional-streams test in a vulnerable Chrome version.
  3. Observe the browser tab crash with STATUS_ACCESS_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.

WebTransport is a new web feature for sending data between a browser and a server. A bug in how the browser handled closing a WebTransport connection caused it to read memory incorrectly, which made the browser tab crash. This is a type of memory safety bug that can sometimes be exploited for more than just a crash.

What is Memory corruption?

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

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

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