Insufficient validation of untrusted input in GPU (CVE-2026-8538)
The browser process did not check that the client ID in a frame sink bundle ID belonged to the calling renderer. A compromised renderer could spoof a victim renderer's ID to freeze its rendering or crash its composition pipeline.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 48 days
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: The browser process fails to validate the client_id within a FrameSinkBundleId when a renderer registers a new frame sink bundle. A compromised renderer can exploit this to create a bundle associated with a victim renderer's ID, allowing it to freeze the victim's rendering or intentionally crash its composition pipeline (Denial of Service).
Affected files:
content/browser/renderer_host/embedded_frame_sink_provider_impl.cccomponents/viz/service/frame_sinks/frame_sink_bundle_impl.cccomponents/viz/service/frame_sinks/frame_sink_manager_impl.cccomponents/viz/service/frame_sinks/compositor_frame_sink_impl.cc
Estimated timestamp from git blame: 2022-11-08
Vulnerability
The content::EmbeddedFrameSinkProviderImpl class handles requests from renderers to create and manage CompositorFrameSinks. To ensure a renderer can only manage its own sinks, most methods in this class (e.g., RegisterEmbeddedFrameSink, CreateCompositorFrameSink) explicitly verify that the client_id component of any provided FrameSinkId matches the renderer_client_id_ assigned to that specific provider instance.
However, the RegisterEmbeddedFrameSinkBundle method completely omits this authorization check for the provided viz::FrameSinkBundleId:
// content/browser/renderer_host/embedded_frame_sink_provider_impl.cc
void EmbeddedFrameSinkProviderImpl::RegisterEmbeddedFrameSinkBundle(
const viz::FrameSinkBundleId& bundle_id,
mojo::PendingReceiver<viz::mojom::FrameSinkBundle> receiver,
mojo::PendingRemote<viz::mojom::FrameSinkBundleClient> client) {
// MISSING: Validation that bundle_id.client_id() == renderer_client_id_
host_frame_sink_manager_->CreateFrameSinkBundle(
bundle_id, std::move(receiver), std::move(client));
}
A similar omission exists in CreateBundledCompositorFrameSink, which checks the frame_sink_id but ignores the bundle_id.
Because of this missing validation, the browser process blindly forwards the attacker-controlled bundle_id to the GPU process. The GPU process (viz::FrameSinkManagerImpl) creates a FrameSinkBundleImpl using this spoofed ID and binds the attacker's Mojo receiver to it.
Potential Exploitation Steps
A compromised renderer (Attacker) could potentially execute the following steps to interfere with a cross-origin renderer (Victim):
- Identify the Victim's IDs: The Attacker determines the Victim's
client_id(a sequentialRenderProcessHostID starting from small integers) andsink_id(a sequential integer generated byRendererBlinkPlatformImpl, starting at0x80000000). Both are easily predictable. - Register a Spoofed Bundle: The Attacker calls
RegisterEmbeddedFrameSinkBundleon theirEmbeddedFrameSinkProviderMojo interface. They provide aFrameSinkBundleIdwhere theclient_idis set to the Victim's ID, and thebundle_idis an arbitrary unused integer. - Gain Control: The GPU process creates the bundle. The Attacker now holds a
viz::mojom::FrameSinkBundleremote that the GPU process believes belongs to the Victim. - Execute the Attack: The Attacker can now call methods on this bundle remote, passing the Victim's
sink_id. The GPU process'sFrameSinkBundleImpl::GetFrameSinkcombines the spoofedclient_idwith the providedsink_idand successfully resolves the Victim's legitimateCompositorFrameSinkImpl, without checking if that sink was ever explicitly added to this specific bundle.
From here, the Attacker has two primary reliable ways to impact the Victim:
- Silent Rendering Freeze: The Attacker calls
SetNeedsBeginFrame(false, victim_sink_id). This method requires no unguessable tokens. It immediately stops the GPU process from sendingBeginFramesignals to the Victim's sink, permanently freezing its visual output (e.g., freezing a cross-origin<video>or iframe). - Cross-Process Denial of Service (DoS): The Attacker calls
Submit()with a fake/emptyLocalSurfaceId. While they cannot inject a valid frame (because theLocalSurfaceIdcontains a 128-bitUnguessableTokenthey cannot guess), providing an invalid one causesCompositorFrameSinkSupport::MaybeSubmitCompositorFrameto fail validation. This failure triggersCompositorFrameSinkImplto callResetWithReasonon its Mojo receiver, forcefully terminating the Victim renderer's connection to that frame sink.
Suggested Fix
Add explicit validation to EmbeddedFrameSinkProviderImpl to ensure the bundle_id.client_id() matches the authorized renderer_client_id_.
void EmbeddedFrameSinkProviderImpl::RegisterEmbeddedFrameSinkBundle(
const viz::FrameSinkBundleId& bundle_id,
// ...
) {
if (bundle_id.client_id() != renderer_client_id_) {
receivers_.ReportBadMessage("Invalid client ID");
return;
}
// ...
}
A similar check should be added to CreateBundledCompositorFrameSink.
Evaluated with Chrome root at commit: 0eb4855bda702feaaa8b899336664f97e3df88b8
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. Please feel free to reach out to me if you have concerns or feedback.
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 `RegisterEmbeddedFrameSinkBundle` method omitted the check that the bundle's client ID matches the renderer's own client ID, unlike other methods in the same class.
Impact
A compromised renderer could freeze a victim renderer's visual output or forcefully terminate its connection to a frame sink, causing a denial of service.
What the attacker needed
Compromised renderer; predictable victim client ID; predictable victim sink ID
The fix
The fix should add a check that the bundle's client ID matches the renderer's own client ID, rejecting the request otherwise.
How it was found
- The attacker determines the victim's predictable client ID and sink ID.
- The attacker calls RegisterEmbeddedFrameSinkBundle with the victim's client ID and an arbitrary bundle ID.
- The GPU process creates the bundle and binds the attacker's remote to it.
- The attacker calls methods on the bundle remote using the victim's sink ID to freeze rendering or cause a crash.
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 renderer is the part of the browser that draws web pages. Each renderer has a unique ID, and the browser is supposed to check that a renderer only uses its own ID. Here, one renderer could pretend to be another and disrupt its display.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.