The Xinput module (modules/im/ximcp/imLcIm.c) in X.Org libX11 1.0.2 and 1.0.3 opens a file for reading twice using the same file descriptor, which causes a file descriptor leak that allows local users to read files specified by the XCOMPOSEFILE environment variable via the duplicate file descriptor.
https://exchange.xforce.ibmcloud.com/vulnerabilities/29956
https://bugs.freedesktop.org/show_bug.cgi?id=8699
http://www.vupen.com/english/advisories/2006/4289
http://www.securityfocus.com/bid/20845
http://www.mandriva.com/security/advisories?name=MDKSA-2006:199
http://secunia.com/advisories/22749