Every CVE Search/ Get API key

CVE-2016-7942

The XGetImage function in X.org libX11 before 1.6.4 might allow remote X servers to gain...

9.8 CriticalFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

4.46%Up 2.9 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 9.8

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.

Record
CVE-2016-7942
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-264, CWE-787
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2016-7942
Updated
2026-11-02
EUVDEUVD-2016-8791 No score

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.

Record
EUVD-2016-8791
Updated
2026-11-03
GitHub AdvisoriesGHSA-22xc-96jv-r6q2 9.8

The XGetImage function in X.org libX11 before 1.6.4 might allow remote X servers to gain...

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.

Record
GHSA-22xc-96jv-r6q2
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVALPINE-CVE-2016-7942 9.8

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.

Record
ALPINE-CVE-2016-7942
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVBELL-CVE-2016-7942 9.8

CVE-2016-7942 does not affect BellSoft software

Record
BELL-CVE-2016-7942
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 9 moreShow less
OSV 9.8

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.

Record
CVE-2016-7942
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2016-7942 9.8

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.

Record
DEBIAN-CVE-2016-7942
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2016-7942 9.8

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.

Record
UBUNTU-CVE-2016-7942
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVMGASA-2018-0011 No score

Updated X11 client libraries packages fix security vulnerability

The XvQueryAdaptors and XvQueryEncodings functions in X.org libXv before 1.0.11 allow remote X servers to trigger out-of-bounds memory access operations via vectors involving length specifications in received data (CVE-2016-5407).

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 (CVE-2016-7942).

The XListFonts function in X.org libX11 before 1.6.4 might allow remote X servers to gain privileges via vectors involving length fields, which trigger out-of-bounds write operations (CVE-2016-7943).

Integer overflow in X.org libXfixes before 5.0.3 on 32-bit platforms might allow remote X servers to gain privileges via a length value of INT_MAX, which triggers the client to stop reading data and get out of sync (CVE-2016-7944).

Multiple integer overflows in X.org libXi before 1.7.7 allow remote X servers to cause a denial of service (out-of-bounds memory access or infinite loop) via vectors involving length fields (CVE-2016-7945).

X.org libXi before 1.7.7 allows remote X servers to cause a denial of service (infinite loop) via vectors involving length fields (CVE-2016-7946).

Multiple integer overflows in X.org libXrandr before 1.5.1 allow remote X servers to trigger out-of-bounds write operations via a crafted response (CVE-2016-7947).

X.org libXrandr before 1.5.1 allows remote X servers to trigger out-of-bounds write operations by leveraging mishandling of reply data (CVE-2016-7948).

Multiple buffer overflows in the XvQueryAdaptors and XvQueryEncodings functions in X.org libXrender before 0.9.10 allow remote X servers to trigger out-of-bounds write operations via vectors involving length fields (CVE-2016-7949).

The XRenderQueryFilters function in X.org libXrender before 0.9.10 allows remote X servers to trigger out-of-bounds write operations via vectors involving filter name lengths (CVE-2016-7950).

Multiple integer overflows in X.org libXtst before 1.2.3 allow remote X servers to trigger out-of-bounds memory access operations by leveraging the lack of range checks (CVE-2016-7951).

X.org libXtst before 1.2.3 allows remote X servers to cause a denial of service (infinite loop) via a reply in the XRecordStartOfData, XRecordEndOfData, or XRecordClientDied category without a client sequence and with attached data (CVE-2016-7952).

Buffer underflow in X.org libXvMC before 1.0.10 allows remote X servers to have unspecified impact via an empty string (CVE-2016-7953).

Record
MGASA-2018-0011
Updated
2026-11-02
OSVSUSE-SU-2016:2505-1 No score

Security update for X Window System client libraries

This update for the X Window System client libraries fixes a class of privilege escalation issues.

A malicious X Server could send specially crafted data to X clients, which allowed for triggering crashes, or privilege escalation if this relationship was untrusted or crossed user or permission level boundaries.

libX11, libXfixes, libXi, libXrandr, libXrender, libXtst, libXv, libXvMC were fixed, specifically:

