Use after free in Media Stream (CVE-2025-8292)
A use-after-free (reported by AddressSanitizer as use-after-poison) occurs in the MediaStreamAudioTrack stop-and-notify path in Chromium. The report only shows a crash triggered by a local proof-of-concept page, so the practical attacker impact is not established in the text.
- Fix shipped in 41 days
Security Bug
Important: Please do not change the component of this bug manually.
Please READ THIS FAQ before filing a bug: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/security/faq.md
Please see the following link for instructions on filing security bugs: https://www.chromium.org/Home/chromium-security/reporting-security-bugs
Reports may be eligible for reward payments under the Chrome VRP: https://g.co/chrome/vrp
NOTE: Security bugs are normally made public once a fix has been widely deployed.
VULNERABILITY DETAILS AddressSanitizer: use-after-poison in blink::MediaStreamAudioTrack::StopAndNotify(class base::OnceCallback<(void)>)
VERSION
asan-win32-release_x64-1476007
Reproduction Steps
- python -m http.server 8000
- Run:
chrome --autoplay-policy=no-user-gesture-required --js-flags="-expose-gc" --no-sandbox --user-data-dir=test --enable-logging=stderr poc.html
Type of crash
Tab
Root Cause Analysis (RCA)
Coming soon.
Context
This is a Chrome VRP report about a memory-safety defect in Blink's media stack. The affected component is Media Stream, specifically the audio track class blink::MediaStreamAudioTrack. Media Streams are the objects behind getUserMedia and WebRTC: a page obtains an audio track from a capture device or a peer connection, and the track is stopped when the page releases it or when the stream is torn down. MediaStreamAudioTrack::StopAndNotify is the routine that performs that shutdown and then runs a completion callback.
The crash class is a use-after-free, reported here by AddressSanitizer as a use-after-poison. The bug was assigned CVE-2025-8292, rated high severity, and paid a bounty of 8000.00 USD under the Chrome VRP. It was disclosed on 2025-07-29. The researcher is listed as anonymous.
Setup
The report gives a single build identifier for the affected version:
asan-win32-release_x64-1476007
That is an AddressSanitizer-instrumented, 64-bit Windows release build. The reproduction also relies on a JavaScript engine flag that exposes the garbage collector to script, so the test page can force collection at a chosen moment. The browser is launched with autoplay permitted without a user gesture, with the sandbox disabled, with a throwaway profile directory, and with logging to stderr. A local static file server hosts the proof-of-concept page.
Finding it
The researcher does not describe how the bug was discovered; the report contains only the crash signature, the version, the reproduction steps and a placeholder for the root cause analysis. What is known is the failure itself:
AddressSanitizer: use-after-poison in blink::MediaStreamAudioTrack::StopAndNotify(class base::OnceCallback<(void)>)
A use-after-poison under ASan means the code touched memory inside a region that the allocator had already quarantined, that is, an object that had been freed. The frame named in the signature is the stop-and-notify path of the audio track, taking a base::OnceCallback<void> that is invoked once the track has been stopped. The crash type is recorded as a tab crash, so the failure takes down the renderer process hosting the page rather than the whole browser.
Exploitation
Step 1: serve the proof of concept
python -m http.server 8000
This starts a simple HTTP server in the working directory on port 8000, so that poc.html is reachable over HTTP. Serving the page over HTTP rather than opening it from disk gives it a normal web origin.
Step 2: launch the instrumented browser against the page
chrome --autoplay-policy=no-user-gesture-required --js-flags="-expose-gc" --no-sandbox --user-data-dir=test --enable-logging=stderr poc.html
Each switch matters for the reproduction:
--autoplay-policy=no-user-gesture-requiredremoves the requirement for a user gesture before media can start, so the page can drive media playback and capture without interaction.--js-flags="-expose-gc"exposes the garbage collector to JavaScript, letting the page force a collection at the point where the stale reference is still reachable.--no-sandboxdisables the renderer sandbox, which is standard practice when running an ASan build under a debugger or when the instrumented binary cannot start sandboxed.--user-data-dir=testuses a fresh profile directory, so no existing state or permissions interfere.--enable-logging=stderrsends the browser log, including the ASan report, to standard error.
The page itself, poc.html, is not included in the report, so the exact sequence of media calls that triggers the free and the later use is not documented here.
Step 3: observe the crash
With the page loaded, the renderer hits the use-after-poison in MediaStreamAudioTrack::StopAndNotify and the tab crashes. The ASan report on stderr gives the signature quoted above.
Root cause
The report states that the root cause analysis is still to come, so the precise defect is not described. What can be said from the signature is that the stop-and-notify path of MediaStreamAudioTrack operates on an object that has already been freed, and that the completion callback passed as base::OnceCallback<void> is involved in that path. The use of -expose-gc in the reproduction suggests that forcing a garbage collection is part of making the stale reference observable, which points to an object lifetime that is not correctly tied to the track while the stop is in progress. Beyond that, the report does not say which reference was left dangling or which ownership rule was broken.
Impact
The report records the crash type as a tab crash and does not describe any path from the use-after-free to code execution, information disclosure or sandbox escape. The severity assigned to the issue is high, and it was rewarded under the Chrome VRP. Any stronger impact claim would go beyond what the report contains.
Fix
It notes only that security bugs are normally made public once a fix has been widely deployed, which is the usual Chrome disclosure practice.
Variants to test
- Other media track types with a similar stop-and-notify shutdown path. A positive result is an ASan use-after-poison or use-after-free in the corresponding stop routine when the page releases the track while a callback is pending.
- Forcing garbage collection at different points around track teardown using
--js-flags="-expose-gc". A positive result is a crash that only appears when the collection is forced, which indicates a lifetime that depends on GC timing. - Stopping a track while a completion callback is still queued, for example by tearing down the stream immediately after the stop call. A positive result is the same signature in
StopAndNotifyor in the callback invocation. - Running the same page under an ASan build with and without
--autoplay-policy=no-user-gesture-required. A positive result is that the crash requires the relaxed autoplay policy, which narrows the precondition.
Hunting notes
Media capture and WebRTC teardown code is a good place to look for lifetime bugs, because objects are shared between the page, the media pipeline and callback queues, and shutdown can race with garbage collection. The signals worth watching are ASan reports naming a StopAndNotify style routine together with a base::OnceCallback, and crashes that only reproduce when the garbage collector is forced through -expose-gc. In this case the report itself is thin: it gives the crash signature, the exact build, the server command and the browser command line, and leaves the root cause analysis pending.
What happened, in plain words
A security researcher found a way to make Google Chrome crash in a specific, repeatable way. The crash happens inside the part of Chrome that handles audio coming from a microphone or from another person on a video call. When the page tries to stop an audio track, Chrome sometimes reaches for a piece of memory that has already been thrown away. That kind of mistake is called a use-after-free, and it is the sort of bug that can sometimes be turned into something worse than a crash.
The bug was reported through the Chrome Vulnerability Reward Program (VRP), the scheme Google runs to pay people for finding security problems in Chrome. It was given the identifier CVE-2025-8292, rated high severity, and paid a bounty of 8000.00 USD. It was disclosed on 2025-07-29. The researcher is listed as anonymous.
This article walks through the report step by step, explaining every term as it comes up. The report itself is short: it gives the crash signature, the exact build, the commands to reproduce, and a placeholder where the root cause analysis will go. Everything below stays within what the report contains.
Context
The product and the feature
Chrome is a web browser. Inside it, a component called Blink turns web pages into what you see on screen and runs the JavaScript on them. The affected component here is called Media Stream, and more precisely a class named blink::MediaStreamAudioTrack.
A class, in programming, is a blueprint for an object: a bundle of data and the operations that can be performed on it. An object is one concrete thing built from that blueprint while the program runs. So MediaStreamAudioTrack is the blueprint for an audio track, and each audio track on a page is one object made from it.
What is an audio track? When a web page asks for your microphone, or when you are on a video call in the browser, the sound arrives as a stream made of tracks. A Media Stream is the container, and a track is one channel inside it, either audio or video. Media Streams carry audio and video tracks in the browser. getUserMedia is the browser feature that lets a page request access to your camera or microphone. WebRTC is the set of browser technologies that carry live audio and video between two browsers, the machinery behind in-browser video calls. A page obtains an audio track from a capture device (your microphone) or from a peer connection (the link to the other person), and the track is stopped when the page releases it or when the whole stream is torn down.
The routine at the centre of the report is MediaStreamAudioTrack::StopAndNotify. The double colon is just how programmers write "this function belongs to this class". So this is the stop-and-notify function of the audio track class. It does two things: it performs the shutdown of the track, and then it runs a completion callback.
A callback is a piece of code you hand to another piece of code and say "run this when you are done". A useful comparison is leaving your phone number at a repair shop: you go away, and they call you when the repair is finished. Here the callback is of type base::OnceCallback<void>. base is the name of a supporting library inside Chrome. OnceCallback means a callback that is guaranteed to be run exactly once. void means it does not hand back any value when it runs.
The kind of bug
The crash class is a use-after-free. To understand it, imagine a hotel. When a guest checks out, the room is cleaned and the key is taken back, but the room number still exists on the door. If someone later walks into that room using an old key, they are in a place they should no longer have access to. In a program, memory is handed out to objects, and when an object is no longer needed the memory is given back, or freed. A use-after-free means the program keeps using a reference to memory that has already been freed. Whatever now lives in that memory may be different, and reading or writing it produces unpredictable behaviour, often a crash.
AddressSanitizer, usually shortened to ASan, is a tool built into a special version of a program that watches memory use and shouts when something like this happens. The report was produced by ASan, which described the crash as a use-after-poison. Poisoning is ASan's technique: when memory is freed, ASan marks it as poisoned, meaning "do not touch". If the program touches it anyway, ASan reports a use-after-poison. In practice this is ASan's way of reporting a use-after-free, and the report treats the two as the same class of defect.
The identifiers
The bug was assigned CVE-2025-8292. CVE stands for Common Vulnerabilities and Exposures: a public catalogue where each security flaw gets a unique number so that everyone, across companies and countries, can refer to the same issue unambiguously. The severity was rated high, and the bounty paid was 8000.00 USD under the Chrome VRP. The disclosure date was 2025-07-29, and the researcher is listed as anonymous.
Setup
The build
The report gives one build identifier for the affected version:
asan-win32-release_x64-1476007
Reading it piece by piece: asan means this build has AddressSanitizer compiled in, so it can detect memory misuse. win32 means it is built for Windows. release means it is an optimised build of the kind users actually run, not a special debug build. x64 means it is a 64-bit build, for modern processors. The number at the end, 1476007, identifies the specific build. So this is an AddressSanitizer-instrumented, 64-bit Windows release build.
The reproduction also relies on a JavaScript engine flag that exposes the garbage collector to script. The garbage collector is the part of a program that automatically reclaims memory that is no longer in use, so programmers do not have to free everything by hand. Normally a page cannot decide when that happens. The flag lets the test page force a collection at a chosen moment, which is useful when you suspect a bug depends on timing.
The browser is launched with autoplay permitted without a user gesture, with the sandbox disabled, with a throwaway profile directory, and with logging to standard error. A local static file server hosts the proof-of-concept page. A proof of concept, or PoC, is a small, deliberately built example that demonstrates the bug.
Finding it
The report does not describe how the researcher discovered the bug. It contains only the crash signature, the version, the reproduction steps and a placeholder for the root cause analysis. What is known is the failure itself:
AddressSanitizer: use-after-poison in blink::MediaStreamAudioTrack::StopAndNotify(class base::OnceCallback<(void)>)
Line by line: AddressSanitizer: says which tool produced the message. use-after-poison is the kind of memory misuse it detected, ASan's name for touching memory that was freed. in blink::MediaStreamAudioTrack::StopAndNotify says where it happened: inside the stop-and-notify function of the audio track class in Blink. (class base::OnceCallback<(void)>) shows the type of the argument that function was given: a one-shot callback that returns nothing.
A use-after-poison under ASan means the code touched memory inside a region that the allocator had already quarantined, that is, an object that had been freed. The allocator is the part of the program that hands out and takes back memory. Quarantined means set aside and marked off limits.
The frame named in the signature is the stop-and-notify path of the audio track, taking a base::OnceCallback<void> that is invoked once the track has been stopped. A frame is one entry in the list of function calls that were in progress at the moment of the crash, like a stack of plates where each plate is a function waiting for the one above it to finish.
The crash type is recorded as a tab crash. Chrome runs each tab in its own separate process, called the renderer process, so that a failure in one page does not bring down the whole browser. A tab crash means the renderer process hosting the page died, and the rest of the browser survived.
Exploitation
Step 1: serve the proof of concept
python -m http.server 8000
This starts a simple HTTP server in the working directory on port 8000, so that poc.html is reachable over HTTP. HTTP is the protocol browsers and servers use to exchange web pages. A port is a numbered doorway on a computer; 8000 is simply the doorway chosen here. python -m http.server is a small web server that ships with the Python programming language, and 8000 tells it which port to listen on.
Why serve the page over HTTP rather than opening it from disk? Because a page loaded from a local file gets special treatment from the browser, while a page served over HTTP gets a normal web origin. An origin is the combination of protocol, host and port that a browser uses to decide what a page is allowed to do. Giving the test page a normal origin makes the test behave like a real website.
Step 2: launch the instrumented browser against the page
chrome --autoplay-policy=no-user-gesture-required --js-flags="-expose-gc" --no-sandbox --user-data-dir=test --enable-logging=stderr poc.html
This runs the Chrome program and passes it a series of switches, each starting with two dashes, followed by the page to open. Each switch matters for the reproduction:
--autoplay-policy=no-user-gesture-requiredremoves the requirement for a user gesture before media can start, so the page can drive media playback and capture without interaction. A user gesture is a real action by you, such as a click. Browsers normally require one before sound plays, to stop pages from blaring audio unprompted. Removing that requirement lets the test page start media on its own.--js-flags="-expose-gc"exposes the garbage collector to JavaScript, letting the page force a collection at the point where the stale reference is still reachable. A stale reference is a reference to something that no longer exists, the old hotel key from the earlier comparison. Forcing a collection at that exact moment is how the test makes the bug show itself.--no-sandboxdisables the renderer sandbox, which is standard practice when running an ASan build under a debugger or when the instrumented binary cannot start sandboxed. The sandbox is a security boundary that restricts what a tab's process is allowed to do on your computer, so that a compromised page cannot roam freely. Turning it off is acceptable for a controlled test but not for normal browsing.--user-data-dir=testuses a fresh profile directory, so no existing state or permissions interfere. Your profile is where the browser keeps bookmarks, history, settings and permissions. A fresh one means the test starts from a clean slate every time.--enable-logging=stderrsends the browser log, including the ASan report, to standard error. Standard error is one of the two text channels every program has for output; the other is standard output. Sending the log there makes it easy to capture in a terminal.
The page itself, poc.html, is not included in the report, so the exact sequence of media calls that triggers the free and the later use is not documented. In other words, we know the page exists and what it is called, but not what is inside it.
Step 3: observe the crash
With the page loaded, the renderer hits the use-after-poison in MediaStreamAudioTrack::StopAndNotify and the tab crashes. The ASan report on standard error gives the signature quoted above. So the sequence is: start the server, launch the instrumented browser on the page, and watch the terminal for the ASan message.
Root cause
The report states that the root cause analysis is still to come, so the precise defect is not described. The root cause is the underlying programming mistake that produces a bug, as opposed to its visible symptom.
What can be said from the signature is that the stop-and-notify path of MediaStreamAudioTrack operates on an object that has already been freed, and that the completion callback passed as base::OnceCallback<void> is involved in that path. The use of -expose-gc in the reproduction suggests that forcing a garbage collection is part of making the stale reference observable, which points to an object lifetime that is not correctly tied to the track while the stop is in progress. Object lifetime here means how long an object is guaranteed to stay alive and valid. Beyond that, the report does not say which reference was left dangling or which ownership rule was broken.
Impact
The report records the crash type as a tab crash and does not describe any path from the use-after-free to code execution, information disclosure or sandbox escape. Code execution means getting the computer to run an attacker's instructions. Information disclosure means leaking data the attacker should not see. A sandbox escape means getting out of the restricted process and reaching the rest of the machine. The severity assigned to the issue is high, and it was rewarded under the Chrome VRP. Any stronger impact claim would go beyond what the report contains.
Fix
It notes only that security bugs are normally made public once a fix has been widely deployed, which is the usual Chrome disclosure practice. The idea is to give users time to update before the details become public.
Variants to test
These are follow-up experiments suggested by the shape of the bug, each with a clear signal that would count as a hit:
- Other media track types with a similar stop-and-notify shutdown path. A positive result is an ASan use-after-poison or use-after-free in the corresponding stop routine when the page releases the track while a callback is pending. Pending means the callback has been handed over but has not run yet.
- Forcing garbage collection at different points around track teardown using
--js-flags="-expose-gc". A positive result is a crash that only appears when the collection is forced, which indicates a lifetime that depends on GC timing. - Stopping a track while a completion callback is still queued, for example by tearing down the stream immediately after the stop call. A positive result is the same signature in
StopAndNotifyor in the callback invocation. - Running the same page under an ASan build with and without
--autoplay-policy=no-user-gesture-required. A positive result is that the crash requires the relaxed autoplay policy, which narrows the precondition. A precondition is a condition that must hold before the bug can occur.
Hunting notes
Media capture and WebRTC teardown code is a good place to look for lifetime bugs, because objects are shared between the page, the media pipeline and callback queues, and shutdown can race with garbage collection. A race, in this context, means two things happening in an order the code did not expect. The signals worth watching are ASan reports naming a StopAndNotify style routine together with a base::OnceCallback, and crashes that only reproduce when the garbage collector is forced through -expose-gc.
In this case the report itself is thin: it gives the crash signature, the exact build, the server command and the browser command line, and leaves the root cause analysis pending. An exploit chain is a sequence of steps that turns a bug into a real attack; none is shown here.
Glossary
- AddressSanitizer (ASan): a tool compiled into a special build of a program that detects misuse of memory, such as touching memory that has been freed.
- Allocator: the part of a program that hands out memory to objects and takes it back when they are done.
- Audio track: one audio channel inside a media stream, for example the sound from your microphone.
- Autoplay policy: the browser rule that decides when media may start playing without the user clicking or otherwise interacting.
- base: the name of a supporting library inside Chrome.
- Blink: the part of Chrome that renders web pages and runs their JavaScript.
- Build: one compiled version of a program, identified by a name or number.
- Callback: a piece of code handed to another piece of code to be run later, usually when some work finishes.
- Class: a blueprint in a program that defines a kind of object, its data and its operations.
- Code execution: a situation where an attacker gets the computer to run their own instructions.
- CVE: Common Vulnerabilities and Exposures, a public catalogue giving each security flaw a unique number.
- Frame: one entry in the list of function calls in progress at a given moment.
- Garbage collector: the part of a program that automatically reclaims memory no longer in use.
- getUserMedia: the browser feature that lets a page request access to the camera or microphone.
- HTTP: the protocol browsers and servers use to exchange web pages.
- Information disclosure: leaking data to someone who should not see it.
- Media Stream: the browser object that carries audio and video tracks, used by
getUserMediaand WebRTC. - Object: one concrete thing created from a class while a program runs.
- Object lifetime: how long an object is guaranteed to stay alive and valid.
- OnceCallback: a callback type in Chrome's base library that is guaranteed to run exactly once.
- Origin: the combination of protocol, host and port that a browser uses to decide what a page may do.
- Poisoning: ASan's technique of marking freed memory as off limits so that any later touch is reported.
- Port: a numbered doorway on a computer that network traffic can be sent to.
- Precondition: a condition that must hold before a bug can occur.
- Proof of concept (PoC): a small, deliberately built example that demonstrates a bug.
- Quarantine: setting freed memory aside and marking it off limits.
- Race: two operations happening in an order the code did not expect.
- Renderer process: the separate process Chrome runs each tab in, so a failure in one page does not bring down the browser.
- Root cause: the underlying programming mistake that produces a bug, as opposed to its visible symptom.
- Sandbox: a security boundary that restricts what a tab's process may do on the computer.
- Sandbox escape: getting out of the restricted process and reaching the rest of the machine.
- Severity: a rating of how serious a security flaw is.
- Stale reference: a reference to something that no longer exists.
- Standard error: one of the two text channels every program has for output, commonly used for logs and errors.
- Tab crash: the failure of the renderer process hosting a tab, while the rest of the browser survives.
- Use-after-free: using a reference to memory that has already been freed.
- Use-after-poison: ASan's report name for touching memory it has marked as freed and off limits.
- User gesture: a real action by the user, such as a click, that browsers may require before allowing certain features.
- VRP (Vulnerability Reward Program): a scheme that pays people for finding and reporting security problems.
- WebRTC: the set of browser technologies that carry live audio and video between browsers.