Firefox · Networking
CVE-2026-12291
UAF in Networking
Overview
High
Severity
—
CVSS
No
Exploited ITW
Fixed
Fix Status
Files Changed
netwerk/protocol/http/nsHttpChannel.cpp
Patch
diff --git a/netwerk/protocol/http/nsHttpChannel.cpp b/netwerk/protocol/http/nsHttpChannel.cpp
index 6a0f61ad92c..337b24d2576 100644
--- a/netwerk/protocol/http/nsHttpChannel.cpp
+++ b/netwerk/protocol/http/nsHttpChannel.cpp
@@ -10472,7 +10472,8 @@ nsresult nsHttpChannel::ContinueOnStopRequest(nsresult aStatus, bool aIsFromNet,
MOZ_ASSERT(!LoadOnStopRequestCalled(),
"We should not call OnStopRequest twice");
StoreOnStopRequestCalled(true);
- mListener->OnStopRequest(this, aStatus);
+ nsCOMPtr<nsIStreamListener> listener(mListener);
+ listener->OnStopRequest(this, aStatus);
}
StoreOnStopRequestCalled(true);
Loading diff…
References
On This Page