GLSA-201612-55 : libjpeg-turbo: User-assisted execution of arbitrary code

Medium Nessus Plugin ID 96230


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


The remote host is affected by the vulnerability described in GLSA-201612-55 (libjpeg-turbo: User-assisted execution of arbitrary code)

The accelerated Huffman decoder was previously invoked if there were 128 bytes in the input buffer. However, it is possible to construct a JPEG image with Huffman blocks > 430 bytes in length. This release simply increases the minimum buffer size for the accelerated Huffman decoder to 512 bytes, which should accommodate any possible input.
Impact :

A remote attacker could coerce the victim to run a specially crafted image file resulting in the execution of arbitrary code.
Workaround :

There is no known workaround at this time.


All libjpeg-turbo users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=media-libs/libjpeg-turbo-1.5.0'

See Also

Plugin Details

Severity: Medium

ID: 96230

File Name: gentoo_GLSA-201612-55.nasl

Version: $Revision: 3.1 $

Type: local

Published: 2017/01/03

Modified: 2017/01/03

Dependencies: 12634

Risk Information

Risk Factor: Medium

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:libjpeg-turbo, cpe:/o:gentoo:linux

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

Patch Publication Date: 2016/12/31

Reference Information

GLSA: 201612-55