Skip to content

Upgrade coreutils to 9.8 for CVE-2025-5278 - #18181

Open
akhila-guruju wants to merge 2 commits into
microsoft:fasttrack/3.0from
Kanishk-Bansal:topic/coreutils/3.0/upgrade-9.8
Open

Upgrade coreutils to 9.8 for CVE-2025-5278#18181
akhila-guruju wants to merge 2 commits into
microsoft:fasttrack/3.0from
Kanishk-Bansal:topic/coreutils/3.0/upgrade-9.8

Conversation

@akhila-guruju

@akhila-guruju akhila-guruju commented Jul 27, 2026

Copy link
Copy Markdown
Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

  • The toolchain has been rebuilt successfully (or no changes were made to it)
  • The toolchain/worker package manifests are up-to-date
  • Any updated packages successfully build (or no packages were changed)
  • Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
  • Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
  • All package sources are available
  • cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
  • LICENSE-MAP files are up-to-date (./LICENSES-AND-NOTICES/SPECS/data/licenses.json, ./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md, ./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)
  • All source files have up-to-date hashes in the *.signatures.json files
  • sudo make go-tidy-all and sudo make go-test-coverage pass
  • Documentation has been updated to match any changes to the build system
  • Ready to merge

Summary

Upgrade coreutils 9.4 → 9.8 (addresses CVE-2025-5278).
Rebase the i18n multibyte patch to 9.8 (coreutils-9.8-i18n.patch). Patch has been taken from Fedora.
Drop CVE-2024-0684.patch, fixed upstream in 9.5.

Build fix

Changed autoreconf -fiAUTOPOINT=true autoreconf -fi in %build.

Why: coreutils declares AM_GNU_GETTEXT_VERSION([0.19.2]), so autopoint overwrites the tarball's bundled gnulib m4 macros with stale gettext‑0.19 copies that lack gl_ANYTHREADLIB_EARLY, gl_PTHREADLIB, gl_WEAK_SYMBOLS, gl_TYPE_WINT_T_PREREQ → autoreconf fails. Skipping autopoint keeps the tarball's already-coherent macro set (verified: those macros are defined in the bundled m4/threadlib.m4/wint_t.m4).

Chose AUTOPOINT=true over Fedora's sed 's/0.19.2/<gettext-ver>/' because it's version-independent (azl ships gettext 0.22, and gettext-devel is only a virtual Provide here), can't silently no-op on a future rebase, and needs no rpm -q/BuildRequires plumbing. Both fixes are functionally equivalent; this one is lower-maintenance for AZL.

Compatibility:

No library API/ABI change (coreutils ships executables, not a linkable library). Behavioral deltas are CLI-only, documented in NEWS, and auditable. The notable ones for scripts are cp -n/mv -n exit-status revert (9.5), ls -f flag semantics (9.6), and nproc cgroup‑v2 quota awareness (9.8). C/POSIX‑locale default behavior is unchanged.

Refs:
https://src.fedoraproject.org/rpms/coreutils/blob/20976b8be8f329b2ffc60ed31fba89ed8ad2106a/f/coreutils-i18n.patch
https://src.fedoraproject.org/rpms/coreutils/blob/f44/f/coreutils.spec

Change Log
  • deleted: SPECS/coreutils/CVE-2024-0684.patch
  • renamed: SPECS/coreutils/coreutils-9.4-i18n-1.patch -> SPECS/coreutils/coreutils-9.8-i18n.patch
  • modified: SPECS/coreutils/coreutils.signatures.json
  • modified: SPECS/coreutils/coreutils.spec
  • modified: cgmanifest.json
  • modified: toolkit/resources/manifests/package/pkggen_core_aarch64.txt
  • modified: toolkit/resources/manifests/package/pkggen_core_x86_64.txt
  • modified: toolkit/resources/manifests/package/toolchain_aarch64.txt
  • modified: toolkit/resources/manifests/package/toolchain_x86_64.txt
Does this affect the toolchain?

YES

Associated issues
  • #xxxx
Links to CVEs
Test Methodology
  • Local Build
image

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@microsoft-github-policy-service microsoft-github-policy-service Bot added Packaging fasttrack/3.0 PRs Destined for Azure Linux 3.0 labels Jul 27, 2026
@Kanishk-Bansal Kanishk-Bansal added security CVE-fixed-by-upgrade CVE fixed by package upgrade labels Jul 27, 2026
@akhila-guruju
akhila-guruju marked this pull request as ready for review July 28, 2026 04:01
@akhila-guruju
akhila-guruju requested a review from a team as a code owner July 28, 2026 04:01
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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

Labels

CVE-fixed-by-upgrade CVE fixed by package upgrade fasttrack/3.0 PRs Destined for Azure Linux 3.0 Packaging security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants