Files
poky/meta/recipes-graphics
Jagadeesh Krishnanjanappa 4a59df45f8 libxcursor: CVE-2017-16612
affects: <= 1.1.14

CVE-2017-16612: Fix heap overflows when parsing malicious files

It is possible to trigger heap overflows due to an integer overflow
while parsing images and a signedness issue while parsing comments.

The integer overflow occurs because the chosen limit 0x10000 for
dimensions is too large for 32 bit systems, because each pixel takes 4 bytes.
Properly chosen values allow an overflow which in turn will lead to less
allocated memory than needed for subsequent reads.

The signedness bug is triggered by reading the length of a comment
as unsigned int, but casting it to int when calling the function
XcursorCommentCreate. Turning length into a negative value allows the
check against XCURSOR_COMMENT_MAX_LEN to pass, and the following
addition of sizeof (XcursorComment) + 1 makes it possible to allocate
less memory than needed for subsequent reads.

(From OE-Core rev: bdf13518e79ab949c4320226a399ee4a3913ee30)

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-08-15 10:22:46 +01:00
..
2016-06-15 18:05:23 +01:00
2017-08-18 23:46:38 +01:00
2016-12-20 15:22:16 +00:00
2017-08-30 11:14:26 +01:00
2017-05-29 15:15:20 +01:00
2017-05-23 17:45:36 +01:00
2017-08-18 10:40:26 +01:00
2016-07-10 14:12:17 +01:00
2017-07-21 22:51:38 +01:00
2017-08-27 22:30:06 +01:00
2017-05-30 10:15:20 +01:00
2017-12-04 17:24:00 +00:00
2018-08-15 10:22:46 +01:00