Use after free in Chromoting (CVE-2026-11116)
A use-after-free vulnerability exists in the Chrome Remote Desktop host process when an invalid SPAKE2 message triggers synchronous session teardown, destroying the authenticator while still on the call stack. An attacker could potentially exploit this to achieve remote code execution by hijacking the virtual method table.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 54 days
Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports without the Chrome Security team.
Overview: A potential Use-After-Free (UAF) vulnerability exists in the Chrome Remote Desktop host process. An invalid SPAKE2 message triggers a synchronous teardown of the session, destroying the authenticator tree while it is still on the call stack. Execution then resumes on the freed object, leading to a virtual method call on freed memory that could be exploited for Remote Code Execution.
Affected files:
remoting/protocol/session_authz_authenticator.ccremoting/protocol/spake2_authenticator.ccremoting/host/chromoting_host.ccremoting/protocol/jingle_session.ccremoting/host/client_session.cc
Estimated timestamp from git blame: 2026-02-12
Description
A potential Use-After-Free (UAF) vulnerability exists in the remoting::protocol::SessionAuthzAuthenticator class used by the Chrome Remote Desktop host (remoting_me2me_host).
The issue occurs because SessionAuthzAuthenticator delegates message processing to an underlying authenticator (typically Spake2Authenticator) and passes a continuation callback. If the underlying authentication fails, this callback is executed synchronously and initiates a complete teardown of the session. Because the session hierarchy is managed via std::unique_ptrs, the SessionAuthzAuthenticator itself is synchronously destroyed. However, after the callback returns, execution resumes in SessionAuthzAuthenticator where it accesses the now-freed this pointer to execute StartReauthorizerIfNecessary().
Inside StartReauthorizerIfNecessary(), the code accesses freed std::unique_ptr members and makes a virtual method call (underlying_->state()). Since this occurs in the unsandboxed host process, an attacker who reallocates the freed memory could hijack the virtual method table to achieve Remote Code Execution (RCE).
This vulnerability is not mitigated by MiraclePtr (BackupRefPtr) because the dangling pointer is the implicit this pointer on the call stack, and the internal members are held via standard std::unique_ptr rather than raw_ptr.
Note: The following steps are suggested/potential paths to trigger the vulnerability, as our analysis tooling does not currently have the ability to run code and provide a live proof-of-concept.
Suggested Attacker Steps
- The attacker initiates a Chrome Remote Desktop connection to a target host, obtaining a valid
SessionAuthzsession token (requiring some level of authorized identity). - During the negotiation phase, the attacker deliberately sends an invalid or malformed SPAKE2 message (e.g., an incorrect verification hash) alongside the valid session token.
SessionAuthzAuthenticator::ProcessMessage(orOnVerifiedSessionToken) executes and callsunderlying_->ProcessMessage(message, std::move(resume_callback));.- The
Spake2Authenticatorprocesses the message, detects the invalid payload, and transitions its state toREJECTED. Spake2Authenticatorsynchronously executes theresume_callback.- The callback propagates to
JingleSession::ProcessAuthenticationStep, which observes theREJECTEDstate and callsJingleSession::Close(). Close()triggers a synchronous state change toFAILED, which notifiesWebrtcConnectionToClient, which notifiesClientSession, which finally notifiesChromotingHost.ChromotingHost::OnSessionClosedsynchronously erases theClientSessionfrom itsclients_multimap.- This erasure cascades down, synchronously destroying the
ClientSession,WebrtcConnectionToClient,JingleSession,NegotiatingHostAuthenticator, and finally theSessionAuthzAuthenticator. - Execution unwinds and returns to
SessionAuthzAuthenticator::ProcessMessage, whereStartReauthorizerIfNecessary()is immediately invoked on the freedthispointer. - The virtual call
underlying_->state()uses the freed memory, providing a vtable hijack primitive if the attacker successfully manipulated the heap in the interim.
Suggested Fix
To safely handle synchronous destruction, the SessionAuthzAuthenticator should avoid accessing this after delegating to the underlying authenticator.
A common pattern to fix this is to bind the subsequent work (StartReauthorizerIfNecessary) to a base::WeakPtr and invoke it asynchronously via base::SingleThreadTaskRunner::GetCurrentDefault()->PostTask(...), or use a base::WeakPtr check immediately after underlying_->ProcessMessage returns before proceeding with any state access.
Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b
Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.
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
The SessionAuthzAuthenticator accesses its own 'this' pointer after a callback synchronously destroys the object, leading to a use-after-free.
Impact
An attacker who can reallocate the freed memory could hijack the virtual method table to achieve remote code execution in the unsandboxed host process.
What the attacker needed
Valid SessionAuthz session token; ability to send malformed SPAKE2 message; attacker can reallocate freed memory
The fix
The fix should avoid accessing 'this' after delegating to the underlying authenticator, for example by using a weak pointer and posting the work asynchronously.
How it was found
- The attacker initiates a Chrome Remote Desktop connection and obtains a valid session token.
- During negotiation, the attacker sends an invalid SPAKE2 message with the valid token.
- The authenticator processes the message, detects failure, and synchronously triggers session teardown.
- The teardown destroys the authenticator object while it is still on the call stack.
- Execution returns to the freed object and calls a virtual method, enabling potential vtable hijack.
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.
This report describes a memory safety bug in Chrome Remote Desktop. When a malformed authentication message is sent, the program frees an object but then tries to use it again, which can let an attacker run their own code. The report is theoretical and no working exploit was demonstrated.
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.