The XGetImage function in X.org libX11 before 1.6.4 might allow remote X servers to gain privileges via vectors involving image type and geometry, which triggers out-of-bounds read operations.
https://usn.ubuntu.com/3758-2/
https://usn.ubuntu.com/3758-1/
https://security.gentoo.org/glsa/201704-03
https://lists.x.org/archives/xorg-announce/2016-October/002720.html
https://cgit.freedesktop.org/xorg/lib/libX11/commit/?id=8ea762f94f4c942d898fdeb590a1630c83235c17
http://www.securitytracker.com/id/1036945
http://www.securityfocus.com/bid/93363