Skip to content
Access control Advisory Advanced CVE-2026-106226

Improper input validation in Compositing (CVE-2026-106226)

The Mojo deserialisation for render frame metadata checked that the top controls shown ratio was finite but not that it fell within a valid range, so a compromised renderer could send an oversized value. That value produced a large positive translation offset which survived the browser-side clamp and pushed the Android toolbar and composited URL bar off-screen, removing security UI.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 months

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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A potential vulnerability in RenderFrameMetadata Mojo traits fails to restrict the top_controls_shown_ratio to a valid range, allowing a compromised renderer to submit excessively large values. This bypasses security invariants intended to keep top controls on-screen, generating a positive translation offset that survives Android browser-side clamps. As a result, both the physical Android toolbar and the composited URL-bar can be positioned off-screen, leading to security UI removal.

Affected files:

  • cc/mojom/render_frame_metadata_mojom_traits.cc
  • content/browser/renderer_host/render_widget_host_view_android.cc
  • chrome/android/java/src/org/chromium/chrome/browser/fullscreen/BrowserControlsManager.java
  • chrome/browser/android/compositor/layer/toolbar_layer.cc

Estimated timestamp from git blame: 2018-05-15

Description

A potential logic-based security UI removal vulnerability exists on Android due to missing input validation on the top_controls_shown_ratio and bottom_controls_shown_ratio fields inside the Mojo traits for cc::RenderFrameMetadata. A compromised renderer can supply abnormally large positive floats (e.g., 100.0f) for the shown ratios, which bypass browser-process clamps and displace the Android top controls (including the omnibox/URL bar) and content layer far off-screen.

Root Cause

In cc/mojom/render_frame_metadata_mojom_traits.cc, the deserialization logic performs validations to ensure the controls heights are non-negative and finite, but fails to check the range of the shown ratios:

C++
  out->top_controls_height = data.top_controls_height();
  out->top_controls_shown_ratio = data.top_controls_shown_ratio();

  // Ensure top controls are finite and non-negative heights so that the top
  // controls cannot be moved offscreen by the renderer.
  if (!std::isfinite(out->top_controls_height) ||
      out->top_controls_height < 0 ||
      !std::isfinite(out->top_controls_shown_ratio)) {
    return false;
  }

While it validates that top_controls_shown_ratio is finite, it does not validate its range (specifically, that it is bounded within [0.0, 1.0]).

Potential Attack Flow / Trigger Path

(Note: These are suggested/potential steps based on codebase analysis; our tooling agent does not currently have the capability to execute code or run a working Proof-of-Concept):

  1. A compromised Android renderer sends cc.mojom.RenderFrameMetadataObserverClient.OnRenderFrameMetadataChanged with top_controls_height = 168.0f and a malicious top_controls_shown_ratio = 100.0f.

  2. The Mojo traits reader accepts the payload since both variables are finite and heights are positive.

  3. In RenderWidgetHostViewAndroid::UpdateControls (content/browser/renderer_host/render_widget_host_view_android.cc), the browser calculates the translation offset:

    • top_content_offset = 168.0f * 100.0f = 16800.0f
    • top_translate = 16800.0f - 168.0f = +16632.0f and dispatches it via JNI to the Java layer.
  4. In BrowserControlsManager.java (chrome/android/java/src/org/chromium/chrome/browser/fullscreen/BrowserControlsManager.java), the clamp used to restrict the offset is only one-sided:

    Java
    int rendererTopControlOffset = Math.max(topControlsOffset, -getTopControlsHeight());
    

    Thus, rendererTopControlOffset resolves to +16632 and mControlOffsetRatio becomes ~99.0f.

  5. Since mControlOffsetRatio > 0, shouldShowAndroidControls() evaluates to false and sets the physical Android-View toolbar container to View.INVISIBLE.

  6. Concurrently, TopControlsStacker propagates the large positive translation of +16632 down to the layers. In locked SHOWN states, hasMinHeight is true, so the OffsetTag is nulled, allowing the offset to bypass the Viz compositor-side OffsetTagConstraints clamp.

  7. In native ToolbarLayer::PushResource (chrome/browser/android/compositor/layer/toolbar_layer.cc), the composited URL-bar layer is positioned statically at y_offset = +16632, drawing it way off-screen below the visual viewport.

  8. Similarly, StaticLayout.java updates CONTENT_OFFSET_Y to 16800, shifting the page's static content layer far below the screen.

  9. This results in the complete visual removal of the primary security UI (the Omnibox/URL bar) while the browser process intends it to be locked shown, which can lead to severe UI confusion or URL spoofing.

Suggested Fix

We suggest constraining both top_controls_shown_ratio and bottom_controls_shown_ratio to the valid [0.0, 1.0] range directly during Mojo deserialization in cc/mojom/render_frame_metadata_mojom_traits.cc.

For example, update the deserialization validation checks as follows:

C++
  if (!std::isfinite(out->top_controls_height) ||
      out->top_controls_height < 0 ||
      !std::isfinite(out->top_controls_shown_ratio) ||
      out->top_controls_shown_ratio < 0 ||
      out->top_controls_shown_ratio > 1) {
    return false;
  }

And make a corresponding change for the bottom controls validation check.

Evaluated with Chrome root at commit: e9507a33bb4148ee071aaaf8a7e9ad68770359bf


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

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.

The original report as published on the Chromium issue tracker. 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 the Mojo traits reader validated that the shown ratios were finite but never bounded them to the expected zero-to-one range, and the downstream Java clamp was one-sided.

Impact

A compromised renderer could remove the primary security UI on Android, which the text says can lead to severe UI confusion or URL spoofing; the report notes no working proof of concept was executed.

What the attacker needed

Compromised Android renderer; Android build of the browser

The fix

The shown ratios should be constrained to the valid zero-to-one range during Mojo deserialisation, with a matching change for the bottom controls.

How it was found

  1. A compromised Android renderer sends a render frame metadata update with a normal controls height and an abnormally large shown ratio.
  2. The Mojo traits reader accepts the payload because the values are finite and the height is positive.
  3. The browser computes a large positive translation offset and passes it to the Java layer.
  4. The one-sided clamp lets the positive offset through, so the control offset ratio becomes large and positive.
  5. The physical Android toolbar is set to invisible and the composited URL bar is drawn far off-screen, along with the content layer.

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 web page's drawing work runs in a separate, less trusted process called the renderer. It sends small messages to the more trusted browser process to tell it things like how far the address bar should slide. Here the browser checked that one of those numbers was a real number but not that it was sensible, so a malicious renderer could send a huge number and shove the address bar off the screen, making it hard for the user to see which site they are on.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.