LIBPNG has a heap buffer overflow in png_set_quantize
LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. Prior to 1.6.55, an out-of-bounds read vulnerability exists in the png_set_quantize() API function. When the function is called with no histogram and the number of colors in the palette is more than twice the maximum supported by the user's display, certain palettes will cause the function to enter into an infinite loop that reads past the end of an internal heap-allocated buffer. The images that trigger this vulnerability are valid per the PNG specification. This vulnerability is fixed in 1.6.55.
References
-
https://github.com/pnggroup/libpng/security/advisories/GHSA-g8hp-mq4h-rqm3 x_refsource_CONFIRM
-
https://github.com/pnggroup/libpng/security/advisories/GHSA-g8hp-mq4h-rqm3 x_refsource_CONFIRM
Affected products
- ==< 1.6.55
Matching in nixpkgs
pkgs.libpng
Official reference implementation for the PNG file format with animation patch
pkgs.libpng12
Official reference implementation for the PNG file format
pkgs.perlPackages.ImagePNGLibpng
Perl interface to libpng
pkgs.perl5Packages.ImagePNGLibpng
Perl interface to libpng
-
nixos-unstable -
- nixpkgs-unstable 0.59
pkgs.perl538Packages.ImagePNGLibpng
Perl interface to libpng
-
nixos-unstable 0.59
pkgs.perl540Packages.ImagePNGLibpng
Perl interface to libpng
-
nixos-unstable 0.59
pkgs.tests.pkg-config.defaultPkgConfigPackages.libpng
Test whether libpng-apng-1.6.47 exposes pkg-config modules libpng
Package maintainers
-
@vcunat Vladimír Čunát <v@cunat.cz>