5.1 MEDIUM
- CVSS version: 3.1
- Attack vector (AV): LOCAL
- Attack complexity (AC): LOW
- Privileges required (PR): NONE
- User interaction (UI): NONE
- Scope (S): UNCHANGED
- Confidentiality impact (C): LOW
- Integrity impact (I): LOW
- Availability impact (A): NONE
LIBPNG has a yse-after-free in png_set_PLTE, png_set_tRNS and png_set_hIST leading to corrupted chunk data and potential heap information disclosure
LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. From 1.0.9 to before 1.6.57, passing a pointer obtained from png_get_PLTE, png_get_tRNS, or png_get_hIST back into the corresponding setter on the same png_struct/png_info pair causes the setter to read from freed memory and copy its contents into the replacement buffer. The setter frees the internal buffer before copying from the caller-supplied pointer, which now dangles. The freed region may contain stale data (producing silently corrupted chunk metadata) or data from subsequent heap allocations (leaking unrelated heap contents into the chunk struct). This vulnerability is fixed in 1.6.57.
References
-
https://github.com/pnggroup/libpng/security/advisories/GHSA-6fr7-g8h7-v645 x_refsource_CONFIRM
-
https://github.com/pnggroup/libpng/issues/836 x_refsource_MISC
-
https://github.com/pnggroup/libpng/issues/837 x_refsource_MISC
Affected products
- ==>= 1.0.9, < 1.6.57
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
pkgs.perl538Packages.ImagePNGLibpng
Perl interface to libpng
pkgs.perl540Packages.ImagePNGLibpng
Perl interface to libpng
pkgs.tests.pkg-config.defaultPkgConfigPackages.libpng
Test whether libpng-apng-1.6.46 exposes pkg-config modules libpng
Package maintainers
-
@vcunat Vladimír Čunát <v@cunat.cz>