Summary: | Stack-Based Buffer Overflow in xps_parse_color() | ||
---|---|---|---|
Product: | MuPDF | Reporter: | Jean-Jamil Khalifé <jean> |
Component: | mupdf | Assignee: | MuPDF bugs <mupdf-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | tor.andersson, zeniko |
Priority: | P4 | ||
Version: | master | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Customer: | Word Size: | --- | |
Attachments: | Exploit for this vulnerability (launches calc.exe) |
Description
Jean-Jamil Khalifé
2014-01-16 12:35:26 UTC
Fixed by: commit 60dabde18d7fe12b19da8b509bdfee9cc886aafc Author: Simon Bünzli <zeniko@gmail.com> Date: Thu Jan 16 22:04:51 2014 +0100 Bug 694957: fix stack buffer overflow in xps_parse_color xps_parse_color happily reads more than FZ_MAX_COLORS values out of a ContextColor array which overflows the passed in samples array. Limiting the number of allowed samples to FZ_MAX_COLORS and make sure to use that constant for all callers fixes the problem. Thanks to Jean-Jamil Khalifé for reporting and investigating the issue and providing a sample exploit file. |