Closed Bug 994326 Opened 11 years ago Closed 11 years ago

heap-use-after-free in SignalPipeWatcher::OpenFd()

Categories

(Core :: XPCOM, defect)

31 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 990230

People

(Reporter: tsmith, Assigned: dhylands)

References

Details

(Keywords: csectype-uaf)

Attachments

(1 file)

Attached file stack_trace.txt
Found by the BlackBerry Security Automated Analysis Team's fuzzing framework ALF. Unfortunately at this time I do not have a test case for this issue. I will attach one as soon as one is available. ==6417==ERROR: AddressSanitizer: heap-use-after-free on address 0x6030004441c8 at pc 0x7f0bbca95f85 bp 0x7f0bb0a0e5b0 sp 0x7f0bb0a0e5a8 READ of size 1 at 0x6030004441c8 thread T4 (Gecko_IOThread) #0 0x7f0bbca95f84 (libxul.so!SignalPipeWatcher::OpenFd()+0x3f4) Line 152 of "/builds/slave/m-cen-l64-asan-000000000000000/build/xpcom/base/nsDumpUtils.cpp" #1 0x7f0bbca94b60 (libxul.so!FdWatcher::StartWatching()+0x40) Line 83 of "/builds/slave/m-cen-l64-asan-000000000000000/build/xpcom/base/nsDumpUtils.cpp" #2 0x7f0bbd2e3914 (libxul.so!MessageLoop::DeferOrRunPendingTask(MessageLoop::PendingTask const&)+0x244) Line 344 of "/builds/slave/m-cen-l64-asan-000000000000000/build/ipc/chromium/src/base/message_loop.cc" #3 0x7f0bbd2e49c7 (libxul.so!MessageLoop::DoWork()+0x447) Line 430 of "/builds/slave/m-cen-l64-asan-000000000000000/build/ipc/chromium/src/base/message_loop.cc" #4 0x7f0bbd2b5dfc (libxul.so!base::MessagePumpLibevent::Run(base::MessagePump::Delegate*)+0x3cc) Line 311 of "/builds/slave/m-cen-l64-asan-000000000000000/build/ipc/chromium/src/base/message_pump_libevent.cc" ... Full log attached.
Keywords: csectype-uaf
Something to do with memory reporter? Wasn't there a similar bug lately?
Nathan, does this look familiar?
Flags: needinfo?(nfroyd)
(In reply to Andrew McCreight [:mccr8] from comment #2) > Nathan, does this look familiar? Nope, doesn't look familiar. I can believe it, though, we have singletons without any sort of locking occuring, that's bound to end badly.
Flags: needinfo?(nfroyd)
Wait, though, it looks like we're still in the middle of XPCOM initialization when that second thread tries to start an IPC message loop. Is that even something we support?
Component: General → XPCOM
I took a quick look at the stack trace and this looks like a dup of bug 990230. I'm away and will be back on Tuesday. I can take a more detailed look then.
Assignee: nobody → dhylands
Depends on: 990230
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
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: