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

Use after free in User Education (CVE-2024-6998)

A use-after-free occurs in the browser's user education service when a tab group tutorial is started and the tab is closed, leaving a dangling pointer. An attacker who can trigger this sequence could crash the browser, and potentially exploit the freed memory.

Sven Dysthe -dys) Follow

Originally disclosed on Chrome VRP

Bounty$2,000 Medium View original
  • Fix shipped in 2 months

Steps to reproduce the problem

  1. Have only 1 tab open, open devtools, execute window.open(document.location). Close parent tab.
  2. Visit chrome://tab-search.top-chrome/
  3. In devtools execute:

setInterval(()=>{ document.querySelector("body > tab-search-app").apiProxy_.startTabGroupTutorial() }, 30); setTimeout(()=>{ window.close(); }, 2500);

Problem Description

UAF in destruction of object ~ScopedSavedTabGroupTutorialState.

Summary

use-after-free at browser_user_education_service.cc:120

Custom Questions

Type of crash:

Browser

Reporter credit:

Sven Dysthe @svn_dy

Additional Data

Category: Security
Chrome Channel: Canary
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

Root cause

Likely the tutorial state object is destroyed when the tab closes, but a callback or timer still references it, causing a use-after-free.

Impact

The browser could crash, and the use-after-free may be exploitable for code execution, though the report does not demonstrate this.

What the attacker needed

Chrome Canary; ability to run scripts in devtools; internal chrome:// page access

How it was found

  1. Open a single tab, open developer tools, and run a script that opens the current page in a new window.
  2. Close the original parent tab.
  3. Navigate to the internal tab-search page.
  4. Run a script that repeatedly starts the tab group tutorial and then closes the window after a delay.

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 memory bug where a program keeps using a piece of memory after it has been freed. Here, closing a tab while a tutorial is running leaves the browser pointing at memory that is no longer valid, which can crash it or let an attacker take control.

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.