Skip to content

zlib: Address CVE-2016-9841

Michal Simek u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4zlib: Rename this variable to here (current decoding table entry)lib/zlib/inffast.c+14 -140 replies
2/4zlib: Rename write variable to wnext (window write index)lib/zlib/inffast.c lib/zlib/inflate.c lib/zlib/inflate.h+22 -220 replies
3/4zlib: Port fix for CVE-2016-9841 to U-Bootlib/zlib/inffast.c+42 -880 replies
4/4zlib: Remove incorrect ZLIB_VERSIONinclude/u-boot/zlib.h lib/gzip.c lib/zlib/deflate.c +2 more+13 -280 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] zlib: Address CVE-2016-9841

Hi,

it looks like that only CVE-2016-9841 is not fixed and this series is trying to address it. The first two patches are just preparation based on changes which happened in past. The third one is actual fix and the last one is following what has been done in Linux kernel long time ago and don't use incorrect zlib version string.

I tested it with and I can't see any issue.
./test/py/test.py --bd sandbox --build -s

And gitlab CI is also not showing any issue.

Thanks,
Michal

Michal Simek (4):
zlib: Rename this variable to here (current decoding table entry)
zlib: Rename write variable to wnext (window write index)
zlib: Port fix for CVE-2016-9841 to U-Boot
zlib: Remove incorrect ZLIB_VERSION

 include/u-boot/zlib.h |  16 ++--
 lib/gzip.c            |   2 +-
 lib/zlib/deflate.c    |  13 +---
 lib/zlib/inffast.c    | 176 ++++++++++++++++--------------------------
 lib/zlib/inflate.c    |  31 ++++----
 lib/zlib/inflate.h    |   2 +-
 lib/zlib/zutil.c      |   1 -
 7 files changed, 90 insertions(+), 151 deletions(-)
Signature · 1 line
2.44.0