Closed Bug 2016901 Opened 9 months ago Closed 9 months ago

NSSIOLayer may try to unregister preference observer off-main-thread

Categories

(Core :: Security: PSM, defect, P1)

defect

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox-esr140 --- wontfix
firefox148 --- wontfix
firefox149 --- wontfix
firefox150 --- fixed

People

(Reporter: jstutte, Assigned: jstutte)

References

Details

(Keywords: csectype-race, sec-low, Whiteboard: [psm-assigned][adv-main150+r])

Attachments

(1 external file, 1 obsolete file)

~nsSSLIOLayerHelpers() may run off-main thread, apparently. Most likely this is not really exploitable, at least in the tests where this showed up it happens late in shutdown. But it may garble the preferences callback list during shutdown.

I came here by adding more assertions to the Preferences API, and I'll add that patch here to hide it until we fixed it.

Blocks: 2016728
Attached file (secure) (obsolete) —
Assignee: nobody → jstutte
Status: NEW → ASSIGNED
Attached file (secure) —
Group: core-security → crypto-core-security
Severity: -- → S3
Priority: -- → P1
Whiteboard: [psm-assigned]

(I'll wait for a sec-rating before landing)

I'll land the fix here and will move the assertions to bug 2016728 (or fold them into that patch).

Attachment #9545196 - Attachment is obsolete: true
Group: crypto-core-security → core-security-release
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch

The patch landed in nightly and beta is affected.
:jstutte, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(jstutte)

This is probably fine to let just ride.

QA Whiteboard: [sec] [qa-triage-done-c151/b150]
Whiteboard: [psm-assigned] → [psm-assigned][adv-main150+r]
Group: core-security-release
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: