Firefox · Networking
CVE-2026-117899
Logic Error in Networking
Overview
High
Severity
—
CVSS
No
Exploited ITW
Fixed
Fix Status
Changed Functions
| Function | Change | Notes |
|---|---|---|
ifnetwerk/protocol/http/nsHttpConnection.cpp |
modified |
Files Changed
netwerk/protocol/http/Http2Session.cppnetwerk/protocol/http/nsHttpConnection.cpp
Patch
diff --git a/netwerk/protocol/http/Http2Session.cpp b/netwerk/protocol/http/Http2Session.cpp
index 7abe65da207..92fe5508d50 100644
--- a/netwerk/protocol/http/Http2Session.cpp
+++ b/netwerk/protocol/http/Http2Session.cpp
@@ -1404,6 +1404,8 @@ void Http2Session::CleanupStream(Http2StreamBase* aStream, nsresult aResult,
return;
}
+ RefPtr<Http2Session> self(this);
+
// don't reset a stream that has recevied a fin or rst
if (!aStream->RecvdFin() && !aStream->RecvdReset() && aStream->StreamID() &&
!(mInputFrameFinal &&
diff --git a/netwerk/protocol/http/nsHttpConnection.cpp b/netwerk/protocol/http/nsHttpConnection.cpp
index 075f0892a98..33d5659b50a 100644
--- a/netwerk/protocol/http/nsHttpConnection.cpp
+++ b/netwerk/protocol/http/nsHttpConnection.cpp
@@ -748,7 +748,8 @@ nsresult nsHttpConnection::AddTransaction(nsAHttpTransaction* httpTransaction,
if (mSpdySession) {
nsCOMPtr<nsIInterfaceRequestor> callbacks = GetCallbacks();
- if (!mSpdySession->AddStream(httpTransaction, priority, callbacks)) {
+ RefPtr<ASpdySession> spdySession = mSpdySession;
+ if (!spdySession->AddStream(httpTransaction, priority, callbacks)) {
MOZ_ASSERT(false); // this cannot happen!
httpTransaction->Close(NS_ERROR_ABORT);
return NS_ERROR_FAILURE;
Loading diff…
References
On This Page