Skip to content
DoS Disclosed report CVE-2015-0805

Memset crash in mozilla::layers::BufferTextureClient::AllocateForSurface

Abhishek Arya Follow

Originally disclosed on Mozilla

Critical View original
  • Fixed in 17 days
  • Paid in 22 days
  • Disclosed after 17 days

Created attachment 8567650 Testcase

Crash Annotation GraphicsCriticalError: |[0][GFX1]: Attempt to create DrawTarget for invalid surface. Size(442,263984) Cairo Status: 32[GFX1]: Attempt to create DrawTarget for invalid surface. Size(442,263984) Cairo Status: 32 Crash Annotation GraphicsCriticalError: |[0][GFX1]: Attempt to create DrawTarget for invalid surface. Size(442,263984) Cairo Status: 32|[1][GFX1]: Attempt to create DrawTarget for invalid surface. Size(442,263984) Cairo Status: 32[GFX1]: Attempt to create DrawTarget for invalid surface. Size(442,263984) Cairo Status: 32 Crash Annotation GraphicsCriticalError: |[0][GFX1]: Attempt to create DrawTarget for invalid surface. Size(442,263984) Cairo Status: 32|[1][GFX1]: Attempt to create DrawTarget for invalid surface. Size(442,263984) Cairo Status: 32|[2][GFX1]: Failed 2 buffer db=0x0 dw=0x0 for 0, 151536656, 442, 263984[GFX1]: Failed 2 buffer db=0x0 dw=0x0 for 0, 151536656, 442, 263984 ASAN:SIGSEGV

