Closed
Bug 1925505
Opened 1 year ago
Closed 1 year ago
Thread safety of `firsttime` in `ssl_SetDefaultsFromEnvironment`
Categories
(NSS :: Libraries, defect, P3)
NSS
Libraries
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mdauer, Assigned: mdauer)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
firsttime is not guarded in any way, resulting in a race condition if multiple threads call ssl_SetDefaultsFromEnvironment at the same time: https://searchfox.org/mozilla-central/rev/e24f7f322960a39f9ef644a31b6026994db73850/security/nss/lib/ssl/sslsock.c#3912.
Interestingly, while searching for firsttime I came across a similar variant at nsSOCKSIOLayerAddToSocket, though I'm not sure if it is reachable by multiple threads simultaneously: https://searchfox.org/mozilla-central/rev/e24f7f322960a39f9ef644a31b6026994db73850/netwerk/socket/nsSOCKSIOLayer.cpp#1392.
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Updated•1 year ago
|
Assignee: nobody → mdauer
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•1 year ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Updated•8 months ago
|
Blocks: nss-fuzzing-bugs
You need to log in
before you can comment on or make changes to this bug.
Description
•