aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-lib/libxcursor_1.1.14.bb
diff options
context:
space:
mode:
authorJagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>2018-07-30 15:32:36 +0530
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-15 10:22:32 +0100
commitbdf13518e79ab949c4320226a399ee4a3913ee30 (patch)
treea781a29d4e6c7fab95c8a87ae3cefe7ee2776d01 /meta/recipes-graphics/xorg-lib/libxcursor_1.1.14.bb
parent4b022a62998e38dbefe1f882bcb9a229485ac9da (diff)
downloadopenembedded-core-bdf13518e79ab949c4320226a399ee4a3913ee30.tar.gz
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. Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com> Signed-off-by: Armin Kuster <akuster@mvista.com>
Diffstat (limited to 'meta/recipes-graphics/xorg-lib/libxcursor_1.1.14.bb')
-rw-r--r--meta/recipes-graphics/xorg-lib/libxcursor_1.1.14.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libxcursor_1.1.14.bb b/meta/recipes-graphics/xorg-lib/libxcursor_1.1.14.bb
index 17629047b7..ccc4347820 100644
--- a/meta/recipes-graphics/xorg-lib/libxcursor_1.1.14.bb
+++ b/meta/recipes-graphics/xorg-lib/libxcursor_1.1.14.bb
@@ -16,6 +16,8 @@ BBCLASSEXTEND = "native nativesdk"
PE = "1"
+SRC_URI += "file://CVE-2017-16612.patch"
+
XORG_PN = "libXcursor"
SRC_URI[md5sum] = "1e7c17afbbce83e2215917047c57d1b3"