Use after free in TabStrip (CVE-2026-9954)
A callback in the tab strip nudge animation was bound with an unretained pointer and could be deferred to a later task, so if the owning container was destroyed in between, the callback dereferenced freed memory. An attacker who could trigger the show/hide sequence and then cause the container to be torn down could potentially exploit this use-after-free.
- Fix shipped in 39 days
What
In chrome/browser/ui/views/tabs/tab_strip_action_container.cc, the two
nudge entry points ExecuteShowTabStripNudge and ExecuteHideTabStripNudge
construct a TabStripNudgeAnimationSession with its on_animation_ended_
callback bound via base::Unretained(this):
animation_session_ = std::make_unique<TabStripNudgeAnimationSession>(
button, this,
TabStripNudgeAnimationSession::AnimationSessionType::kShow,
base::BindOnce(&TabStripActionContainer::OnAnimationSessionEnded,
base::Unretained(this)), // <-- unsafe
...);
TabStripNudgeAnimationSession::MarkAnimationDone does NOT always invoke
the callback synchronously. When the animation completes inside the
synchronous Show()/Hide() call path (i.e. is_executing_show_or_hide_
is true), it defers the callback via PostTask:
if (is_executing_show_or_hide_) {
base::SingleThreadTaskRunner::GetCurrentDefault()->PostTask(
FROM_HERE, std::move(on_animation_ended_));
} else {
std::move(on_animation_ended_).Run();
}
If TabStripActionContainer is destroyed between the PostTask and the task running (for example because the TabStrip is rebuilt, a profile switch happens, or the browser window closes while the show/hide sequence is still in-flight), the deferred callback dereferences a freed TabStripActionContainer.
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 callback was bound with base::Unretained(this) and could be posted as a deferred task, so it did not keep the TabStripActionContainer alive until the task ran.
What the attacker needed
Trigger the tab strip nudge show/hide; cause the container to be destroyed in between
The fix
The callback should be bound with a weak pointer (or the session should be cancelled on destruction) so the deferred task does not run against a destroyed object.
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.
When a program schedules work to happen later, it must make sure the thing that work refers to still exists when the time comes. Here the code kept a raw pointer to an object without keeping it alive, and the object could be deleted before the delayed callback ran. The callback then touched memory that had already been freed, which is a use-after-free and can crash or, in the worst case, be abused.
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.