New issue
Advanced search Search tips

Issue 760445 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Security



Sign in to add a comment

Stack-buffer-overflow in content::BlinkTestController::OnAllServiceWorkersCleared

Project Member Reported by ClusterFuzz, Aug 30 2017

Issue description

Detailed report: https://clusterfuzz.com/testcase?key=5481438316331008

Fuzzer: inferno_layout_test_unmodified
Job Type: windows_asan_content_shell
Platform Id: windows

Crash Type: Stack-buffer-overflow READ 4
Crash Address: 0x0054e9dc
Crash State:
  content::BlinkTestController::OnAllServiceWorkersCleared
  base::debug::TaskAnnotator::RunTask
  base::MessageLoop::RunTask
  
Sanitizer: address (ASAN)

Recommended Security Severity: Medium

Regressed: https://clusterfuzz.com/revisions?job=windows_asan_content_shell&range=494575:494617

Reproducer Testcase: https://clusterfuzz.com/download?testcase_id=5481438316331008

Issue filed automatically.

See https://github.com/google/clusterfuzz-tools for more information.
 
Project Member

Comment 1 by sheriffbot@chromium.org, Aug 30 2017

Labels: M-62
Project Member

Comment 2 by sheriffbot@chromium.org, Aug 30 2017

Labels: ReleaseBlock-Stable
This is a serious security regression. 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
Project Member

Comment 3 by sheriffbot@chromium.org, Aug 30 2017

Labels: Pri-1
Components: Blink
Owner: lukasza@chromium.org
Status: Assigned (was: Untriaged)
lukasza: this appears to having started crashing very recently. I see you changed the method where it's crashing; do you mind triaging? I didn't see anything obvious in the regression range that would cause this.
Cc: jochen@chromium.org
Labels: -Pri-1 -Security_Impact-Head -ReleaseBlock-Stable Security_Impact-None ReleaseBlock-NA Pri-2
It seems to me that when BlinkTestController::OnAllServiceWorkersCleared is called, the |this| object has already been destroyed (it is wrapped in base::Unretained inside BlinkTestController::OnTestFinished - AFAICT this base::Unretained dates back to r189974 by jochen@).

Given that the problem only affects test code (the crash and the base::Unretained are inside BlinkTestController), I don't think there is any security impact here.
Project Member

Comment 6 by sheriffbot@chromium.org, Aug 31 2017

Labels: -ReleaseBlock-NA
This implies that OnAllServiceWorkersCleared comes in long after the corresponding RenderView is deleted. This should not happen.
Project Member

Comment 8 by ClusterFuzz, Sep 17 2017

ClusterFuzz has detected this issue as fixed in range 502500:502501.

Detailed report: https://clusterfuzz.com/testcase?key=5481438316331008

Fuzzer: inferno_layout_test_unmodified
Job Type: windows_asan_content_shell
Platform Id: windows

Crash Type: Stack-buffer-overflow READ 4
Crash Address: 0x0054e9dc
Crash State:
  content::BlinkTestController::OnAllServiceWorkersCleared
  base::debug::TaskAnnotator::RunTask
  base::MessageLoop::RunTask
  
Sanitizer: address (ASAN)

Recommended Security Severity: Medium

Regressed: https://clusterfuzz.com/revisions?job=windows_asan_content_shell&range=494575:494617
Fixed: https://clusterfuzz.com/revisions?job=windows_asan_content_shell&range=502500:502501

Reproducer Testcase: https://clusterfuzz.com/download?testcase_id=5481438316331008

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.
Project Member

Comment 9 by ClusterFuzz, Sep 17 2017

Labels: ClusterFuzz-Verified
Status: Verified (was: Assigned)
ClusterFuzz testcase 5481438316331008 is verified as fixed, so closing issue as verified.

If this is incorrect, please add ClusterFuzz-Wrong label and re-open the issue.
Project Member

Comment 10 by sheriffbot@chromium.org, Sep 17 2017

Labels: -Restrict-View-SecurityTeam Restrict-View-SecurityNotify
Project Member

Comment 11 by sheriffbot@chromium.org, Dec 24 2017

Labels: -Restrict-View-SecurityNotify allpublic
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

Sign in to add a comment