Upgrade coreutils to 9.8 for CVE-2025-5278 - #18181
Open
akhila-guruju wants to merge 2 commits into
Open
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge Checklist
All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)
*-staticsubpackages, etc.) have had theirReleasetag incremented../cgmanifest.json,./toolkit/scripts/toolchain/cgmanifest.json,.github/workflows/cgmanifest.json)./LICENSES-AND-NOTICES/SPECS/data/licenses.json,./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md,./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)*.signatures.jsonfilessudo make go-tidy-allandsudo make go-test-coveragepassSummary
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 -fi→AUTOPOINT=true autoreconf -fiin%build.Why: coreutils declares
AM_GNU_GETTEXT_VERSION([0.19.2]), soautopointoverwrites the tarball's bundled gnulib m4 macros with stale gettext‑0.19 copies that lackgl_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=trueover Fedora'ssed '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), andnproc 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
Does this affect the toolchain?
YES
Associated issues
Links to CVEs
Test Methodology