Closed Bug 1521832 Opened 7 years ago Closed 7 years ago

Crash in arena_t::DallocSmall | mozilla::net::nsSocketEvent::Run

Categories

(Core :: Networking, defect)

64 Branch
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 1516325
Tracking Status
firefox64 --- wontfix
firefox65 --- ?
firefox66 --- ?

People

(Reporter: yoasif, Unassigned)

References

Details

(Keywords: crash, csectype-uaf, sec-high)

Crash Data

This bug is for crash report bp-426e4d0e-c517-47b1-bc21-5eed90190122.

Top 10 frames of crashing thread:

0  @0x2107778e62 
1 libmozglue.dylib arena_t::DallocSmall memory/build/rb.h:142
2  @0x10a7e3809 
3 XUL mozilla::net::nsSocketEvent::Run netwerk/base/nsSocketTransport2.cpp
4 libmozglue.dylib arena_t::DallocSmall memory/build/mozjemalloc.cpp:3444
5 libmozglue.dylib BaseAllocator::free memory/build/mozjemalloc.cpp:3532
6 libmozglue.dylib free memory/build/malloc_decls.h:40
7 XUL mozilla::Runnable::Release xpcom/threads/nsThreadUtils.cpp:47
8 XUL nsThread::ProcessNextEvent xpcom/base/nsCOMPtr.h:371
9 libmozglue.dylib mozilla::detail::MutexImpl::lock mozglue/misc/Mutex_posix.cpp:132

User reports that they get the crash when browsing Twitter or YouTube: https://twitter.com/daslaf/status/1087528942163120130

Version: Trunk → 64 Branch

Possible dupe of bug 1516325?

Group: core-security
Group: core-security → network-core-security
See Also: → 1516325

A guess: this is a variant of bug 1516325 where the corrupt address is still canonical (a sign-extended 48-bit value), so the ret instruction sets rip and then the next instruction fetch causes a page fault; the other one is when it's non-canonical so the ret itself takes a general protection fault.

In particular, the rip in bp-426e4d0e-c517-47b1-bc21-5eed90190122 is 0x2000000000 plus what would be a valid address in libnss3.dylib, and the reported fault address is the bottom 32 bits of the same value, which makes sense if there's an out-of-bounds write to a bit set on the stack.

Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Group: network-core-security
Component: General → Networking
You need to log in before you can comment on or make changes to this bug.