Issue metadata
Sign in to add a comment
|
Heap-use-after-free in TabStripModel::SendDetachWebContentsNotifications |
||||||||||||||||||||||
Issue descriptionDetailed report: https://clusterfuzz.com/testcase?key=5447007976816640 Fuzzer: attekett_dom_fuzzer Job Type: linux_asan_chrome_media Platform Id: linux Crash Type: Heap-use-after-free READ 8 Crash Address: 0x608000156e40 Crash State: TabStripModel::SendDetachWebContentsNotifications TabStripModel::CloseWebContentses TabStripModel::InternalCloseTabs Sanitizer: address (ASAN) Recommended Security Severity: Critical Regressed: https://clusterfuzz.com/revisions?job=linux_asan_chrome_media&range=557904:557910 Reproducer Testcase: https://clusterfuzz.com/download?testcase_id=5447007976816640 Issue filed automatically. See https://github.com/google/clusterfuzz-tools for more information.
,
May 13 2018
Automatically assigning owner based on suspected regression changelist https://chromium.googlesource.com/chromium/src/+/2969739effcde2fdba105d25d8db903bdfdb5db0 (Explicit ownership semantics for TabStripModel.). If this is incorrect, please let us know why and apply the Test-Predator-Wrong-CLs label. If you aren't the correct owner for this issue, please unassign yourself as soon as possible so it can be re-triaged.
,
May 14 2018
,
May 14 2018
This is a critical security issue. If you are not able to fix this quickly, please revert the change that introduced it. If this doesn't affect a release branch, or has not been properly classified for severity, please update the Security_Impact or Security_Severity labels, and remove the ReleaseBlock label. To disable this altogether, apply ReleaseBlock-NA. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
May 14 2018
,
May 14 2018
This bug is caused by the JavascriptDialogTabHelper failing to deregister itself as a TabStripModel observer when it's destroyed. https://cs.chromium.org/chromium/src/chrome/browser/ui/javascript_dialogs/javascript_dialog_tab_helper.cc?type=cs&q=JavaScriptDialogTabHelper&sq=package:chromium&g=0&l=523 I'm guessing my CL changed around some timings that made this occur more frequently/on paths that ASAN could catch.
,
May 14 2018
,
May 14 2018
My CL increases the frequency of an existing UaF. JavascriptDialogTabHelper fails to correctly deal with the case where a WebContents is first removed from the tab strip, and then destroyed. My CL makes it so that this ordering is the norm, rather than the exception. Initially, this caused an immediate crash. The following CL: https://bugs.chromium.org/p/chromium/issues/detail?id=786178#c4 prevented the crash from occurring immediately, but caused the JavascriptDialogTabHelper to fail to deregister itself as the TabStripModel observer, which would cause UaF.
,
May 14 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/3d4023a5e2cf54a1d5faa4a22f79f01f5eaa0667 commit 3d4023a5e2cf54a1d5faa4a22f79f01f5eaa0667 Author: erikchen <erikchen@chromium.org> Date: Mon May 14 19:08:03 2018 Fix use after free in JavaScriptDialogTabHelper. Any time the WebContents is removed from the TabStripModel and then destroyed, JavaScriptDialogTabHelper would fail to deregister itself as an observer of the TabStripModel. This would cause use after free. Change-Id: I162f5f7c65b0b2848a922130cefc31348eeecc6e Bug: 842545 Reviewed-on: https://chromium-review.googlesource.com/1057873 Commit-Queue: Erik Chen <erikchen@chromium.org> Reviewed-by: Avi Drissman <avi@chromium.org> Cr-Commit-Position: refs/heads/master@{#558403} [modify] https://crrev.com/3d4023a5e2cf54a1d5faa4a22f79f01f5eaa0667/chrome/browser/ui/javascript_dialogs/javascript_dialog_tab_helper.cc [modify] https://crrev.com/3d4023a5e2cf54a1d5faa4a22f79f01f5eaa0667/chrome/browser/ui/javascript_dialogs/javascript_dialog_tab_helper.h
,
May 14 2018
,
May 15 2018
ClusterFuzz has detected this issue as fixed in range 558386:558403. Detailed report: https://clusterfuzz.com/testcase?key=5447007976816640 Fuzzer: attekett_dom_fuzzer Job Type: linux_asan_chrome_media Platform Id: linux Crash Type: Heap-use-after-free READ 8 Crash Address: 0x608000156e40 Crash State: TabStripModel::SendDetachWebContentsNotifications TabStripModel::CloseWebContentses TabStripModel::InternalCloseTabs Sanitizer: address (ASAN) Recommended Security Severity: Critical Regressed: https://clusterfuzz.com/revisions?job=linux_asan_chrome_media&range=557904:557910 Fixed: https://clusterfuzz.com/revisions?job=linux_asan_chrome_media&range=558386:558403 Reproducer Testcase: https://clusterfuzz.com/download?testcase_id=5447007976816640 See https://github.com/google/clusterfuzz-tools for more information. If you suspect that the result above is incorrect, try re-doing that job on the test case report page.
,
May 15 2018
ClusterFuzz testcase 5447007976816640 is verified as fixed, so closing issue as verified. If this is incorrect, please add ClusterFuzz-Wrong label and re-open the issue.
,
May 15 2018
,
Jun 4 2018
Also found by inferno_twister_c I'm afraid.
,
Jun 5 2018
,
Aug 21
This bug has been closed for more than 14 weeks. Removing security view restrictions. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Sep 14
Issue 811761 has been merged into this issue. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by ClusterFuzz
, May 13 2018Labels: Test-Predator-Auto-Components