Skip to content

fix(gzip): upgrade to 1.15 to address CVEs - #20300

Open
Kanishk Bansal (Kanishk-Bansal) wants to merge 1 commit into
4.0from
gzip-patchlevel-cves
Open

Kanishk Bansal (Kanishk-Bansal) wants to merge 1 commit into
4.0from
gzip-patchlevel-cves

Conversation

@Kanishk-Bansal

@Kanishk-Bansal Kanishk Bansal (Kanishk-Bansal) commented Nov 15, 2026 •

Copy link
Copy Markdown

Summary

Upgrade gzip from 1.13 to upstream 1.15 with a version overlay on the current Fedora f43 spec (f43 ships 1.13, f44 ships 1.14). This replaces #20024, which pinned rawhide; none of rawhide's spec changes are taken. It also backports one upstream build fix that 1.15 needs on AArch64.

CVEs addressed (2)

CVE Severity How the fix was verified
CVE-2026-41992 High Global buffer overflow when decompressing an .lzh file after a .Z file. Fixes 63dbf6b3b9 and its follow-up e7378c2d42 are in v1.15 and not in v1.13; listed in the 1.15 NEWS
CVE-2026-41991 Medium Predictable temporary file in gzexe when mktemp is missing. Fix 4e6f8b24ab is in v1.15 and not in v1.13; listed in the 1.15 NEWS

Notes

  • Behaviour changes in 1.14 and 1.15 (from upstream NEWS): gzip now follows the environment locale instead of forcing "C" (affects number formatting in -l/-v output), gzip -l reports -Inf% for empty files, znew -P is ignored with a warning, and gzip -d accepts PKZIP signatures in streamed zip files. The rest are bug fixes.
  • b4ed8e7340 (upstream, after 1.15) is backported so gzip.c includes gzip.h after the system headers; without it 1.15 fails to build against newer AArch64 linux headers (bug#81904). It only reorders an include.
  • The f43 spec's s390x settings are untouched (4.0 does not build s390x).
  • The tarball matches the SHA512 Fedora uploaded for 1.15. The old 1.13 checksum is removed from sources by the overlay.

Changes

  • base/comps/components.toml: drop the inline gzip entry.
  • base/comps/gzip/gzip.comp.toml: pin the 1.15 tarball.
  • base/comps/gzip/overlays/0001-update-to-1.15.overlay.toml: Version 1.15, drop the 1.13 checksum.
  • base/comps/gzip/overlays/0002-backport-aarch64-build-fix.overlay.toml and gzip-1.15-build-aarch64-include-order.patch: the include-order backport.
  • locks/gzip.lock, specs/g/gzip/: regenerated by azldev.

Testing

  • PR check scratch package build passed: build 1257163. Control Tower built gzip for the 4.0 environment at the PR head 0de4491c3c in about 6 min.
  • Lock and render drift checks passed; azldev comp update --check-only is clean.
  • The new NVR is higher than what is published for 4.0 today.
  • Built locally in mock (x86_64): gzip 1.15-8; %check passed (make check: 34/34 PASS). Smoke test in the 4.0 chroot: gzip/zcat/gunzip round trip and gzexe work.

Fedora f43 ships gzip 1.13 and f44 ships 1.14. Update to upstream 1.15
with a version overlay on the current f43 spec. 1.15 has the fixes for
the .lzh after .Z buffer overflow (63dbf6b3b9, e7378c2d42) and the
gzexe temporary file race (4e6f8b24ab).

Also backport upstream b4ed8e7340 (include gzip.h after all system
headers) so 1.15 builds against newer AArch64 linux headers.

Addresses CVE(s):
CVE-2026-41991, CVE-2026-41992
@Kanishk-Bansal Kanishk Bansal (Kanishk-Bansal) added security CVE-fixed-by-upgrade CVE fixed by package upgrade 4.0 Issues and PRs for Azure Linux 4.0 targets-4.0 labels Nov 15, 2026
Copilot AI balanced review requested due to automatic review settings November 15, 2026 07:20
@Kanishk-Bansal

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The security-sensitive RPM upgrade and AArch64 backport require maintainer validation because current build, RPM-inspection, and mock smoke-test results are absent, and predecessor testing does not cover the f43-based implementation.

No open issues 🎉

What changed in this PR

Upgrades Azure Linux’s gzip package from 1.13 to 1.15 to address CVE-2026-41991 and CVE-2026-41992, retaining the Fedora f43 spec rather than adopting rawhide changes.

Changes:

  • Moves gzip into a dedicated component definition with the 1.15 tarball and SHA512 checksum.
  • Adds version-update overlays and an upstream include-order fix for AArch64 builds.
  • Refreshes the lock fingerprint and rendered packaging files.
File Description
specs/​g/​gzip/​sources Replaces the 1.13 checksum with 1.15.
specs/​g/​gzip/​gzip.spec Updates version and release; applies the build fix.
specs/​g/​gzip/​gzip-1.15-build-aarch64-include-order.patch Includes the rendered AArch64 patch.
locks/​gzip.lock Refreshes the component input fingerprint.
base/​comps/​gzip/​overlays/​0002-backport-aarch64-build-fix.overlay.toml Registers and applies the upstream build fix.
base/​comps/​gzip/​overlays/​0001-update-to-1.15.overlay.toml Sets version 1.15 and removes the obsolete checksum.
base/​comps/​gzip/​gzip.comp.toml Defines the 1.15 source download and checksum.
base/​comps/​gzip/​gzip-1.15-build-aarch64-include-order.patch Moves gzip.h after system headers.
base/​comps/​components.toml Removes the inline entry replaced by dedicated configuration.

Review effort: Balanced

@Kanishk-Bansal
Kanishk Bansal (Kanishk-Bansal) marked this pull request as ready for review November 15, 2026 10:49

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.0 Issues and PRs for Azure Linux 4.0 CVE-fixed-by-upgrade CVE fixed by package upgrade security targets-4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants