Assertion failure: !mFd (NSSSocketControl must outlive its file descriptor!), at security/manager/ssl/NSSSocketControl.h:267
Categories
(Core :: Security: PSM, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | fixed |
| firefox120 | --- | unaffected |
| firefox121 | --- | fixed |
| firefox122 | + | fixed |
People
(Reporter: decoder, Assigned: keeler)
References
Details
(Keywords: crash, testcase, Whiteboard: [psm-assigned])
Crash Data
Attachments
(4 files)
|
8.67 KB,
text/plain
|
Details | |
|
61 bytes,
text/plain
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
RyanVM
:
approval-mozilla-esr115+
|
Details | Review |
The attached testcase crashes on mozilla-central revision 20231122-ef0b50d89a7f (build with (metadatabuildFlags not available)).
For detailed crash information, see attachment.
To reproduce the issue, perform the following steps:
- Download the attached testcase, save as "test.bin".
2a. Build with--enable-fuzzing(requires Clang and ASan, also build gtests using./mach gtest dontruntests).
2b. Alternatively you can download builds from TC usingpython -mfuzzfetch -a --fuzzing --target firefox gtest(see https://github.com/MozillaSecurity/fuzzfetch). - Run
FUZZER=NetworkHttp objdir/dist/bin/firefox test.bin
| Reporter | ||
Comment 1•1 year ago
|
||
| Reporter | ||
Comment 2•1 year ago
|
||
| Reporter | ||
Comment 3•1 year ago
|
||
This just started to pop up in the older libFuzzer targets. Did we maybe do a refactoring that broke these? Not sure if this is fuzzing only.
Comment 4•1 year ago
|
||
I'm not aware of any recent changes.
Kershaw, do you know if something changed recently?
Updated•1 year ago
|
Comment 5•1 year ago
|
||
That assertion was introduced recently in bug 1840144.
Not sure if this reveals a hidden problem or we can just ignore this check in fuzzing.
Dana, could you take a look? Thanks.
Comment 6•1 year ago
|
||
It looks like the assertion is just making sure we don't leak an fd, which doesn't really feel like a security issue.
Comment 8•1 year ago
|
||
Looks like this has started showing up in the wild, too. (bug 1866719)
Comment 9•1 year ago
|
||
Copying crash signatures from duplicate bugs.
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 10•1 year ago
|
||
Comment 11•1 year ago
|
||
Comment 12•1 year ago
|
||
Is this a 122-only issue? Is this a sec issue? If so what rating do you think it should have? Thanks.
| Assignee | ||
Comment 13•1 year ago
|
||
This is a 122-only issue because bug 1840144 introduced the assertion that's failing. By itself I don't think it's a security issue (at most, it could be a denial-of-service issue).
Updated•1 year ago
|
Comment 14•1 year ago
|
||
| bugherder | ||
| Assignee | ||
Comment 15•1 year ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D194902
Updated•1 year ago
|
Comment 16•1 year ago
|
||
Uplift Approval Request
- String changes made/needed: none
- Needs manual QE test: no
- Risk associated with taking this patch: low
- Fix verified in Nightly: yes
- User impact if declined: assertion failures
- Explanation of risk level: This is a small change that is relatively straightforward to verify.
- Steps to reproduce for manual QE testing: n/a
- Code covered by automated testing: yes
- Is Android affected?: yes
| Assignee | ||
Comment 17•1 year ago
|
||
Comment on attachment 9366573 [details]
Bug 1866006 - clarify ownership and lifetimes of NSSSocketControl and its associated fd r?jschanck
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: Release assertion failure.
- User impact if declined: Release assertion failure.
- Fix Landed on Version: 122
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This is a small change.
Comment 18•1 year ago
|
||
Comment on attachment 9366573 [details]
Bug 1866006 - clarify ownership and lifetimes of NSSSocketControl and its associated fd r?jschanck
Approved for 121.0b7.
Updated•1 year ago
|
Comment 19•1 year ago
|
||
| uplift | ||
Comment 20•1 year ago
|
||
Comment on attachment 9366573 [details]
Bug 1866006 - clarify ownership and lifetimes of NSSSocketControl and its associated fd r?jschanck
Approved for 115.6esr.
Comment 21•1 year ago
|
||
| uplift | ||
Updated•1 year ago
|
Description
•