zlib: Buffer Overflow — GLSA 202401-18

A vulnerability has been found in zlib that can lead to a heap-based buffer overflow.

Affected packages

sys-libs/zlib on all architectures
Affected versions < 1.2.13-r2
Unaffected versions >= 1.2.13-r2

Background

zlib is a widely used free and patent unencumbered data compression library.

Description

A vulnerability has been discovered in zlib. Please review the CVE identifier referenced below for details.

Impact

MiniZip in zlib through 1.3 has an integer overflow and resultant heap-based buffer overflow in ZipOpenNewFileInZip4_64 via a long filename, comment, or extra field.

Workaround

There is no known workaround at this time.

Resolution

All zlib users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=sys-libs/zlib-1.2.13-r2"
 

References

Release date
January 15, 2024

Latest revision
January 15, 2024: 1

Severity
high

Exploitable
remote

Bugzilla entries