Closed Bug 2014864 (CVE-2026-4718) Opened 10 months ago Closed 9 months ago

Assertion failure: mSsrcToRtxSsrc.size() == mSsrcs.size(), at /dom/media/webrtc/jsep/JsepTrack.h:173

Categories

(Core :: WebRTC: Signaling, defect)

x86_64
Linux
defect

Tracking

()

RESOLVED FIXED
149 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox-esr140 149+ fixed
firefox147 --- wontfix
firefox148 --- wontfix
firefox149 + fixed

People

(Reporter: jkratzer, Assigned: ng)

References

Details

(5 keywords, Whiteboard: [bugmon:bisected,confirmed][adv-main149+][adv-ESR140.9+])

Attachments

(2 files)

Reproduced on mozilla-central rev 57fbf639ea5b (built with: --enable-debug --enable-fuzzing).

Testcase can be reproduced using the following commands:

$ pip install fuzzfetch grizzly-framework pipx --upgrade
$ python -m pipx ensurepath
$ fuzzfetch --build 57fbf639ea5b --debug --fuzzing  -n firefox
$ grizzly-replay-bugzilla ./firefox/firefox <bugid>
Assertion failure: mSsrcToRtxSsrc.size() == mSsrcs.size(), at /dom/media/webrtc/jsep/JsepTrack.h:173

    ==2874318==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000000 (pc 0x70d69c48dfdc bp 0x7ffd34bb6160 sp 0x7ffd34bb6110 T2874318)
    ==2874318==The signal is caused by a WRITE memory access.
    ==2874318==Hint: address points to the zero page.
        #0 0x70d69c48dfdc in MOZ_CrashSequence /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:237:3
        #1 0x70d69c48dfdc in mozilla::JsepTrack::GetRtxSsrcs() const /dom/media/webrtc/jsep/JsepTrack.h:173:7
        #2 0x70d69c48d723 in mozilla::dom::RTCRtpReceiver::UpdateTransport() /dom/media/webrtc/jsapi/RTCRtpReceiver.cpp:750:58
        #3 0x70d69c4f0652 in mozilla::dom::RTCRtpTransceiver::UpdateTransport() /dom/media/webrtc/jsapi/RTCRtpTransceiver.cpp:418:14
        #4 0x70d69c47db2c in mozilla::PeerConnectionImpl::UpdateTransports(mozilla::JsepSession const&, bool) /dom/media/webrtc/jsapi/PeerConnectionImpl.cpp:4281:22
        #5 0x70d69c4c2932 in operator() /dom/media/webrtc/jsapi/PeerConnectionImpl.cpp:2984:11
        #6 0x70d69c4c2932 in mozilla::detail::RunnableFunction<mozilla::PeerConnectionImpl::DoSetDescriptionSuccessPostProcessing(mozilla::dom::RTCSdpType, bool, RefPtr<mozilla::dom::Promise> const&)::$_0>::Run() /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:549:5
        #7 0x70d697944097 in mozilla::RunnableTask::Run() /xpcom/threads/TaskController.cpp:705:16
        #8 0x70d69793e764 in mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /xpcom/threads/TaskController.cpp:1325:20
        #9 0x70d69793d3e7 in mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /xpcom/threads/TaskController.cpp:1148:15
        #10 0x70d69793d865 in mozilla::TaskController::ProcessPendingMTTask(bool) /xpcom/threads/TaskController.cpp:641:36
        #11 0x70d69794d376 in operator() /xpcom/threads/TaskController.cpp:333:37
        #12 0x70d69794d376 in mozilla::detail::RunnableFunction<mozilla::TaskController::TaskController()::$_0>::Run() /xpcom/threads/nsThreadUtils.h:549:5
        #13 0x70d69795f8f3 in nsThread::ProcessNextEvent(bool, bool*) /xpcom/threads/nsThread.cpp:1168:16
        #14 0x70d69796554f in NS_ProcessNextEvent(nsIThread*, bool) /xpcom/threads/nsThreadUtils.cpp:461:10
        #15 0x70d698554e87 in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /ipc/glue/MessagePump.cpp:85:21
        #16 0x70d6984ae291 in RunHandler /ipc/chromium/src/base/message_loop.cc:366:3
        #17 0x70d6984ae291 in MessageLoop::Run() /ipc/chromium/src/base/message_loop.cc:348:3
        #18 0x70d69d664df8 in nsBaseAppShell::Run() /widget/nsBaseAppShell.cpp:152:27
        #19 0x70d69d730814 in nsAppShell::Run() /widget/gtk/nsAppShell.cpp:555:33
        #20 0x70d69e77884b in XRE_RunAppShell() /toolkit/xre/nsEmbedFunctions.cpp:652:20
        #21 0x70d698555d34 in mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*) /ipc/glue/MessagePump.cpp:235:9
        #22 0x70d6984ae291 in RunHandler /ipc/chromium/src/base/message_loop.cc:366:3
        #23 0x70d6984ae291 in MessageLoop::Run() /ipc/chromium/src/base/message_loop.cc:348:3
        #24 0x70d69e777faf in XRE_InitChildProcess(int, char**, XREChildData const*) /toolkit/xre/nsEmbedFunctions.cpp:590:34
        #25 0x5df784319f8c in main /browser/app/nsBrowserApp.cpp:465:22
        #26 0x70d6a902a1c9 in __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
        #27 0x70d6a902a28a in __libc_start_main ./csu/../csu/libc-start.c:360:3
        #28 0x5df7842edde8 in _start ??:0:0
    
    ==2874318==Register values:
    rax = 0x0000000000000000  rbx = 0x00005df7becdc950  rcx = 0x00000000000000ad  rdx = 0x000070d6a9204563
    rdi = 0x000070d6a9205700  rsi = 0x0000000000000000  rbp = 0x00007ffd34bb6160  rsp = 0x00007ffd34bb6110
     r8 = 0x0000000000000000   r9 = 0x0000000000000003  r10 = 0x0000000000000002  r11 = 0x0000000000000293
    r12 = 0x00005df7becdc954  r13 = 0x00005df7bef44e80  r14 = 0x00005df7bf02ec00  r15 = 0x00005df7bee83230
    UndefinedBehaviorSanitizer can not provide additional info.
    SUMMARY: UndefinedBehaviorSanitizer: SEGV (/home/jkratzer/builds/m-c-20260205090734-fuzzing-debug/libxul.so+0x948dfdc) (BuildId: c143802c55c45c489dd220fc3aaf3f64e16a58ac)
    ==2874318==ABORTING
