See how x compares to other vendors in security performance
A heap buffer overflow due to missing size checking in the property buffer when parsing PCF files in libXfont2 ComputeScaledProperties() before libXfont2 before 2.0.8 could be used by attackers using authenticated X clients to execute code within the X server.
A heap buffer overflow in BitmapScaleBitmaps in libXfont2 before 2.0.8 due to an overflowing 32bit size could be used by attackers able to access the X Server to execute code within the X server cont
It was found that XKB actions for debugging X.org clients were enabled by default. This could cause a screen locking application such as gnome-screensaver to be killed when those key combinations were triggered.
The debugging key actions were introduced in the following commit: http://cgit.freedesktop.org/xorg/xserver/commit/?id=7d2543a3cb3089241982ce4f8984fd723d5312a1
Reference: http://thread.gmane.org/gmane.comp.security.oss.general/6725
Mitigation: http://thread.gmane.org/gmane.comp.security.oss.general/6725/focus=6731
A heap bufferflow in pcfReadFont() due to missing glyph bounds checking in libXfont2 before 2.0.8 allows attackers authenticated as X client to execute code within the X server.
In libXfont before 1.5.4 and libXfont2 before 2.0.3, a local attacker can open (but not read) files on the system as root, triggering tape rewinds, watchdogs, or similar mechanisms that can be triggered by opening files.
Last updated 24 July 2024
Last updated 20 October 2026
XcursorThemeInherits in library.c in libXcursor before 1.1.15 allows remote attackers to cause denial of service or potentially code execution via a one-byte heap overflow.
The bdf parser read metrics values as 32-bit integers, but stored them into 16-bit integers. Overflows could occur in various operations leading to out-of-bounds memory access.
A local user could exploit this issue to potentially execute arbitrary code with the privileges of the X.Org server.
Upstream patch:
http://cgit.freedesktop.org/xorg/lib/libXfont/commit/?id=2351c83a77a478b49cba6beb2ad386835e264744
External References:
http://www.x.org/wiki/Development/Security/Advisory-2015-03-17/
If the bdf parser failed to parse the data for the bitmap for any character, it would proceed with an invalid pointer to the bitmap data and later crash when trying to read the bitmap from that pointer.
A local user could exploit this issue to crash the X.Org server.
Upstream patch:
http://cgit.freedesktop.org/xorg/lib/libXfont/commit/?id=78c2e3d70d29698244f70164428bd2868c0ab34c
External References:
http://www.x.org/wiki/Development/Security/Advisory-2015-03-17/
The bdf parser reads a count for the number of properties defined in a font from the font file, and allocates arrays with entries for each property based on that count. It never checked to see if that count was negative, or large enough to overflow when multiplied by the size of the structures being allocated, and could thus allocate the wrong buffer size, leading to out of bounds writes.
A local user could exploit this issue to potentially execute arbitrary code with the privileges of the X.Org server.
Upstream patch:
http://cgit.freedesktop.org/xorg/lib/libXfont/commit/?id=2deda9906480f9c8ae07b8c2a5510cc7e4c59a8e
External References:
http://www.x.org/wiki/Development/Security/Advisory-2015-03-17/
A stack-based buffer overflow flaw was found in the way the libXfont library, used by the X.Org server, parsed Glyph Bitmap Distribution Format (BDF) fonts. A malicious, local user could exploit this issue to potentially execute arbitrary code with the privileges of the X.Org server.
Acknowledgements:
Red Hat would like to thank the X.Org security team for reporting this issue.
Use-after-free vulnerability in the doImageText function in dix/dixfonts.c in the xorg-server module before 1.14.4 in X.Org X11 allows remote authenticated users to cause a denial of service (daemon crash) or possibly execute arbitrary code via a crafted ImageText request that triggers memory-allocation failure.
An Array index error leading to heap-based buffer OOB write flaw were found in the libXv, X.Org X11 libXv runtime library. When a X client is connected to a malcicious X server , (modified to return invalid values), it can cause arbirary code execution with the privileges of the user running the X client.
Affected functions: XvQueryPortAttributes()
An integer overflow leading to a heap-based buffer overflow was found in the readpacket() function of the libxcb library, the X protocol C-language Binding (XCB) library. When a X client is connected to a malicious X server, (modified to return invalid values), it can cause arbirary code execution with the privileges of the user running the X client.
Multiple integer overflows in X.org libXp 1.0.1 and earlier allow X servers to trigger allocation of insufficient memory and a buffer overflow via vectors related to the (1) XpGetAttributes, (2) XpGetOneAttribute, (3) XpGetPrinterList, and (4) XpQueryScreens functions.
Integer overflow in X.org libXtst 1.2.1 and earlier allows X servers to trigger allocation of insufficient memory and a buffer overflow via vectors related to the XRecordGetContext function.
An integer overflow leading to heap-based buffer overflow was found in the XcursorFileHeaderCreate() function of libXcursor a simple library designed to help locate and load cursors. If an X client read a malicious user-specified config file, when connecting to an X server, it could result in arbitrary code execution with the privileges of the user running the X client process.
IssueDescription:
Two stack-based buffer overflow flaws were found in the way libX11, the Core X11 protocol client library, processed certain user-specified files. A malicious X11 server could possibly use this flaw to crash an X11 client via a specially crafted file.
It was found that multiple functions in libXt, an X.Org X11 libXt runtime library, did not check for the failure of XGetWindowProperty() function to initiase certain valid window properties. This could lead to use of uninitialized pointers for reading, writing or even passing to functions such as free(), this could lead to arbitrary code execution with the privileges of the user running the X client.
Affected functions: ReqCleanup(), HandleSelectionEvents(), ReqTimedOut(), HandleNormal(), HandleSelectionReplies()
An Array index error leading to heap-based buffer OOB write flaw were found in the libXt, X.Org X11 libXt runtime library. When a X client is connected to a malcicious X server , (modified to return invalid values), it can cause arbirary code execution with the privileges of the user running the X client.
Affected functions: XtResourceConfigurationEH()
Buffer overflow in X.org libXxf86vm 1.1.2 and earlier allows X servers to cause a denial of service (crash) and possibly execute arbitrary code via crafted length or index values to the XF86VidModeGetGammaRamp function.
An Array index error leading to heap-based buffer OOB write flaw were found in the libXxf86dga, X.Org X11 libXxf86dga runtime library. When a X client is connected to a malcicious X server , (modified to return invalid values), it can cause arbirary code execution with the privileges of the user running the X client.
Affected functions: XDGAQueryModes(), XDGASetMode()
An Array index error leading to heap-based buffer OOB write flaw were found in the libXvMC, X.Org X11 libXvMC runtime library. When a X client is connected to a malcicious X server , (modified to return invalid values), it can cause arbirary code execution with the privileges of the user running the X client.
Affected functions: XvMCGetDRInfo()
Multiple Array index errors leading to heap-based buffer OOB write flaws were found in the libX11, Core X11 protocol client library. When a X client is connected to a malcicious X server , (modified to return invalid values), it can cause arbirary code execution with the privileges of the user running the X client.
Affected functions: XAllocColorCells(), XkbReadGetDeviceInfoReply(), XkbReadGeomShapes(), XkbReadGetGeometryReply(), XkbReadKeySyms(), XkbReadKeyActions(), XkbReadKeyBehaviors(), XkbReadModifierMap(), XkbReadExplicitComponents(), XkbReadVirtualModMap(), XkbReadGetNamesReply(), XkbReadGetMapReply(), XimXGetReadData(), XListFonts(), XListExtensions()
Multiple integer overflows in X.org libGLX in Mesa 9.1.1 and earlier allow X servers to trigger allocation of insufficient memory and a buffer overflow via vectors related to the (1) XF86DRIOpenConnection and (2) XF86DRIGetClientDriverName functions.
Multiple integer overflows in X.org libdmx 1.1.2 and earlier allow X servers to trigger allocation of insufficient memory and a buffer overflow via vectors related to the (1) DMXGetScreenAttributes, (2) DMXGetWindowAttributes, and (3) DMXGetInputAttributes functions.
Multiple integer overflows in X.org libXxf86dga 1.1.3 and earlier allow X servers to trigger allocation of insufficient memory and a buffer overflow via vectors related to the (1) XDGAQueryModes and (2) XDGASetMode functions.
An integer overflow leading to a heap-based buffer overflow was found in the XFixesGetCursorImage() function of the libXfixes library, an X.Org X11 libXext runtime library. When a X client is connected to a malicious X server, (modified to return invalid values), it can cause arbirary code execution with the privileges of the user running the X client.
An integer overflow leading to heap-based buffer overflow was found in libXrandr, X.Org X11 libXrandr runtime library. When a X client is connected to a malicious X server, (modified to return invalid values), it can cause arbirary code execution with the privileges of the user running the X client.
Affected functions: XRRQueryOutputProperty(), XRRQueryProviderProperty() [XRRQueryProviderProperty() was introduced in libXrandr 1.4.0 and is not found in 1.3.2 and older releases.]