Closed Bug 1233651 Opened 10 years ago Closed 10 years ago

AddressSanitizer: heap-buffer-overflow in mozilla::image::Deinterlacer::PropagatePassToDownscaler(mozilla::image::Downscaler&)

Categories

(Core :: Graphics: ImageLib, defect)

43 Branch
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 1229825
Tracking Status
firefox42 --- unaffected
firefox43 + wontfix
firefox44 + fixed
firefox45 + fixed
firefox46 + fixed
firefox-esr38 --- unaffected
firefox-esr45 - fixed
b2g-v2.0 --- unaffected
b2g-v2.0M --- unaffected
b2g-v2.1 --- unaffected
b2g-v2.1S --- unaffected
b2g-v2.2 --- unaffected
b2g-v2.5 --- affected
b2g-v2.2r --- unaffected
b2g-master --- affected

People

(Reporter: cbook, Assigned: eflores)

References

()

Details

(Keywords: csectype-bounds, regression, sec-critical, Whiteboard: [adv-main44-])

Attachments

(3 files)

Attached file bughunter asan stack
No idea if we run into the problems from Bug #1223465 again - but it seems we get now similar crashes - or this is maybe bug 1231121 - no idea Bughunter reports: memcpy mozilla::image::Deinterlacer::PropagatePassToDownscaler(mozilla::image::Downscaler&) mozilla::image::nsGIFDecoder2::OutputRow() mozilla::image::nsGIFDecoder2::DoLzw(unsigned char const*) mozilla::image::nsGIFDecoder2::WriteInternal(char const*, unsigned int) and AddressSanitizer: heap-buffer-overflow on address 0x at pc 0x bp 0x sp 0x on sites like: http://www.shortlist.com/entertainment/sport/the-10-new-stadiums-we-cant-wait-to-see-in-2016#gallery-1 bughunter reports this from beta -> trunk and was reproducible on a windows 7 trunk debug build based on current m-c tip
Attached file windbg information
windbg information from this site - however might be something like bug 1224185 that had also a js stack and turned out image related
I was able to reproduce both crashes and intermittent image corruption on the URL given. Similar to the other recent DDD crashes filed, it sometimes requires a few force-reloads to crash. Regression range: https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=bd4a6ddd01a049ebf846a0e4b5a795596e65508e&tochange=649f934c48e639a9d52e8da665b06a733f2e590d Regression from bug 1207378.
Similar to other Downscalar crashes we have seen, first there is a heap overrun in PropagatePassToDownscaler, followed by crashery in JS-land, presumably because the heap has been trashed.
Would it be possible/feasible to get this downscaler fuzzed?
Assignee: nobody → edwin
Tracking, but this is unlikely to be fixed in 43.
This is an invalid write based on the Valgrind logs, so I'm going to mark it sec-critical.
Keywords: sec-critical
This looks like a dup of bug 1229825
See Also: → 1229825
Keywords: regression
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Flags: needinfo?(seth)
Marking wontfix since we wontfixed bug 1229825.
Also marking fixed for 44-46 from the flags in bug 1229825.
Whiteboard: [adv-main44-]
Group: core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: