GLSA-201701-74 : libpng: Remote execution of arbitrary code

Medium Nessus Plugin ID 96860

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-201701-74 (libpng: Remote execution of arbitrary code)

A NULL pointer dereference was discovered in libpng in the png_push_save_buffer function. In order to be vulnerable, an application has to load a text chunk into the PNG structure, then delete all text, then add another text chunk to the same PNG structure, which seems to be an unlikely sequence, but it is possible.
Impact :

A remote attacker, by enticing a user to process a specially crafted PNG file, could execute arbitrary code with the privileges of the process.
Workaround :

There is no known workaround at this time.

Solution

All libpng 1.6.x users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=media-libs/libpng-1.6.27' All libpng 1.5.x users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=media-libs/libpng-1.5.28:1.5' All libpng 1.2.x users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=media-libs/libpng-1.2.57:1.2'

See Also

https://security.gentoo.org/glsa/201701-74

Plugin Details

Severity: Medium

ID: 96860

File Name: gentoo_GLSA-201701-74.nasl

Version: Revision: 3.3

Type: local

Published: 2017/01/30

Updated: 2017/03/06

Dependencies: 12634

Risk Information

Risk Factor: Medium

CVSS v2.0

Base Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P

CVSS v3.0

Base Score: 7.5

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

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:libpng, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 2017/01/29

Reference Information

CVE: CVE-2016-10087

GLSA: 201701-74