---
title: "CVE-2016-6906\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2016-6906?format=md
keywords: index, follow
---

# CVE-2016-6906

Publication date 31 December 2016

Last updated 25 August 2025

---

Ubuntu priority

**Low**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**5.5 · Medium**

[Score breakdown](https://ubuntu.com/security/CVE-2016-6906?format=md#impact-score)

Toggle side navigation

## Description

The read\_image\_tga function in gd\_tga.c in the GD Graphics Library (aka
libgd) before 2.2.4 allows remote attackers to cause a denial of service
(out-of-bounds read) via a crafted TGA file, related to the decompression
buffer.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2016-6906?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| libgd2 | 16.10 yakkety | Fixed 2.2.1-1ubuntu3.3 |
| 16.04 LTS xenial | Fixed 2.1.1-4ubuntu0.16.04.6 |
| 14.04 LTS trusty | Fixed 2.1.0-3ubuntu0.6 |
| 12.04 LTS precise | Not affected |
| php5 | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not affected |
| 12.04 LTS precise | Not affected |
| php7.0 | 16.10 yakkety | Not affected |
| 16.04 LTS xenial | Not affected |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2016-6906?format=md#patch-details)

## Notes

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

php uses the system libgd2

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| libgd2 | * Upstream:   [fb0e0cc](https://github.com/libgd/libgd/commit/fb0e0cce0b9f25389ab56604c3547351617e1415) * Upstream:   [58b6dde](https://github.com/libgd/libgd/commit/58b6dde319c301b0eae27d12e2a659e067d80558) |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

5.5 · Medium

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Local |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | Required |
  | Scope | Unchanged |
  | Confidentiality impact | None |
  | Integrity impact | None |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 5.5 · Medium |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-6906)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2016-6906)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2016-6906)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2016-6906)

### Related Ubuntu Security Notices (USN)

+ [USN-3213-1](https://usn.ubuntu.com/USN-3213-1)
+ GD library vulnerabilities
+ 28 February 2017

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2016-6906>
