zlib: backport fix for heap-based buffer over-read (CVE-2022-37434)
authorPetr Štetiar <ynezz@true.cz>
Sat, 6 Aug 2022 12:55:07 +0000 (14:55 +0200)
committerPetr Štetiar <ynezz@true.cz>
Mon, 8 Aug 2022 08:00:39 +0000 (10:00 +0200)
commit5f189f2f333b25aec20bbf4cc9d5d8ca488ec895
treedebd15f91206c510d2c392ff80ff006591131b80
parentf94b30d83c2aa401b3ff9c4914bb2ef6386df8aa
zlib: backport fix for heap-based buffer over-read (CVE-2022-37434)

zlib through 1.2.12 has a heap-based buffer over-read or buffer overflow
in inflate in inflate.c via a large gzip header extra field. NOTE: only
applications that call inflateGetHeader are affected. Some common
applications bundle the affected zlib source code but may be unable to
call inflateGetHeader.

Fixes: CVE-2022-37434
References: https://github.com/ivd38/zlib_overflow
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit 7df6795d4c25447683fd4b4a4813bebcddaea547)
package/libs/zlib/Makefile
package/libs/zlib/patches/006-fix-CVE-2022-37434.patch [new file with mode: 0644]