New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 621850 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Jul 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug-Security

Blocked on:
issue 569709



Sign in to add a comment

Heap-use-after-free in device::MockBluetoothGattNotifySession::DoNotify

Project Member Reported by ClusterFuzz, Jun 21 2016

Issue description

Detailed report: https://cluster-fuzz.appspot.com/testcase?key=6455297787035648

Fuzzer: inferno_layout_test_unmodified
Job Type: windows_syzyasan_content_shell
Platform Id: windows

Crash Type: Heap-use-after-free READ 4
Crash Address: 0x2b422533
Crash State:
  device::MockBluetoothGattNotifySession::DoNotify
  base::internal::Invoker<base::IndexSequence<0,1,2,3>,base::internal::BindState<b
  base::Timer::RunScheduledTask
  
Recommended Security Severity: High


Unminimized Testcase: https://cluster-fuzz.appspot.com/download/AMIfv977kDcjey-wCfGoXoCxoLOkoldycs7IhPTUrc6SX0VYlU8QhZJOjrCHS97hxpuJB83YnPOq6UTygmlk1b94GmIAfBMjxcjN9VusVJV3gbriIoFEL6haxwaQo2SRv-0sFp6wcvguUKOC1DNZxYB2h5j6KWVv3blEfnWI9S45APXYZLEcGlE?testcase_id=6455297787035648


Filer: mmoroz

See https://dev.chromium.org/Home/chromium-security/bugs/reproducing-clusterfuzz-bugs for more information.
 

Comment 1 by mmoroz@chromium.org, Jun 21 2016

Components: Blink>Bluetooth
Labels: Pri-1
Owner: ortuno@chromium.org
ortuno@, could you please help to triage this?

Comment 2 by ortuno@chromium.org, Jun 21 2016

Labels: -Security_Severity-High Security_Severity-Medium
Status: Assigned (was: Available)
Lowering the security severity since the use after free is happening in a Fake used only in Layout Tests. I'll investigate.

Comment 3 by aarya@google.com, Jun 21 2016

Labels: Security_Impact-None
Since this is fake only, no security impact.

Comment 4 by ortuno@chromium.org, Jun 21 2016

Blockedon: 569709
Labels: -Pri-1 Pri-3
Project Member

Comment 5 by ClusterFuzz, Jun 22 2016

Detailed report: https://cluster-fuzz.appspot.com/testcase?key=5985295438970880

Fuzzer: inferno_twister
Job Type: linux_asan_content_shell_drt
Platform Id: linux

Crash Type: Heap-use-after-free READ 8
Crash Address: 0x61f0000292a0
Crash State:
  device::MockBluetoothGattNotifySession::DoNotify
  base::Timer::RunScheduledTask
  base::debug::TaskAnnotator::RunTask
  
Recommended Security Severity: High

Regressed: https://cluster-fuzz.appspot.com/revisions?job=linux_asan_content_shell_drt&range=396347:396435

Minimized Testcase (25.86 Kb): https://cluster-fuzz.appspot.com/download/AMIfv97Ba9pnZLe_Gz1yofvUgPArvz-CQhL7o8D4wl7OYXyS8uzZvgKP2APieu8_EIdCvJGrPWdXnBcjG2d1mznl5b27ozZMgwqbSWbxQVxqfPdjoru1ZmRMdQ_vmjTmRHg0ijOr6dMR-LoayjgY4EhQwBhA3SMqogTQ0kbJ1v7QPXDNRivWm-4?testcase_id=5985295438970880

Filer: tanin

See https://dev.chromium.org/Home/chromium-security/bugs/reproducing-clusterfuzz-bugs for more information.

Comment 6 by ortuno@chromium.org, Jun 23 2016

Status: WontFix (was: Assigned)
After two days of debugging (yay!) I finally figured out what's going on. The version of the resources file that the fuzzer is using is outdated. The outdated version releases a reference to the adapter (through a test only function) then when the test is done the device disconnects, releasing the last reference to the adapter and freeing it. When BluetoothGattNotifySession, tries to use the adapter, it's no longer there.

We removed the call that releases the first reference to the adapter from the resources files so this should no longer be a problem.

Comment 7 by mmoroz@chromium.org, Jul 13 2016

Status: Available (was: WontFix)
Project Member

Comment 8 by ClusterFuzz, Jul 13 2016

Detailed report: https://cluster-fuzz.appspot.com/testcase?key=6511004850847744

Fuzzer: inferno_twister
Job Type: windows_syzyasan_content_shell
Platform Id: windows

Crash Type: Heap-use-after-free READ 4
Crash Address: 0x2a7cc053
Crash State:
  device::MockBluetoothGattNotifySession::DoNotify
  base::internal::Invoker<base::internal::BindState<void
  base::Timer::RunScheduledTask
  
Recommended Security Severity: High


Unminimized Testcase: https://cluster-fuzz.appspot.com/download/AMIfv97s3rK7eFo3Ri1SGLGxjW8TpFYf1i4_lOwxvJNlMIn7IA_Zsdt9yDXhs4E_TEDJpTebeGB_IzL-ierM1HYfTqYAuslUtn54dXdNDkf6fZoZLk1sIwQYppxjDN5I8dUDoB5qkQnjrINm0neKiqeK1x2J2mENsZY77NB5KdedEyTtyJ2TuD8?testcase_id=6511004850847744


Filer: mmoroz

See https://dev.chromium.org/Home/chromium-security/bugs/reproducing-clusterfuzz-bugs for more information.

Comment 9 by mmoroz@chromium.org, Jul 13 2016

Status: WontFix (was: Available)
Status: Available (was: WontFix)
Project Member

Comment 11 by ClusterFuzz, Jul 19 2016

Detailed report: https://cluster-fuzz.appspot.com/testcase?key=6411328390692864

Fuzzer: ochang_domfuzzer
Job Type: linux_msan_content_shell_drt
Platform Id: linux

Crash Type: Use-of-uninitialized-value
Crash Address: 
Crash State:
  device::MockBluetoothGattNotifySession::DoNotify
  base::Timer::RunScheduledTask
  base::debug::TaskAnnotator::RunTask
  
Recommended Security Severity: Medium


Unminimized Testcase: https://cluster-fuzz.appspot.com/download/AMIfv97LieA_z8PNIVYa41-e8n1Gzzq3SJM5M4QsF1PYDwUka3ZdoSDCDpmJsVWIxS4deig9YeQiElpYF2BXPNFUcBELPaDRv-BpYBtDNSQse4PgcphKVdGD3kmOpe0M8hw3mNTL0j3508ojQ6rwGR0pVJVXmGHdmqE1kwZA6BnuwSIrTo7viKc?testcase_id=6411328390692864


Filer: mmoroz

See https://dev.chromium.org/Home/chromium-security/bugs/reproducing-clusterfuzz-bugs for more information.
Status: WontFix (was: Available)
Project Member

Comment 13 by sheriffbot@chromium.org, Oct 25 2016

Labels: -Restrict-View-SecurityTeam 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
Issue 668502 has been merged into this issue.

Sign in to add a comment