Bug 1349751 (CVE-2016-6352) - CVE-2016-6352 gdk-pixbuf: Out-of-bounds write in OneLine32() function
Summary: CVE-2016-6352 gdk-pixbuf: Out-of-bounds write in OneLine32() function
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2016-6352
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1349752
TreeView+ depends on / blocked
 
Reported: 2016-06-24 07:30 UTC by Andrej Nemec
Modified: 2021-02-17 03:39 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-04 05:38:15 UTC
Embargoed:


Attachments (Terms of Use)

Description Andrej Nemec 2016-06-24 07:30:41 UTC
A write out-of-bounds parsing an ico file was found in gdk-pixbuf 2.30.7. A maliciously crafted file can cause the application to crash.

Vulnerable code:

static void OneLine32 (struct ico_progressive_state *context)
{
gint X;
guchar *Pixels;

X = 0;
if (context->Header.Negative == 0)
Pixels = (context->pixbuf->pixels +
context->pixbuf->rowstride *
(context->Header.height - context->Lines - 1));
else
Pixels = (context->pixbuf->pixels +
context->pixbuf->rowstride *
context->Lines);
while (X < context->Header.width) {
Pixels[X * 4 + 0] = context->LineBuf[X * 4 + 2];
Pixels[X * 4 + 1] = context->LineBuf[X * 4 + 1];
Pixels[X * 4 + 2] = context->LineBuf[X * 4 + 0];
Pixels[X * 4 + 3] = context->LineBuf[X * 4 + 3];
X++;
}
}

Comment 1 Andrej Nemec 2016-06-24 07:30:53 UTC
Acknowledgments:

Name: Franco Constantini

Comment 5 Andrej Nemec 2016-07-14 08:15:09 UTC
Public via:

http://seclists.org/oss-sec/2016/q3/61

Comment 6 Adam Mariš 2016-07-27 08:52:08 UTC
CVE assignment:

http://seclists.org/oss-sec/2016/q3/162

Comment 7 Adam Mariš 2016-07-28 07:32:33 UTC
Upstream bug:

https://bugzilla.gnome.org/show_bug.cgi?id=769170


Note You need to log in before you can comment on or make changes to this bug.