libX11:

  • CVE-2016-7942: insufficient validation of data from the X server allowed out of boundary memory read (bsc#1002991)

libXfixes:

  • CVE-2016-7944: insufficient validation of data from the X server can cause an integer overflow on 32 bit architectures (bsc#1002995)

libXi:

  • CVE-2016-7945, CVE-2016-7946: insufficient validation of data from the X server can cause out of boundary memory access or endless loops (Denial of Service) (bsc#1002998)

libXtst:

  • CVE-2016-7951, CVE-2016-7952: insufficient validation of data from the X server can cause out of boundary memory access or endless loops (Denial of Service) (bsc#1003012)

libXv:

  • CVE-2016-5407: insufficient validation of data from the X server can cause out of boundary memory and memory corruption (bsc#1003017)

libXvMC:

  • CVE-2016-7953: insufficient validation of data from the X server can cause a one byte buffer read underrun (bsc#1003023)

libXrender:

  • CVE-2016-7949, CVE-2016-7950: insufficient validation of data from the X server can cause out of boundary memory writes (bsc#1003002)

libXrandr:

  • CVE-2016-7947, CVE-2016-7948: insufficient validation of data from the X server can cause out of boundary memory writes (bsc#1003000)
Record
SUSE-SU-2016:2505-1
Updated
2026-11-02
OSVSUSE-SU-2016:2828-1 No score

Security update for X Window System client libraries

This update for the X Window System client libraries fixes a class of privilege escalation issues.

A malicious X Server could send specially crafted data to X clients, which allowed for triggering crashes, or privilege escalation if this relationship was untrusted or crossed user or permission level boundaries.

libX11, libXfixes, libXi, libXrandr, libXrender, libXtst, libXv, libXvMC were fixed, specifically:

libX11:

  • CVE-2016-7942: insufficient validation of data from the X server allowed out of boundary memory read (bsc#1002991)

libXfixes:

  • CVE-2016-7944: insufficient validation of data from the X server can cause an integer overflow on 32 bit architectures (bsc#1002995)

libXi:

  • CVE-2016-7945, CVE-2016-7946: insufficient validation of data from the X server can cause out of boundary memory access or endless loops (Denial of Service) (bsc#1002998)

libXtst:

  • CVE-2016-7951, CVE-2016-7952: insufficient validation of data from the X server can cause out of boundary memory access or endless loops (Denial of Service) (bsc#1003012)

libXv:

  • CVE-2016-5407: insufficient validation of data from the X server can cause out of boundary memory and memory corruption (bsc#1003017)

libXvMC:

  • CVE-2016-7953: insufficient validation of data from the X server can cause a one byte buffer read underrun (bsc#1003023)

libXrender:

  • CVE-2016-7949, CVE-2016-7950: insufficient validation of data from the X server can cause out of boundary memory writes (bsc#1003002)

libXrandr:

  • CVE-2016-7947, CVE-2016-7948: insufficient validation of data from the X server can cause out of boundary memory writes (bsc#1003000)
Record
SUSE-SU-2016:2828-1
Updated
2026-11-02
OSVSUSE-SU-2016:3001-1 No score

Security update for libX11

libX11 was updated to fix a memory leak that was introduced with the security fix for CVE-2016-7942.

Record
SUSE-SU-2016:3001-1
Updated
2026-11-02
OSVSUSE-SU-2016:3054-1 No score

Security update for xorg-x11-libX11

This update for xorg-x11-libX11 fixes the following issues:

  • plug a memory leak (bsc#1002991, CVE-2016-7942)
  • insufficient validation of data from the X server can cause out of boundary memory read (XGetImage()) or write (XListFonts()) (bsc#1002991, CVE-2016-7942)
Record
SUSE-SU-2016:3054-1
Updated
2026-11-02
OSVUSN-3758-1 No score

libx11 vulnerabilities

Tobias Stoeckmann discovered that libx11 incorrectly handled certain images. An attacker could possibly use this issue to access sensitive information (CVE-2016-7942)

Tobias Stoeckmann discovered that libx11 incorrectly handled certain inputs. An attacker could possibly use this issue to access sensitive information. (CVE-2016-7943)

It was discovered that libx11 incorrectly handled certain inputs. An attacker could possibly use this issue to cause a denial of service. (CVE-2018-14598, CVE-2018-14599, CVE-2018-14600)

Record
USN-3758-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
libx11
Alpine:v3.2
before 1.6.3-r1
1.6.3-r1
libx11
Alpine:v3.3
before 1.6.3-r3
1.6.3-r3
libx11
Debian:12
before 2:1.6.4-1
2:1.6.4-1
libx11
Debian:13
before 2:1.6.4-1
2:1.6.4-1
libx11
Debian:14
before 2:1.6.4-1
2:1.6.4-1
libx11
Debian:7
before 2:1.5.0-1+deb7u3, plus listed versions
2:1.5.0-12:1.5.0-1+deb7u12:1.5.0-1+deb7u2
2:1.5.0-1+deb7u3
libx11
Mageia:5
before 1.6.5-1.mga5
1.6.5-1.mga5
libxv
Mageia:5
before 1.0.11-1.mga5
1.0.11-1.mga5
libxrender
Mageia:5
before 0.9.10-1.mga5
0.9.10-1.mga5
libxtst
Mageia:5
before 1.2.3-1.mga5
1.2.3-1.mga5
Show 86 moreShow less
Affected packages
PackageAffectedFixed
libxi
Mageia:5
before 1.7.7-1.mga5
1.7.7-1.mga5
libxrandr
Mageia:5
before 1.4.2-4.1.mga5
1.4.2-4.1.mga5
libxfixes
Mageia:5
before 5.0.3-1.mga5
5.0.3-1.mga5
libxvmc
Mageia:5
before 1.0.10-1.mga5
1.0.10-1.mga5
libX11
SUSE:Linux Enterprise Desktop 12 SP1
before 1.6.2-6.2
1.6.2-6.2
libXfixes
SUSE:Linux Enterprise Desktop 12 SP1
before 5.0.1-5.2
5.0.1-5.2
libXi
SUSE:Linux Enterprise Desktop 12 SP1
before 1.7.4-12.2
1.7.4-12.2
libXrandr
SUSE:Linux Enterprise Desktop 12 SP1
before 1.4.2-5.2
1.4.2-5.2
libXrender
SUSE:Linux Enterprise Desktop 12 SP1
before 0.9.8-5.2
0.9.8-5.2
libXtst
SUSE:Linux Enterprise Desktop 12 SP1
before 1.2.2-5.2
1.2.2-5.2
libXv
SUSE:Linux Enterprise Desktop 12 SP1
before 1.0.10-5.2
1.0.10-5.2
libXvMC
SUSE:Linux Enterprise Desktop 12 SP1
before 1.0.8-5.2
1.0.8-5.2
libX11
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 1.6.2-6.2
1.6.2-6.2
libXfixes
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 5.0.1-5.2
5.0.1-5.2
libXi
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 1.7.4-12.2
1.7.4-12.2
libXrandr
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 1.4.2-5.2
1.4.2-5.2
libXrender
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 0.9.8-5.2
0.9.8-5.2
libXtst
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 1.2.2-5.2
1.2.2-5.2
libXv
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 1.0.10-5.2
1.0.10-5.2
libXvMC
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 1.0.8-5.2
1.0.8-5.2
libX11
SUSE:Linux Enterprise Server 12 SP1
before 1.6.2-6.2
1.6.2-6.2
libXfixes
SUSE:Linux Enterprise Server 12 SP1
before 5.0.1-5.2
5.0.1-5.2
libXi
SUSE:Linux Enterprise Server 12 SP1
before 1.7.4-12.2
1.7.4-12.2
libXrandr
SUSE:Linux Enterprise Server 12 SP1
before 1.4.2-5.2
1.4.2-5.2
libXrender
SUSE:Linux Enterprise Server 12 SP1
before 0.9.8-5.2
0.9.8-5.2
libXtst
SUSE:Linux Enterprise Server 12 SP1
before 1.2.2-5.2
1.2.2-5.2
libXv
SUSE:Linux Enterprise Server 12 SP1
before 1.0.10-5.2
1.0.10-5.2
libXvMC
SUSE:Linux Enterprise Server 12 SP1
before 1.0.8-5.2
1.0.8-5.2
libX11
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
before 1.6.2-6.2
1.6.2-6.2
libXfixes
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
before 5.0.1-5.2
5.0.1-5.2
libXi
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
before 1.7.4-12.2
1.7.4-12.2
libXrandr
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
before 1.4.2-5.2
1.4.2-5.2
libXrender
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
before 0.9.8-5.2
0.9.8-5.2
libXtst
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
before 1.2.2-5.2
1.2.2-5.2
libXv
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
before 1.0.10-5.2
1.0.10-5.2
libXvMC
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
before 1.0.8-5.2
1.0.8-5.2
libX11
SUSE:Linux Enterprise Desktop 12 SP2
before 1.6.2-8.1
1.6.2-8.1
libXfixes
SUSE:Linux Enterprise Desktop 12 SP2
before 5.0.1-7.1
5.0.1-7.1
libXi
SUSE:Linux Enterprise Desktop 12 SP2
before 1.7.4-14.1
1.7.4-14.1
libXrender
SUSE:Linux Enterprise Desktop 12 SP2
before 0.9.8-7.1
0.9.8-7.1
libXtst
SUSE:Linux Enterprise Desktop 12 SP2
before 1.2.2-7.1
1.2.2-7.1
libXv
SUSE:Linux Enterprise Desktop 12 SP2
before 1.0.10-7.1
1.0.10-7.1
libXvMC
SUSE:Linux Enterprise Desktop 12 SP2
before 1.0.8-7.1
1.0.8-7.1
libX11
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
before 1.6.2-8.1
1.6.2-8.1
libXfixes
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
before 5.0.1-7.1
5.0.1-7.1
libXi
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
before 1.7.4-14.1
1.7.4-14.1
libXrender
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
before 0.9.8-7.1
0.9.8-7.1
libXtst
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
before 1.2.2-7.1
1.2.2-7.1
libXv
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
before 1.0.10-7.1
1.0.10-7.1
libXvMC
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
before 1.0.8-7.1
1.0.8-7.1
libX11
SUSE:Linux Enterprise Software Development Kit 12 SP2
before 1.6.2-8.1
1.6.2-8.1
libXfixes
SUSE:Linux Enterprise Software Development Kit 12 SP2
before 5.0.1-7.1
5.0.1-7.1
libXi
SUSE:Linux Enterprise Software Development Kit 12 SP2
before 1.7.4-14.1
1.7.4-14.1
libXrender
SUSE:Linux Enterprise Software Development Kit 12 SP2
before 0.9.8-7.1
0.9.8-7.1
libXtst
SUSE:Linux Enterprise Software Development Kit 12 SP2
before 1.2.2-7.1
1.2.2-7.1
libXv
SUSE:Linux Enterprise Software Development Kit 12 SP2
before 1.0.10-7.1
1.0.10-7.1
libXvMC
SUSE:Linux Enterprise Software Development Kit 12 SP2
before 1.0.8-7.1
1.0.8-7.1
libX11
SUSE:Linux Enterprise Server 12 SP2
before 1.6.2-8.1
1.6.2-8.1
libXfixes
SUSE:Linux Enterprise Server 12 SP2
before 5.0.1-7.1
5.0.1-7.1
libXi
SUSE:Linux Enterprise Server 12 SP2
before 1.7.4-14.1
1.7.4-14.1
libXrender
SUSE:Linux Enterprise Server 12 SP2
before 0.9.8-7.1
0.9.8-7.1
libXtst
SUSE:Linux Enterprise Server 12 SP2
before 1.2.2-7.1
1.2.2-7.1
libXv
SUSE:Linux Enterprise Server 12 SP2
before 1.0.10-7.1
1.0.10-7.1
libXvMC
SUSE:Linux Enterprise Server 12 SP2
before 1.0.8-7.1
1.0.8-7.1
libX11
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
before 1.6.2-8.1
1.6.2-8.1
libXfixes
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
before 5.0.1-7.1
5.0.1-7.1
libXi
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
before 1.7.4-14.1
1.7.4-14.1
libXrender
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
before 0.9.8-7.1
0.9.8-7.1
libXtst
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
before 1.2.2-7.1
1.2.2-7.1
libXv
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
before 1.0.10-7.1
1.0.10-7.1
libXvMC
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
before 1.0.8-7.1
1.0.8-7.1
libX11
SUSE:Linux Enterprise Desktop 12 SP1
before 1.6.2-11.1
1.6.2-11.1
libX11
SUSE:Linux Enterprise Desktop 12 SP2
before 1.6.2-11.1
1.6.2-11.1
libX11
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
before 1.6.2-11.1
1.6.2-11.1
libX11
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 1.6.2-11.1
1.6.2-11.1
libX11
SUSE:Linux Enterprise Software Development Kit 12 SP2
before 1.6.2-11.1
1.6.2-11.1
libX11
SUSE:Linux Enterprise Server 12 SP1
before 1.6.2-11.1
1.6.2-11.1
libX11
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
before 1.6.2-11.1
1.6.2-11.1
libX11
SUSE:Linux Enterprise Server 12 SP2
before 1.6.2-11.1
1.6.2-11.1
libX11
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
before 1.6.2-11.1
1.6.2-11.1
xorg-x11-libX11
SUSE:Linux Enterprise Software Development Kit 11 SP4
before 7.4-5.11.65.1
7.4-5.11.65.1
xorg-x11-libX11
SUSE:Linux Enterprise Server 11 SP4
before 7.4-5.11.65.1
7.4-5.11.65.1
xorg-x11-libX11
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
before 7.4-5.11.65.1
7.4-5.11.65.1
libx11
Ubuntu:14.04:LTS
before 2:1.6.2-1ubuntu2.1, plus listed versions
2:1.6.1-1ubuntu12:1.6.1-1ubuntu22:1.6.2-1ubuntu12:1.6.2-1ubuntu2
2:1.6.2-1ubuntu2.1
libx11
Ubuntu:16.04:LTS
before 2:1.6.3-1ubuntu2.1, plus listed versions
2:1.6.3-1ubuntu2
2:1.6.3-1ubuntu2.1
libx11
Ubuntu:18.04:LTS
before 2:1.6.4-3ubuntu0.1, plus listed versions
2:1.6.4-3
2:1.6.4-3ubuntu0.1

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2016-7942 is a critical vulnerability (CVSS 9.8) in X.org Libx11, published October 12, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.46%, the 91st percentile. Fixed in libx11 1.6.3-r1.

References

Show 44 moreShow less
MoveEnter Open