Closed Bug 242915 Opened 20 years ago Closed 20 years ago

PNG out-of-bounds read during error message processing

Categories

(Core :: Graphics: ImageLib, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: glennrp+bmo, Assigned: glennrp+bmo)

References

()

Details

(Keywords: fixed1.4.3, verified1.7, Whiteboard: [sg:dos])

Attachments

(1 file)

A bug in pngerror.c has been discovered recently and reported to bugtraq and
various distro mailing lists.  The PNG Group has developed and released a patch
for the bug.  It is highly unlikely that the bug could actually be exploited.
Here is a copy of the PNG group's patch.  It uses strncpy() while some distro
vendors are providing a patch that uses strlen() followed by memcpy().	The PNG
group believes that the strncpy solution is more robust.
Flags: blocking1.7?
Comment on attachment 147883 [details] [diff] [review]
patch for PNG read-out-of-bounds bug in pngerror

tor: r?
Attachment #147883 - Flags: review?(tor)
Status: NEW → ASSIGNED
Flags: blocking1.7? → blocking1.7+
Attachment #147883 - Flags: superreview+
Attachment #147883 - Flags: review?(tor)
Attachment #147883 - Flags: review+
Checked in on trunk.
Attachment #147883 - Flags: approval1.7?
Comment on attachment 147883 [details] [diff] [review]
patch for PNG read-out-of-bounds bug in pngerror

a=dveditz for 1.7
Attachment #147883 - Flags: approval1.7? → approval1.7+
Group: security
Sorry for bug spam, setting and clearing security flag so it'll show up on the
right queries
Group: security
Whiteboard: [sg:dos]
Checked in on 1.7 branch
Keywords: fixed1.7
In on trunk/branch - closing.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Adding Jon Granrose to CC list to help round up QA resources for verification
adding tracy to verify on 1.7
Glenn, can you provide a test case or verify this is fixed in 1.7?
There is no exploit, to my knowledge, nor any test case.  I have just examined
the source code of a fresh checkout of Moz-1.7 and can verify that the bug has
been fixed.  However, the trunk version of MOZCHANGES wasn't checked in to Moz-1.7.
verified per reporters comments
Status: RESOLVED → VERIFIED
Keywords: fixed1.7verified1.7
Comment on attachment 147883 [details] [diff] [review]
patch for PNG read-out-of-bounds bug in pngerror

a=blizzard
Attachment #147883 - Flags: approval1.4.3? → approval1.4.3+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: