Cloudanix VulnDB

CVE-2016-7942

Critical · 9.8

CVSS

9.8

EPSS

4.5%

Published

Dec 13, 2016

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A long-standing image-handling bug in display software could let a malicious remote display server steal data or take control of computers running certain older packaged applications.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Full Compromise
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Low
Patch risk
Low

What it actually does

Out-of-bounds read in XGetImage triggered by crafted image type and geometry parameters, allowing remote X servers to read beyond allocated buffers and potentially escalate privileges.

Why it matters to the business

Compromise of systems running affected Gitea instances could expose source code repositories and development workflows to remote attackers, with elevated urgency due to the nine-year-old flaw still present in some packaged deployments.

How an attack unfolds

An attacker-controlled remote X server responds to XGetImage requests with manipulated image type and geometry values; the client performs an out-of-bounds read that may leak memory contents usable for further exploitation or privilege escalation.

How to fix it

Upgrade gitea (Bitnami) to version 1.12.6 or later, which incorporates libX11 >= 1.6.4.

How to confirm the fix worked

Confirm gitea package version is at least 1.12.6 and that the embedded libX11 is 1.6.4 or newer via package manager or binary inspection.

Typical attack path

  1. Position as a remote X server reachable by the target client
  2. Induce the client to call XGetImage with attacker-supplied image metadata
  3. Trigger out-of-bounds read via crafted type and geometry values
  4. Leverage disclosed memory or control-flow corruption for privilege gain

How to detect it

Review application and system logs for anomalous X11 connections or image-processing errors; correlate with process crashes or unexpected memory access patterns around XGetImage calls.

What your security team should do

  • Prioritize upgrade of all gitea (Bitnami) instances to 1.12.6 within the next maintenance window
  • Scan container images and dependency manifests for any remaining pre-1.6.4 libX11
  • Add X11 client version checks to build and deployment pipelines

The record

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.

Affected packages

