Bug 1265956 (CVE-2015-7802)
Summary: | CVE-2015-7802 optipng: Buffer overflow in global memory | ||
---|---|---|---|
Product: | [Other] Security Response | Reporter: | Adam Mariš <amaris> |
Component: | vulnerability | Assignee: | Red Hat Product Security <security-response-team> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | unspecified | CC: | carnil, jgrulich, jrusnack, opensource, sardella, ville.skytta |
Target Milestone: | --- | Keywords: | Security |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-10-07 15:59:47 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1265961, 1265962, 1265963 | ||
Bug Blocks: | 1265960 |
Description
Adam Mariš
2015-09-24 08:28:44 UTC
Created optipng tracking bugs for this issue: Affects: fedora-all [bug 1265961] Affects: epel-5 [bug 1265962] Affects: epel-6 [bug 1265963] I believe this is a problem in LZWGetCode() in src/gifread/gifread.c > if ((curbit + code_size) >= lastbit) > { > if (done) > { > if (curbit >= lastbit) > GIFError("GIF/LZW error: ran off the end of my bits"); > return -1; > } > if > buffer[0] = buffer[last_byte-2]; // out of bounds of last_byte = 0 > buffer[1] = buffer[last_byte-1]; > > if ((count = GIFReadDataBlock(&buffer[2], stream)) == 0) > done = LZW_TRUE; > > last_byte = 2 + count; > curbit = (curbit - lastbit) + 16; > lastbit = (2 + count) * 8; > } If last_byte is 0, "buffer[0] = buffer[last_byte-2];" will effectively read 2 bytes before the real start of the "buffer" array. It's an out-of-bounds read of a global buffer, so I don't see any reason for concern here. It probably won't even cause a crash. |