startup crash in soundInitWavHdr playing sound file for new mail
Categories
(Core :: Widget: Win32, defect)
Tracking
()
People
(Reporter: wsmwk, Assigned: tnguyen)
References
()
Details
(7 keywords, Whiteboard: [startupcrash][tbird topcrash][regression: TB60][post-critsmash-triage][adv-esr60.5+])
Crash Data
Attachments
(2 files)
5.06 MB,
audio/wav
|
Details | |
47 bytes,
text/x-phabricator-request
|
abillings
:
approval-mozilla-beta+
abillings
:
approval-mozilla-esr60+
abillings
:
sec-approval+
|
Details | Review |
Reporter | ||
Comment 1•7 years ago
|
||
Reporter | ||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Reporter | ||
Comment 4•7 years ago
|
||
Reporter | ||
Comment 5•7 years ago
|
||
Comment 6•6 years ago
|
||
Comment 8•6 years ago
|
||
Reporter | ||
Comment 9•6 years ago
|
||
Reporter | ||
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
Reporter | ||
Comment 14•6 years ago
|
||
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Comment 17•6 years ago
|
||
Reporter | ||
Comment 18•6 years ago
|
||
![]() |
||
Comment 19•6 years ago
|
||
Comment 20•6 years ago
|
||
Comment 21•6 years ago
|
||
Comment 22•6 years ago
|
||
Updated•6 years ago
|
Comment 23•6 years ago
|
||
![]() |
||
Comment 24•6 years ago
|
||
![]() |
||
Updated•6 years ago
|
![]() |
||
Comment 25•6 years ago
|
||
Comment 26•6 years ago
|
||
Reporter | ||
Updated•6 years ago
|
Assignee | ||
Comment 27•6 years ago
|
||
Reporter | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 28•6 years ago
|
||
Comment 29•6 years ago
|
||
Assignee | ||
Comment 30•6 years ago
|
||
Assignee | ||
Comment 31•6 years ago
|
||
Assignee | ||
Comment 32•6 years ago
|
||
Reporter | ||
Comment 33•6 years ago
|
||
Assignee | ||
Comment 34•6 years ago
|
||
Assignee | ||
Comment 35•6 years ago
|
||
Updated•6 years ago
|
Reporter | ||
Comment 37•6 years ago
|
||
Assignee | ||
Comment 38•6 years ago
|
||
Assignee | ||
Comment 39•6 years ago
|
||
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Comment 40•6 years ago
|
||
Assignee | ||
Comment 41•6 years ago
|
||
Assignee | ||
Comment 42•6 years ago
|
||
Assignee | ||
Comment 43•6 years ago
|
||
Comment 46•6 years ago
|
||
Assignee | ||
Comment 47•6 years ago
|
||
Updated•6 years ago
|
Reporter | ||
Comment 48•6 years ago
|
||
Assignee | ||
Comment 49•6 years ago
|
||
Updated•6 years ago
|
Comment 50•6 years ago
|
||
Comment 51•6 years ago
|
||
Comment 52•6 years ago
|
||
Comment hidden (obsolete) |
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 54•6 years ago
|
||
Comment on attachment 9031434 [details]
Bug 1482659 - Purge the last sound, free then start to play a sound
[Security Approval Request]
How easily could an exploit be constructed based on the patch?: Not easy to exploit in Firefox, but easy to test in Thunderbird. Thunderbird supports playing a sound directly when user click playing (preview) sound.
Do comments in the patch, the check-in comment, or tests included in the patch paint a bulls-eye on the security problem?: No
Which older supported branches are affected by this flaw?: firefox <= 65, firefox-esr60
If not all supported branches, which bug introduced the flaw?: Bug 1482659
Do you have backports for the affected branches?: Yes
If not, how different, hard to create, and risky will they be?:
How likely is this patch to cause regressions; how much testing does it need?: Not in Firefox. But it would be great if we could test in Thunderbird more because Thunderbird supports playing a sound directly.
Assignee | ||
Comment 55•6 years ago
|
||
Comment on attachment 9031434 [details]
Bug 1482659 - Purge the last sound, free then start to play a sound
[Beta/Release Uplift Approval Request]
Feature/Bug causing the regression: Bug 1363163
User impact if declined: Sometimes crash when playing sound, particularly in thunderbird
Is this code covered by automated tests?: No
Has the fix been verified in Nightly?: Yes
Needs manual test from QE?: Yes
If yes, steps to reproduce: - Go to Thunderbird Menu -> Options -> Options -> Generals
- Change the custom sound to the sound with sizes > 5 Mb.
- Play
List of other uplifts needed: None
Risk to taking this patch: Low
Why is the change risky/not risky? (and alternatives if risky): We did not change to much, just keep the sound alive longer
String changes made/needed:
Assignee | ||
Comment 56•6 years ago
|
||
Comment on attachment 9031434 [details]
Bug 1482659 - Purge the last sound, free then start to play a sound
[ESR Uplift Approval Request]
If this is not a sec:{high,crit} bug, please state case for ESR consideration:
User impact if declined: Sometimes crash when playing sound, particularly in thunderbird
Fix Landed on Version:
Risk to taking this patch: Low
Why is the change risky/not risky? (and alternatives if risky): We did not change too much, just keep the sound data alive longer
String or UUID changes made by this patch: No
Comment 57•6 years ago
|
||
Comment on attachment 9031434 [details]
Bug 1482659 - Purge the last sound, free then start to play a sound
Approvals given. Please get this checked in ASAP so it can make upcoming beta builds.
Comment 58•6 years ago
|
||
![]() |
||
Comment 59•6 years ago
|
||
Comment 60•6 years ago
|
||
uplift |
Comment 61•6 years ago
|
||
uplift |
Updated•6 years ago
|
Comment 62•6 years ago
|
||
I am not able to reproduce the initial issue on the affected Firefox builds, using the steps provided in comment 24, neither on Windows 10 x64 nor on Windows 7 x86.
Alice, can you please try to confirm the fix on the targeted versions?
![]() |
||
Comment 63•6 years ago
|
||
I can still crash with str comment 24 on Nightly66.0a1.
Crash ID bp-2251238b-40f8-46f0-bd13-deac00190114
Build ID 20190114104248
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0
Assignee | ||
Comment 64•6 years ago
•
|
||
That is a different issue and not related to PlaySound API, library. Should be an easy fix, because it is an assertion that prevents the init from calling in content.
https://hg.mozilla.org/mozilla-central/annotate/3dc7d345da5282969b71079d483ff8c30558819d/widget/nsSoundProxy.cpp#l45
Could you please file another bug about that?
![]() |
||
Comment 65•6 years ago
|
||
(In reply to Thomas Nguyen from comment #64)
That is a different issue and not related to PlaySound API, library. Should
be an easy fix, because it is an assertion that prevents the init from
calling in content.
https://hg.mozilla.org/mozilla-central/annotate/
3dc7d345da5282969b71079d483ff8c30558819d/widget/nsSoundProxy.cpp#l45
Could you please file another bug about that?
filed: Bug 1519882
Comment 66•6 years ago
|
||
Dropping the qe+ plus flag based on the previous comments.
Updated•6 years ago
|
Comment 67•6 years ago
|
||
Wayne,
Does this reproduce in Firefox at all? It seems like, while the affecting code exists everywhere, this is a Thunderbird only issue as far as triggering. If so, I would ask TB people to write a security advisory text for it once TB ships a version with the fix but will not include it in the Firefox advisories.
Reporter | ||
Comment 68•6 years ago
|
||
kaie, can you supply the draft CVE? ping me on irc if any questions.
Comment 69•6 years ago
|
||
Looking at the patch, I wonder if there could still be a race. Maybe I'm wrong, I've asked in phabricator to doublecheck.
Here's a potential CVE text. Please double check for correctness.
CVE-2019-NNNN:
title: Use-after-free during sound notifications
impact: critical
reporter:
description: |
crash when playing a sound notification. The memory storing the sound data was immediately freed, although the sound is still being played asynchronously, causing a use-after-free crash.
bugs:
- url: 1482659
Comment 70•6 years ago
|
||
(In reply to Kai Engert (:kaie:) from comment #69)
Looking at the patch, I wonder if there could still be a race.
After learning more about recent C++ features, I take this back. The code seems fine.
Comment 71•6 years ago
•
|
||
Kai,
I don't recall this ever showing up in an advisory for Thunderbird. Should we write one now for the issue?
Comment 72•6 years ago
|
||
(In reply to Al Billings [:abillings] from comment #71)
I don't recall this ever showing up in an advisory for Thunderbird. Should we write one now for the issue?
Al, yes, I think we're ready to do so. Comment 69 has draft CVE text.
Based on the commit from Jan 10, it should have been fixed starting with TB 60.5.0 released Jan 29.
Updated•6 years ago
|
Updated•6 years ago
|
Description
•