Closed Bug 1996718 Opened 1 year ago Closed 1 year ago

Ensure BrowserChild owned by ContentProcessController hasn't yet been destroyed before using it.

Categories

(Core :: Panning and Zooming, defect, P3)

defect

Tracking

()

RESOLVED FIXED
147 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox-esr140 --- wontfix
firefox145 --- wontfix
firefox146 --- wontfix
firefox147 + fixed

People

(Reporter: hiro, Assigned: hiro)

Details

(Keywords: csectype-race, sec-moderate, Whiteboard: [adv-main147+r])

Attachments

(1 external file)

We have a null check, for example here, but the BrowserChild instance may have been torn down.

Attached file (secure) —
Assignee: nobody → hikezoe.birchill
Status: NEW → ASSIGNED
Group: core-security → layout-core-security
Pushed by hikezoe.birchill@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/87050d5baa59 https://hg.mozilla.org/integration/autoland/rev/969f60d3dd6b Check whether BrowserChild has not yet been destroyed in each function of ContentProcessController. r=botond
Group: layout-core-security → core-security-release
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 147 Branch

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

For more information, please visit BugBot documentation.

Flags: needinfo?(hikezoe.birchill)

We'd keep watching whether this change affected on bug 1995079 or not.

Flags: needinfo?(hikezoe.birchill)

(In reply to Hiroyuki Ikezoe (:hiro) from comment #5)

We'd keep watching whether this change affected on bug 1995079 or not.

:hiro, we are in the final week of beta for Fx146. Any updates on whether you will add an uplift request?
I see you set esr140 to wontfix? (This does graft cleanly to esr140)

Flags: needinfo?(hikezoe.birchill)

Gah, I am sorry, I thought I set wontfix to 146.

Flags: needinfo?(hikezoe.birchill)

:dveditz, before I remove the tracking+ flags, just checking if you have any concerns with the esr140 and 146 wontfix?
(I see you set it as sec-moderate)

Flags: needinfo?(dveditz)

The ESR-140 wontfix was a mistake; we should take it when we take this on main. The 147 cycle is fine if we're worried about regressions and want to make sure it's fixing the stalled sec-high signatures like bug 1995079 and bug 2000508. The signature from bug 2000508 also shows up as a UAF in ESR-115 so I'd like to wait a bit before declaring "wontfix" on that branch.

UAF singleton bp-91c576d3-fb45-4e3c-8db8-170d50251031 might be related to this, too. It's the only UAF crash I see that has ContentProcessController explicitly on the stack.

Summary: Ensure BrowserChild owned by ContentProcessContetoller hasn't yet been destroyed before using it. → Ensure BrowserChild owned by ContentProcessController hasn't yet been destroyed before using it.

Feel free to add ESR140 and ESR115 uplift nominations whenever you're ready to do so.

Flags: needinfo?(hikezoe.birchill)
QA Whiteboard: [sec] [qa-triage-done-c148/b147]

I am not going to request uplift since this change appears to be not mitigating bug 1995079.

Flags: needinfo?(hikezoe.birchill)

Not tracking this for ESR115 uplift in that case.

Do we want to get this on ESR140 just for the sake of consistency & hardening? From comment 9, it sounds like a yes to me.

Flags: needinfo?(hikezoe.birchill)

Yeah, it was a mistake. but I am not going to uplift to ESR either.

The patch here doesn't fix bug 1995079 at all.

(In reply to Daniel Veditz [:dveditz] from comment #9)

UAF singleton bp-91c576d3-fb45-4e3c-8db8-170d50251031 might be related to this, too. It's the only UAF crash I see that has ContentProcessController explicitly on the stack.

This one is indeed related, but its underlying cause is bug 1995079 itself, it's purely in DOM. ContentProcessController is one of the sites which ends up triggering a function causing bug 1995079.

Flags: needinfo?(hikezoe.birchill)
Whiteboard: [adv-main147+]
Whiteboard: [adv-main147+] → [adv-main147+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: