Closed Bug 858644 Opened 12 years ago Closed 12 years ago

WebRTC TURN use-after-free crash [@nr_turn_stun_ctx_start]

Categories

(Core :: WebRTC: Signaling, defect)

x86_64
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
Tracking Status
firefox21 --- unaffected
firefox22 --- unaffected
firefox23 --- unaffected
firefox-esr17 --- unaffected
b2g18 --- unaffected

People

(Reporter: posidron, Assigned: ekr)

References

Details

(4 keywords, Whiteboard: [WebRTC][blocking-webrtc-][turn][qa-])

Attachments

(1 file)

Attached file callstack
This happened while running the IceGatherTest.TestGatherTurn test. alloc: media/mtransport/third_party/nICEr/src/stun/turn_client_ctx.c:99 if (!(sctx=RCALLOC(sizeof(nr_turn_stun_ctx)))) ABORT(R_NO_MEMORY); free: media/mtransport/third_party/nICEr/src/stun/turn_client_ctx.c:371 /* Setting these alues to 0 isn't strictly necessary, but it protects us in case we double cancel and for some reason bungle the states above in future.*/ RFREE(ctx->label); ctx->label = 0; re-use: media/mtransport/third_party/nICEr/src/stun/turn_client_ctx.c:196 if ((r=nr_stun_client_reset(ctx->stun))) { r_log(NR_LOG_TURN, LOG_ERR, "TURN(%s): Couldn't reset STUN", ctx->tctx->label); ABORT(r); Tested with m-i rev 8262a337d5be and with the patch of bug 786235.
Summary: WebRTC use-after-free crash [@nr_turn_stun_ctx_start] → WebRTC TURN use-after-free crash [@nr_turn_stun_ctx_start]
Assignee: nobody → ekr
Whiteboard: [WebRTC][blocking-webrtc?]
Whiteboard: [WebRTC][blocking-webrtc?] → [WebRTC][blocking-webrtc-][turn]
cdiehl: Can you please retry with the latest patch. I moved this free...
Flags: needinfo?(cdiehl)
Hmm.... I actually didn't upload that patch yet....
This seems to be fixed with the updated patch https://bugzilla.mozilla.org/show_bug.cgi?id=786235#c18
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: needinfo?(cdiehl)
Resolution: --- → FIXED
Flags: in-testsuite-
Whiteboard: [WebRTC][blocking-webrtc-][turn] → [WebRTC][blocking-webrtc-][turn][qa-]
Group: core-security → core-security-release
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: