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 07:46:36 +0000 (09:46 +0200)
commit7561eab8e86e1bfe8fda941439a99d4fb22a5928
tree58d9edb1021effcd122b4d75868328e6aa680f94
parent1f9d60314162249a4ace2e22e9d820bece75de85
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/patches/006-fix-CVE-2022-37434.patch [new file with mode: 0644]