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

Use after free in Navigation (CVE-2024-6777)

A use-after-free vulnerability exists in Chrome's WebUI navigation handling, specifically in content::RemoveWebUIManagedInterfaces. An attacker could potentially exploit this to cause a crash or possibly execute arbitrary code.

Sven Dysthe -dys) Follow

Originally disclosed on Chrome VRP

Bounty$2,500 High View original
  • Fix shipped in 40 days

Steps to reproduce the problem

Hi happy friday,

2 methods to reproduce this UAF.

Extension Method (automatic)

  1. Make sure Chrome has only 1 tab open in current window. Only the chrome://extension tab.
  2. Add poc.zip to Chrome

Manual Method:

  1. Visit chrome://print/ from URL bar.
  2. Visit chrome://print/1 from URL bar
  3. Press back button.
  4. Press forward button.

I can reproduce in Stable.

Problem Description

UAF in content::RemoveWebUIManagedInterfaces at RenderFrameHost* rfh = webui_controller->web_ui()->GetRenderFrameHost();

Additional Comments

Bisect:

You are probably looking for a change made after 1150389 (known good), but no later than 1150401 (first known bad). CHANGELOG URL: https://chromium.googlesource.com/chromium/src/+log/51513d937d1e1ebb5c5134083c695f35ca895083..77b19d7e83c7ee09bd488df602ecaa4385403e04

Summary

heap-use-after-free in in content::RemoveWebUIManagedInterfaces

Custom Questions

Type of crash:

browser

Reporter credit:

Sven Dysthe @svn-dys

Additional Data

Category: Security
Chrome Channel: Stable
Regression: N/A

The original report as published on the Chromium issue tracker, by Sven Dysthe (@svn-dys). 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

Impact

This could lead to a browser crash and potentially allow an attacker to execute arbitrary code.

What the attacker needed

Chrome browser; User interaction (navigation)

How it was found

  1. Open only the chrome://extensions tab in the current window.
  2. Add the provided poc.zip to Chrome.
  3. Visit chrome://print/ from the URL bar.
  4. Visit chrome://print/1 from the URL bar.
  5. Press the back button.
  6. Press the forward button.

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 bug where a program keeps using memory after it has been freed, which can lead to crashes or let an attacker run their own code. This report shows that navigating between certain internal Chrome pages can trigger this bug.

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 by Sven Dysthe -dys)

View all

6 more disclosed reports, best first.

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.