==9489==ERROR: AddressSanitizer: SEGV on unknown address 0x7f39c9748000 (pc 0x7f3a0b6360e0 bp 0x7fffe1dbfd50 sp 0x7fffe1dbf4d8 T0) #0 0x7f3a0b6360df in memset /build/buildd/eglibc-2.19/sysdeps/x86_64/memset.S:90 #1 0x7f3a0fb55791 in mozilla::layers::BufferTextureClient::AllocateForSurface(mozilla::gfx::IntSizeTypedmozilla::gfx::UnknownUnits, mozilla::layers::TextureAllocationFlags) gfx/layers/client/TextureClient.cpp:753:5 #2 0x7f3a0fb4315f in mozilla::layers::TextureClient::CreateForDrawing(mozilla::layers::ISurfaceAllocator*, mozilla::gfx::SurfaceFormat, mozilla::gfx::IntSizeTypedmozilla::gfx::UnknownUnits, mozilla::gfx::BackendType, mozilla::layers::TextureFlags, mozilla::layers::TextureAllocationFlags) gfx/layers/client/TextureClient.cpp:402:8 #3 0x7f3a0fb46dc0 in mozilla::layers::ContentClientRemoteBuffer::CreateBackBuffer(nsIntRect const&) gfx/layers/client/CompositableClient.cpp:211:10 #4 0x7f3a0fb47373 in mozilla::layers::ContentClientRemoteBuffer::CreateBuffer(gfxContentType, nsIntRect const&, unsigned int, mozilla::RefPtrmozilla::gfx::DrawTarget, mozilla::RefPtrmozilla::gfx::DrawTarget) gfx/layers/client/ContentClient.cpp:308:3 #5 0x7f3a0fa84504 in mozilla::layers::RotatedContentBuffer::BeginPaint(mozilla::layers::PaintedLayer*, unsigned int) gfx/layers/RotatedBuffer.cpp:671:5 #6 0x7f3a0fba79d1 in mozilla::layers::ContentClientRemoteBuffer::BeginPaintBuffer(mozilla::layers::PaintedLayer*, unsigned int) objdir-ff-asan/dist/include/mozilla/layers/ContentClient.h:223:12 #7 0x7f3a0fb2dcf2 in mozilla::layers::ClientPaintedLayer::PaintThebes() gfx/layers/client/ClientPaintedLayer.cpp:54:5 #8 0x7f3a0fb2ec77 in mozilla::layers::ClientPaintedLayer::RenderLayerWithReadback(mozilla::layers::ReadbackProcessor*) gfx/layers/client/ClientPaintedLayer.cpp:131:3 #9 0x7f3a0fb38073 in mozilla::layers::ClientContainerLayer::RenderLayer() gfx/layers/client/ClientContainerLayer.h:68:7 #10 0x7f3a0fb38073 in mozilla::layers::ClientContainerLayer::RenderLayer() gfx/layers/client/ClientContainerLayer.h:68:7 #11 0x7f3a0fb38073 in mozilla::layers::ClientContainerLayer::RenderLayer() gfx/layers/client/ClientContainerLayer.h:68:7 #12 0x7f3a0fb38073 in mozilla::layers::ClientContainerLayer::RenderLayer() gfx/layers/client/ClientContainerLayer.h:68:7 #13 0x7f3a0fb295dd in mozilla::layers::ClientLayerManager::EndTransactionInternal(void ()(mozilla::layers::PaintedLayer, gfxContext*, nsIntRegion const&, mozilla::layers::DrawRegionClip, nsIntRegion const&, void*), void*, mozilla::layers::LayerManager::EndTransactionFlags) gfx/layers/client/ClientLayerManager.cpp:274:3 #14 0x7f3a0fb29c5b in mozilla::layers::ClientLayerManager::EndTransaction(void ()(mozilla::layers::PaintedLayer, gfxContext*, nsIntRegion const&, mozilla::layers::DrawRegionClip, nsIntRegion const&, void*), void*, mozilla::layers::LayerManager::EndTransactionFlags) gfx/layers/client/ClientLayerManager.cpp:317:3 #15 0x7f3a13accd9e in nsDisplayList::PaintRoot(nsDisplayListBuilder*, nsRenderingContext*, unsigned int) layout/base/nsDisplayList.cpp:1712:3 #16 0x7f3a13b60219 in nsLayoutUtils::PaintFrame(nsRenderingContext*, nsIFrame*, nsRegion const&, unsigned int, unsigned int) layout/base/nsLayoutUtils.cpp:3199:5 #17 0x7f3a13beb7c6 in PresShell::Paint(nsView*, nsRegion const&, unsigned int) layout/base/nsPresShell.cpp:6359:5 #18 0x7f3a132b7d46 in nsViewManager::ProcessPendingUpdatesPaint(nsIWidget*) view/nsViewManager.cpp:443:7 #19 0x7f3a132b6e0b in nsViewManager::ProcessPendingUpdatesForView(nsView*, bool) view/nsViewManager.cpp:384:9 #20 0x7f3a13948bf2 in nsRefreshDriver::Tick(long, mozilla::TimeStamp) layout/base/nsRefreshDriver.cpp:1708:5 #21 0x7f3a1394fb13 in mozilla::RefreshDriverTimer::Tick(long, mozilla::TimeStamp) layout/base/nsRefreshDriver.cpp:198:5 #22 0x7f3a0e015024 in nsTimerImpl::Fire() xpcom/threads/nsTimerImpl.cpp:631:7 #23 0x7f3a0e015b90 in nsTimerEvent::Run() xpcom/threads/nsTimerImpl.cpp:724:3 #24 0x7f3a0e00b055 in nsThread::ProcessNextEvent(bool, bool*) xpcom/threads/nsThread.cpp:855:7 #25 0x7f3a0e06926c in NS_ProcessNextEvent(nsIThread*, bool) xpcom/glue/nsThreadUtils.cpp:265:10 #26 0x7f3a0e8fe8de in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) ipc/glue/MessagePump.cpp:99:21 #27 0x7f3a0e8a6a61 in MessageLoop::Run() ipc/chromium/src/base/message_loop.cc:233:3 #28 0x7f3a132fc45f in nsBaseAppShell::Run() widget/nsBaseAppShell.cpp:164:3 #29 0x7f3a14f2d603 in XRE_RunAppShell toolkit/xre/nsEmbedFunctions.cpp:743:12 #30 0x7f3a0e8a6a61 in MessageLoop::Run() ipc/chromium/src/base/message_loop.cc:233:3 #31 0x7f3a14f2ca2c in XRE_InitChildProcess toolkit/xre/nsEmbedFunctions.cpp:580:7 #32 0x4db12e in content_process_main(int, char**) ipc/contentproc/plugin-container.cpp:211:19 #33 0x7f3a0b5caec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287

AddressSanitizer can not provide additional info. ==9489==ABORTING

The original report as published on Mozilla's Bugzilla, by Abhishek Arya. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A critical-severity doS bug in Graphics: Layers. Mozilla made it public on 11 March 2015 as CVE-2015-0805.

About DoS

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by Abhishek Arya

View all

130 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.