libgraphite2 crashes
Originally disclosed on Mozilla
- Fixed in 28 days
- Paid in 7 months
- Disclosed after 28 days
Created attachment 8729516
triggers.tgz
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36
Steps to reproduce:
fuzzed libgraphite2 1.3.6 (shown as in use at https://www.mozilla.org/en-US/security/advisories/mfsa2016-37/)
Actual results:
a bunch of crashes in libgraphite, distinct callstacks + short asan dump here.
I didn't reproduce any of them in firefox because it is no longer possible to disable the font validator, and fiddling with them to get past it seems somewhat a waste of time.
for i in *.ttf ; do ../graphite_136_asan/tests/examples/simple $i 2>&1 | grep SUM ; done
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:425 graphite2::TtfUtil::DesignUnits(void const*)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:425 graphite2::TtfUtil::DesignUnits(void const*)
SUMMARY: AddressSanitizer: double-free ??:0 __interceptor_free
SUMMARY: AddressSanitizer: double-free ??:0 __interceptor_free
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:425 graphite2::TtfUtil::DesignUnits(void const*)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:810 graphite2::TtfUtil::HorMetrics(unsigned short, void const*, unsigned long, void const*, int&, unsigned int&)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:1213 graphite2::TtfUtil::LocaLookup(unsigned short, void const*, unsigned long, void const*)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:425 graphite2::TtfUtil::DesignUnits(void const*)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:1213 graphite2::TtfUtil::LocaLookup(unsigned short, void const*, unsigned long, void const*)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:1213 graphite2::TtfUtil::LocaLookup(unsigned short, void const*, unsigned long, void const*)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:360 graphite2::TtfUtil::GlyphCount(void const*)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:360 graphite2::TtfUtil::GlyphCount(void const*)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:360 graphite2::TtfUtil::GlyphCount(void const*)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:360 graphite2::TtfUtil::GlyphCount(void const*)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:843 graphite2::TtfUtil::FindCmapSubtable(void const*, int, int, unsigned long)
SUMMARY: AddressSanitizer: double-free ??:0 __interceptor_free
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:360 graphite2::TtfUtil::GlyphCount(void const*)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:843 graphite2::TtfUtil::FindCmapSubtable(void const*, int, int, unsigned long)
SUMMARY: AddressSanitizer: double-free ??:0 __interceptor_free
SUMMARY: AddressSanitizer: SEGV /dev/shm/newgraphite/graphite_136_asan/src/inc/UtfCodec.h:128 graphite2::_utf_codec<8>::get(unsigned char const*, signed char&)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:360 graphite2::TtfUtil::GlyphCount(void const*)
SUMMARY: AddressSanitizer: heap-buffer-overflow /dev/shm/newgraphite/graphite_136_asan/src/inc/GlyphCache.h:76 graphite2::GlyphBox::addSubBox(int, int, graphite2::Rect*)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:843 graphite2::TtfUtil::FindCmapSubtable(void const*, int, int, unsigned long)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:810 graphite2::TtfUtil::HorMetrics(unsigned short, void const*, unsigned long, void const*, int&, unsigned int&)
SUMMARY: AddressSanitizer: double-free ??:0 __interceptor_free
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:810 graphite2::TtfUtil::HorMetrics(unsigned short, void const*, unsigned long, void const*, int&, unsigned int&)
SUMMARY: AddressSanitizer: double-free ??:0 __interceptor_free
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:843 graphite2::TtfUtil::FindCmapSubtable(void const*, int, int, unsigned long)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:360 graphite2::TtfUtil::GlyphCount(void const*)
SUMMARY: AddressSanitizer: double-free ??:0 __interceptor_free
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:843 graphite2::TtfUtil::FindCmapSubtable(void const*, int, int, unsigned long)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:1213 graphite2::TtfUtil::LocaLookup(unsigned short, void const*, unsigned long, void const*)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:1213 graphite2::TtfUtil::LocaLookup(unsigned short, void const*, unsigned long, void const*)
SUMMARY: AddressSanitizer: heap-buffer-overflow /dev/shm/newgraphite/graphite_136_asan/src/inc/GlyphCache.h:76 graphite2::GlyphBox::addSubBox(int, int, graphite2::Rect*)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:843 graphite2::TtfUtil::FindCmapSubtable(void const*, int, int, unsigned long)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:360 graphite2::TtfUtil::GlyphCount(void const*)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:360 graphite2::TtfUtil::GlyphCount(void const*)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:843 graphite2::TtfUtil::FindCmapSubtable(void const*, int, int, unsigned long)
SUMMARY: AddressSanitizer: double-free ??:0 __interceptor_free
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:360 graphite2::TtfUtil::GlyphCount(void const*)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:360 graphite2::TtfUtil::GlyphCount(void const*)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:843 graphite2::TtfUtil::FindCmapSubtable(void const*, int, int, unsigned long)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:843 graphite2::TtfUtil::FindCmapSubtable(void const*, int, int, unsigned long)
SUMMARY: AddressSanitizer: double-free ??:0 __interceptor_free
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:843 graphite2::TtfUtil::FindCmapSubtable(void const*, int, int, unsigned long)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:1213 graphite2::TtfUtil::LocaLookup(unsigned short, void const*, unsigned long, void const*)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:843 graphite2::TtfUtil::FindCmapSubtable(void const*, int, int, unsigned long)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:843 graphite2::TtfUtil::FindCmapSubtable(void const*, int, int, unsigned long)
SUMMARY: AddressSanitizer: heap-buffer-overflow /dev/shm/newgraphite/graphite_136_asan/src/inc/GlyphCache.h:76 graphite2::GlyphBox::addSubBox(int, int, graphite2::Rect*)
SUMMARY: AddressSanitizer: heap-use-after-free /dev/shm/newgraphite/graphite_136_asan/src/TtfUtil.cpp:360 graphite2::TtfUtil::GlyphCount(void const*)
Expected results:
no crashes
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 medium-severity doS bug in Graphics: Text. Mozilla made it public on 8 April 2016.
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.