Ecosystem Package Introduced Fixed
Alpine:v3.2 libx11 0 1.6.3-r1
Alpine:v3.3 libx11 0 1.6.3-r3
Debian:10 libx11 0 2:1.6.4-1
Debian:11 libx11 0 2:1.6.4-1
Debian:12 libx11 0 2:1.6.4-1
Debian:13 libx11 0 2:1.6.4-1
Debian:7 libx11 0 2:1.5.0-1+deb7u3
Mageia:5 libx11 0 1.6.5-1.mga5
Mageia:5 libxfixes 0 5.0.3-1.mga5
Mageia:5 libxi 0 1.7.7-1.mga5
Mageia:5 libxrandr 0 1.4.2-4.1.mga5
Mageia:5 libxrender 0 0.9.10-1.mga5
Mageia:5 libxtst 0 1.2.3-1.mga5
Mageia:5 libxv 0 1.0.11-1.mga5
Mageia:5 libxvmc 0 1.0.10-1.mga5
SUSE:Linux Enterprise Desktop 12 SP1 libX11 0 1.6.2-6.2
SUSE:Linux Enterprise Desktop 12 SP1 libX11 0 1.6.2-11.1
SUSE:Linux Enterprise Desktop 12 SP1 libXfixes 0 5.0.1-5.2
SUSE:Linux Enterprise Desktop 12 SP1 libXi 0 1.7.4-12.2
SUSE:Linux Enterprise Desktop 12 SP1 libXrandr 0 1.4.2-5.2
SUSE:Linux Enterprise Desktop 12 SP1 libXrender 0 0.9.8-5.2
SUSE:Linux Enterprise Desktop 12 SP1 libXtst 0 1.2.2-5.2
SUSE:Linux Enterprise Desktop 12 SP1 libXv 0 1.0.10-5.2
SUSE:Linux Enterprise Desktop 12 SP1 libXvMC 0 1.0.8-5.2
SUSE:Linux Enterprise Desktop 12 SP2 libX11 0 1.6.2-8.1
SUSE:Linux Enterprise Desktop 12 SP2 libX11 0 1.6.2-11.1
SUSE:Linux Enterprise Desktop 12 SP2 libXfixes 0 5.0.1-7.1
SUSE:Linux Enterprise Desktop 12 SP2 libXi 0 1.7.4-14.1
SUSE:Linux Enterprise Desktop 12 SP2 libXrender 0 0.9.8-7.1
SUSE:Linux Enterprise Desktop 12 SP2 libXtst 0 1.2.2-7.1
SUSE:Linux Enterprise Desktop 12 SP2 libXv 0 1.0.10-7.1
SUSE:Linux Enterprise Desktop 12 SP2 libXvMC 0 1.0.8-7.1
SUSE:Linux Enterprise Server 11 SP4 xorg-x11-libX11 0 7.4-5.11.65.1
SUSE:Linux Enterprise Server 12 SP1 libX11 0 1.6.2-6.2
SUSE:Linux Enterprise Server 12 SP1 libX11 0 1.6.2-11.1
SUSE:Linux Enterprise Server 12 SP1 libXfixes 0 5.0.1-5.2
SUSE:Linux Enterprise Server 12 SP1 libXi 0 1.7.4-12.2
SUSE:Linux Enterprise Server 12 SP1 libXrandr 0 1.4.2-5.2
SUSE:Linux Enterprise Server 12 SP1 libXrender 0 0.9.8-5.2
SUSE:Linux Enterprise Server 12 SP1 libXtst 0 1.2.2-5.2
SUSE:Linux Enterprise Server 12 SP1 libXv 0 1.0.10-5.2
SUSE:Linux Enterprise Server 12 SP1 libXvMC 0 1.0.8-5.2
SUSE:Linux Enterprise Server 12 SP2 libX11 0 1.6.2-8.1
SUSE:Linux Enterprise Server 12 SP2 libX11 0 1.6.2-11.1
SUSE:Linux Enterprise Server 12 SP2 libXfixes 0 5.0.1-7.1
SUSE:Linux Enterprise Server 12 SP2 libXi 0 1.7.4-14.1
SUSE:Linux Enterprise Server 12 SP2 libXrender 0 0.9.8-7.1
SUSE:Linux Enterprise Server 12 SP2 libXtst 0 1.2.2-7.1
SUSE:Linux Enterprise Server 12 SP2 libXv 0 1.0.10-7.1
SUSE:Linux Enterprise Server 12 SP2 libXvMC 0 1.0.8-7.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 libX11 0 1.6.2-8.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 libX11 0 1.6.2-11.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 libXfixes 0 5.0.1-7.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 libXi 0 1.7.4-14.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 libXrender 0 0.9.8-7.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 libXtst 0 1.2.2-7.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 libXv 0 1.0.10-7.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 libXvMC 0 1.0.8-7.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 xorg-x11-libX11 0 7.4-5.11.65.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 libX11 0 1.6.2-6.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 libX11 0 1.6.2-11.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 libXfixes 0 5.0.1-5.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 libXi 0 1.7.4-12.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 libXrandr 0 1.4.2-5.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 libXrender 0 0.9.8-5.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 libXtst 0 1.2.2-5.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 libXv 0 1.0.10-5.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 libXvMC 0 1.0.8-5.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 libX11 0 1.6.2-8.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 libX11 0 1.6.2-11.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 libXfixes 0 5.0.1-7.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 libXi 0 1.7.4-14.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 libXrender 0 0.9.8-7.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 libXtst 0 1.2.2-7.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 libXv 0 1.0.10-7.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 libXvMC 0 1.0.8-7.1
SUSE:Linux Enterprise Software Development Kit 11 SP4 xorg-x11-libX11 0 7.4-5.11.65.1
SUSE:Linux Enterprise Software Development Kit 12 SP1 libX11 0 1.6.2-6.2
SUSE:Linux Enterprise Software Development Kit 12 SP1 libX11 0 1.6.2-11.1
SUSE:Linux Enterprise Software Development Kit 12 SP1 libXfixes 0 5.0.1-5.2
SUSE:Linux Enterprise Software Development Kit 12 SP1 libXi 0 1.7.4-12.2
SUSE:Linux Enterprise Software Development Kit 12 SP1 libXrandr 0 1.4.2-5.2
SUSE:Linux Enterprise Software Development Kit 12 SP1 libXrender 0 0.9.8-5.2
SUSE:Linux Enterprise Software Development Kit 12 SP1 libXtst 0 1.2.2-5.2
SUSE:Linux Enterprise Software Development Kit 12 SP1 libXv 0 1.0.10-5.2
SUSE:Linux Enterprise Software Development Kit 12 SP1 libXvMC 0 1.0.8-5.2
SUSE:Linux Enterprise Software Development Kit 12 SP2 libX11 0 1.6.2-8.1
SUSE:Linux Enterprise Software Development Kit 12 SP2 libX11 0 1.6.2-11.1
SUSE:Linux Enterprise Software Development Kit 12 SP2 libXfixes 0 5.0.1-7.1
SUSE:Linux Enterprise Software Development Kit 12 SP2 libXi 0 1.7.4-14.1
SUSE:Linux Enterprise Software Development Kit 12 SP2 libXrender 0 0.9.8-7.1
SUSE:Linux Enterprise Software Development Kit 12 SP2 libXtst 0 1.2.2-7.1
SUSE:Linux Enterprise Software Development Kit 12 SP2 libXv 0 1.0.10-7.1
SUSE:Linux Enterprise Software Development Kit 12 SP2 libXvMC 0 1.0.8-7.1
Ubuntu:14.04:LTS libx11 0 2:1.6.2-1ubuntu2.1
Ubuntu:16.04:LTS libx11 0 2:1.6.3-1ubuntu2.1
Ubuntu:18.04:LTS libx11 0 2:1.6.4-3ubuntu0.1

Related vulnerabilities