Attached file Testcase —
Group: dom-core-security → media-core-security

Verified bug as reproducible on mozilla-central 20260205213633-279b57ef4bf0.
Unable to bisect testcase (Testcase reproduces on start build!):

Start: ce0f77cae5a91e2cb4b1ec859117e08aa1182c52 (20250207164009)
End: 57fbf639ea5bd2e56dd9e1bef16497372385229d (20260205090734)
BuildFlags: BuildFlags(asan=False, tsan=False, debug=True, fuzzing=True, coverage=False, valgrind=False, no_opt=False, fuzzilli=False, nyx=False, searchfox=False, afl=False)

Whiteboard: [bugmon:confirm] → [bugmon:bisected,confirmed]
Assignee: nobody → ngrunbaum
Status: NEW → RESOLVED
Closed: 9 months ago
Duplicate of bug: CVE-2026-4705
Resolution: --- → DUPLICATE

I have filed cover bug 2015211, which is shared with 2014873.

Status: RESOLVED → REOPENED
No longer duplicate of bug: CVE-2026-4705
Keywords: sec-low
Resolution: DUPLICATE → ---
See Also: → 2015211

Testcase crashes using the initial build (mozilla-central 20260205090734-57fbf639ea5b) but not with tip (mozilla-central 20260213212122-0d74a4189e30.)

The bug appears to have been fixed in the following build range:

Start: 5b22478f4f4f3feaad5e4ade78a335afe07e673e (20260212064912)
End: 8cf0013141048f4a1ab8dfe12e60de915164be1b (20260212081829)
Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=5b22478f4f4f3feaad5e4ade78a335afe07e673e&tochange=8cf0013141048f4a1ab8dfe12e60de915164be1b

ng, can you confirm that the above bisection range is responsible for fixing this issue?
Removing bugmon keyword as no further action possible. Please review the bug and re-add the keyword for further analysis.

Flags: needinfo?(ngrunbaum)
Keywords: bugmon
Group: media-core-security → core-security-release
Status: REOPENED → RESOLVED
Closed: 9 months ago → 9 months ago
Depends on: 2015211
Flags: needinfo?(ngrunbaum)
Resolution: --- → FIXED
See Also: 2015211 →
Target Milestone: --- → 149 Branch
QA Whiteboard: [qa-triage-done-c150/b149]
QA Whiteboard: [qa-triage-done-c150/b149] → [sec] [qa-triage-done-c150/b149]
Whiteboard: [bugmon:bisected,confirmed] → [bugmon:bisected,confirmed][adv-main149+][adv-ESR140.9+]
No longer blocks: webrtc-triage
Alias: CVE-2026-4718
Group: core-security-release
Keywords: keep-hidden
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: