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

Issue 607721 link

Starred by 0 users

Issue metadata

Status: Fixed
Owner:
Closed: May 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 1
Type: Bug-Security



Sign in to add a comment

Use-of-uninitialized-value in woff2::ConvertWOFF2ToTTF

Project Member Reported by ClusterFuzz, Apr 28 2016

Issue description

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

Fuzzer: meacer_chromebot_extensions
Job Type: linux_msan_chrome
Platform Id: linux

Crash Type: Use-of-uninitialized-value
Crash Address: 
Crash State:
  ==1==WARNING:
  woff2::ConvertWOFF2ToTTF
  woff2::ConvertWOFF2ToTTF
  
Regressed: https://cluster-fuzz.appspot.com/revisions?job=linux_msan_chrome&range=386531:386650

Minimized Testcase (123.57 Kb): https://cluster-fuzz.appspot.com/download/AMIfv96l2ZrN0Vf5CG2q0pPlYG6a3yNZjRhpWLTv6xQiGsnS8pFWi2FVvcDgDx9gKeqh9b60idklX4zORur-uwxk29QAVh_zaxKTaIe_V01jIVR9P9wwXga6t6vTIAestkGBy9nUotrfcAelSB209qNMSbe_D0N8hRaFfddSl3lPt0bhVqGrdNQ

Filer: mbarbella

See https://dev.chromium.org/Home/chromium-security/bugs/reproducing-clusterfuzz-bugs for more information.
 
Labels: M-52
Owner: toyoshim@chromium.org
Status: Assigned (was: Available)
Summary: Use-of-uninitialized-value in woff2::ConvertWOFF2ToTTF (was: Use-of-uninitialized-value in ==1==WARNING:)
toyoshim: Could you take a look at this? Seems like a regression from the woff2 update in https://chromium.googlesource.com/chromium/src/+/116d7b0ac70c354ee5f863afe616ea8588a1d48c

Comment 2 by kcc@chromium.org, Apr 28 2016

Cc: och...@chromium.org mmoroz@chromium.org
Is a fuzzing target possible for woff2::ConvertWOFF2ToTTF? 
If so, please add one as the regression test (see https://chromium.googlesource.com/chromium/src/+/master/testing/libfuzzer/README.md)
Project Member

Comment 3 by ClusterFuzz, Apr 29 2016

Labels: Pri-1 ReleaseBlock-Beta
This medium+ severity security issue is a regression on trunk.

Please fix this asap. If you are unable to look into this soon, please revert your change.

- Your friendly ClusterFuzz

Comment 4 by rsesek@chromium.org, Apr 29 2016

Components: Blink>Fonts

Comment 5 by kcc@chromium.org, Apr 29 2016

Cc: aizatsky@chromium.org
Note: there are far scarier bug(s) in woff2; internal xref: b/27562618

Comment 6 by och...@chromium.org, Apr 29 2016

I don't believe we call ConvertTTFToWOFF2 in chromium, but a fuzzing target for ConvertWOFF2ToTTF would be awesome.

Comment 7 by kcc@chromium.org, Apr 29 2016

My code for ConvertWOFF2ToTTF:
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
  size_t final_size = third_party::woff::ComputeWOFF2FinalSize(data, size);
  // fprintf(stderr, "final_size %zd\n", final_size);
  if (!final_size || final_size > (1 << 20)) return 0;
  uint8_t *result = new uint8_t[final_size];
  third_party::woff::ConvertWOFF2ToTTF(result, final_size, data, size);
  delete [] result;
  return 0;
}   

Comment 8 by kcc@chromium.org, Apr 29 2016

Cc: rsheeter@google.com
Could I get a copy of the minimized test case? - I can't access via the link provided

Comment 10 by kcc@chromium.org, May 5 2016

Note that these are not inputs to woff2 library, but inputs to the entire chrome.
fuzz-extension-run-129.zip
670 KB Download
4526031242788864.zip
123 KB Download
Owner: mbarbe...@chromium.org
Sorry for taking days to start investigation because of holidays.

The regression range reported in the bug description was 386531:386650. This contains my change r386643 that actually introduced this error. But the issue was fixed at r388459.

I just kicked 'Redo' with 'Fixed' in the report page. Is this enough to confirm if the issue is correctly fixed?

Let me assign back to mbarbella@.

mbarbella@, if trunk still has the same issue, I'll investigate again. Feel free to reassign.
Project Member

Comment 12 by ClusterFuzz, May 9 2016

ClusterFuzz has detected this issue as fixed in range 388458:388479.

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

Fuzzer: meacer_chromebot_extensions
Job Type: linux_msan_chrome
Platform Id: linux

Crash Type: Use-of-uninitialized-value
Crash Address: 
Crash State:
  ==1==WARNING:
  woff2::ConvertWOFF2ToTTF
  woff2::ConvertWOFF2ToTTF
  
Regressed: https://cluster-fuzz.appspot.com/revisions?job=linux_msan_chrome&range=386531:386650
Fixed: https://cluster-fuzz.appspot.com/revisions?job=linux_msan_chrome&range=388458:388479

Minimized Testcase (123.57 Kb): https://cluster-fuzz.appspot.com/download/AMIfv96l2ZrN0Vf5CG2q0pPlYG6a3yNZjRhpWLTv6xQiGsnS8pFWi2FVvcDgDx9gKeqh9b60idklX4zORur-uwxk29QAVh_zaxKTaIe_V01jIVR9P9wwXga6t6vTIAestkGBy9nUotrfcAelSB209qNMSbe_D0N8hRaFfddSl3lPt0bhVqGrdNQ

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

If you suspect that the result above is incorrect, try re-doing that job on the test case report page.
Cc: toyoshim@chromium.org
Status: Fixed (was: Assigned)
Marking as fixed based on c#11 and c#12.
Project Member

Comment 14 by ClusterFuzz, May 9 2016

Labels: Merge-NA
Project Member

Comment 15 by sheriffbot@chromium.org, May 10 2016

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

Comment 16 by sheriffbot@chromium.org, Aug 16 2016

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

Comment 17 by sheriffbot@chromium.org, Oct 1 2016

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

Comment 18 by sheriffbot@chromium.org, Oct 2 2016

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
Labels: allpublic

Sign in to add a comment