Repository navigation
base soup: carry security backports for glibc 2.44, tar, bison, bzip2 - #1694
Draft
bryan-minimal wants to merge 8 commits into
Draft
bryan-minimal wants to merge 8 commits into
bryan-minimal wants to merge 8 commits into
Conversation
One carried patch, `git diff glibc-2.44..809fd7179d` of sourceware release/2.44/master (Debian's git-updates.diff approach; release branches are ABI-stable and this range touches no *.abilist / Versions file). Applied with `patch -Np1 -F0` before configure; a sentinel test proves the last commit's file landed. `patch` joins glibc's build deps (glibc's build env had none; same non-breaker cycle shape as perl/python). Fixes CVE-2026-19499, -19542, -77117, -80489, -8674, -18374, -86805, -95818, -100290, -115819, -121758, -126765 (plus -84243 intl). The only hunk dropped is the empty test-only marker elf/tst-dl-cache-old-format.root/postclean.req (make check only). Verified on the pinned tarball (sha256 37f600f2...): git apply --check passes, and the patched tree equals 809fd7179d except that file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 332f4fab30e811498586b4d9f75e47cb20ddfb5e)
…ed patch The patch header says the one hunkless empty-file creation (elf/tst-dl-cache-old-format.root/postclean.req) was dropped because GNU patch handling of that construct was unproven, but the range adds a second one: elf/tst-origin-secure.root/postclean.req (6b48c0b29c, the CVE-2026-86805/95818 fix's regression test). Drop it for the same reason; it is read only by `make check`, which build.sh does not run. The patch is regenerated from upstream with both excluded; it still applies to the pinned tarball and yields the 809fd7179d tree apart from the two markers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 4ba0b5115e7fb561846e0f567dc36766ef004686)
IBM1390/IBM1399 iconv encoders read past the input buffer when looking up the character after a combining base (glibc bug 34914). Fixed on master by 77fe280828 (2026-11-12); not on release/2.44/master yet. Carried as a second patch applied after the release-branch diff, with -F0. Only the iconvdata/ibm1364.c hunk: that file is identical at 809fd7179d and at the fix's parent. The upstream test and its Makefile registration are left out (the Makefile context differs on 2.44 and build.sh does not run make check). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 9700ab5d76ce19743976e521ea8be669008bbb17)
…-2026-18477 No tar release since 1.35 carries these. Four carried patches, applied in order with patch -F0 before the existing acl_*_at rename, re-based from the CentOS Stream c10s backport (tar-1.35-13: Patch23/24, 26, 27, 28) onto a pristine 1.35, src/ hunks only: - 0001 CVE-2025-45582: openat2(RESOLVE_BENEATH) extraction jail. Required base for the two requested fixes; 1.35 did not carry it. The gnulib openat2 module import is dropped: glibc >= 2.43 (we ship 2.44) declares openat2 itself, and gnulib compiles nothing there, so configure and the Makefile.in files need no regeneration. - 0002 CVE-2026-5704: member hidden from -t. 0003 is written on top of it. - 0003 CVE-2026-18508: --one-top-level hardlink escape (+ restores absolute --one-top-level). make_directories() gains its INTERDIR_MADE argument here, since we do not carry RHEL's --no-overwrite-dir patch. - 0004 CVE-2026-18477: incremental 'X' temp dir via mkdtempat, inlined into incremen.c instead of a new lib/ file. Not 79d61af0 (reverted upstream). Dropped everywhere: NEWS/THANKS, doc/tar.texi (would force makeinfo), tests/. The replace_on_cycle prebuilt breaker is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit c34bd2cc0700e6c51d6a1ba832ecf98d32fd3e47)
build.sh now runs `patch -Np1 -F0`, but tar's build_deps were only base-bootstrap, make and toolchain, none of which ship GNU patch, so the build would stop at `patch: not found`. Every other pkgs build.sh that calls patch imports ../patch (bzip2 in this same batch does too). 0003's header said the make_directories INTERDIR_MADE argument came from RHEL's 4e742fc8 (--no-overwrite-dir). It actually came from upstream 1e6ce98e (RHEL Patch13, --keep-newer-files spurious diagnostic). This changes only the comment text; the diff hunks are untouched. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 8f9c81fbf4bd44055f1b2764aba39138c8051410)
Two carried patches from savannah bison master (2026-04-23). No release has either fix yet; 3.8.2 is the latest. - 0001 (3169c1e7a2c6, CVE-2026-56389): --html now runs "xsltproc" from PATH. Before, it execvp'd the value of the grammar's undocumented `%define tool.xsltproc`. A grammar that still sets that variable now fails with "%define variable 'tool.xsltproc' is not used". - 0002 (8d101c19d4d9, CVE-2026-56390): a `%output "FILE"` or `%header "FILE"` (and the deprecated alias `%defines "FILE"`) whose FILE contains '/' is now an error ("invalid %output file name ignored"), so bison exits non-zero. Plain names, and -o / --header paths given on the command line, are unchanged. The patch also carries the matching edit to the shipped, generated src/parse-gram.[ch]: the same code changes, with the #line directives and yyrline[] renumbered. THANKS and doc/bison.texi hunks are dropped. Both apply with -F0 to the pinned tarball (sha256 9bba0214...). build.sh touches parse-gram.[ch] after patching so make never tries to regenerate them with the bison being built. `patch` is a new build dep. It is already in bison's toolchain/glibc cycle, which bison's replace_on_cycle breaks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit c6a0bccbe5979ed68f052eb3d07ba40cee06aec5)
bzip2 1.0.8 is still the latest release and gitlab.com/bzip2/bzip2 is dormant, so carry the fixes from sourceware bzip2 master as Local patches applied with patch -Np1 -F0: - 0001 35d122a3df8b: CVE-2026-42250, off-by-one before tooManyBlocks let the scan loop write one past bStart/bEnd/rbStart/rbEnd. - 0002 6ab7670e74d3: same fix set; reject a block whose end precedes its start (unsigned underflow that passed the >= 130 size check). - 0003 f5dfc96063fe: CWE-59; create the predictable recNNNNN output files with O_EXCL and mode 0600 instead of fopen "wb", so a planted symlink is not followed and an existing file is not clobbered. Not taken: af35561 (snprintf for the output name) is defensive only; the write is bounded today by the input-name length check and the block cap. All three apply verbatim to the pinned tarball (sha256 ab5a0317...), in order. Adds `patch` as a build dep, the first package in the base soup to need it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit b9bf2aaa6acae76615878085f60a2ef5b34c8a8f)
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
|
pkgs#1694's world build failed in tar in the bootstrap pre-phase (build-bot run 51549d61): "invalid use of undefined type 'struct open_how'", "implicit declaration of function 'openat2'", "RESOLVE_BENEATH undeclared". 0001 dropped gnulib's openat2 module because glibc >= 2.43 declares openat2, struct open_how and RESOLVE_*; but the pre-phase builds tar against glibc's gen-13 breaker, glibc-bedrock 2.42, which has none of them. 0005 adds src/openat2-compat.h (included from common.h): a no-op when <fcntl.h> defines RESOLVE_BENEATH, otherwise struct open_how/RESOLVE_* from <linux/openat2.h> (or the kernel ABI layout) and openat2 as syscall(SYS_openat2) -- what glibc's own openat2 is. Header only, no autotools change. 0001's header text is updated to match. Checked on Linux in Cloud Build (991e6224): tar's build.sh builds on Ubuntu 25.10 / glibc 2.42 (compat path) and Fedora 44 / glibc 2.43 (native path); on both the built tar refuses a member written through an escaping symlink (EXDEV), where Ubuntu's unpatched system tar 1.35 writes outside; a create/extract round trip with symlink + hardlink matches; the no-<linux/openat2.h> branch compiles with -Wall -Werror and returns EXDEV. gpatch 2.8.1 -Np1 -F0 applies 0001-0005 cleanly to the pinned tarball. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Carries security backports for four base-soup packages: glibc 2.44, tar 1.35, bison 3.8.2 and bzip2 1.0.8. They are bundled so the base soup goes through one world rebuild instead of four. The spec hash changes for 596 of 619 packages on each arch.
Method. Each package keeps its pinned upstream tarball. The fixes ship as carried patches (
Localbuild deps) that build.sh applies withpatch -Np1 -F0before configure, so a hunk that doesn't apply exactly fails the build.patchbecomes a build dep of all four. The new tar/bison/bzip2 → patch cycles go through the existing breakers: tar's and bison'sreplace_on_cycle, and the breakers on bzip2's new cycles through base/attr. Each patch's header and build.ncl comment name the upstream commits. When minimal 0.7.4 ships with stdlib 0.0.22 (minimal#3786, which backports minimal#1277), a follow-up will move these into therevision/patches[]ledger.glibc 2.44
0001isgit diff glibc-2.44..809fd7179dof sourcewarerelease/2.44/master(2.44-87), the same approach as Debian's git-updates.diff.0002is CVE-2026-124024 from master. Release-branch commits are ABI-stable, and the range touches no*.abilistorVersionsfile. Two empty test-only marker files (elf/*.root/postclean.req) are left out because onlymake checkreads them, and build.sh doesn't run it.fopenccs=heap overflow$ORIGINrpath in AT_SECURE programs$ORIGINrpath%s/%[double NULLANGUAGEpath traversaliconvdata/ibm1364.cfix is carried; the upstream test is not, because its Makefile context differs on 2.44tar 1.35
Four patches, rebased onto pristine 1.35 from the CentOS Stream c10s backport (tar-1.35-13, Patch23/24/26/27/28),
src/hunks only. Each patch header lists what was dropped or adapted. NEWS/THANKS, doc and tests are dropped. The gnulib openat2 import is dropped because glibc ≥ 2.43 declaresopenat2.0005(not upstream) adds a header-onlysrc/openat2-compat.h. tar is first built in the bootstrap pre-phase against glibc-bedrock 2.42, which has noopenat2,struct open_howorRESOLVE_*. On that glibc the header supplies them, with openat2 assyscall(SYS_openat2), which is all glibc's own openat2 is; on glibc ≥ 2.43 it does nothing. Checked on Linux in Cloud Build: tar's build.sh builds on Ubuntu 25.10 (glibc 2.42) and Fedora 44 (glibc 2.43), and on both the built tar refuses a member written through an escaping symlink. Ubuntu's unpatched tar 1.35 writes outside, which is the negative control.RESOLVE_BENEATHextraction jail (56fb4a96 … 8767b1c8); required base for the others-t-tlists differs from what is extracted--one-top-levelhardlink escape--one-top-levelXrename temp dir (not 79d61af0, which upstream reverted)bison 3.8.2
Both fixes are only on savannah bison master. No release carries them yet.
--htmlrunsxsltprocfrom PATH instead of%define tool.xsltproc.yprocessed with--html%output/%headernames containing/are rejected; also carries the matching edit to the shipped generatedsrc/parse-gram.[ch].ybzip2 1.0.8
bzip2recoveron a crafted filerecNNNNNoutputs created withO_EXCL, mode 0600bzip2recoverin a directory an attacker can write toVerification
gs://minimal-staging-archivestarball and confirmed its sha256 matches build.ncl.patchcommand from build.sh, in build.sh order, using GNU patch 2.8.1 with the same-Np1 -F0flags, on a case-sensitive filesystem. All applied with exit 0, no fuzz and no rejects. bzip2's 0003 applies two hunks at a line offset of -2/-10, which -F0 permits.809fd7179dfile for file across the 218 paths the branch touches, except the two omitted empty markers. Thesysdeps/ieee754/ldbl-opt/configuremode change (0664 → 0755) was applied as expected.posix/tst-glob-nospace.cis present and 0002's hunk landed.mip dump --packagesevaluates on amd64 and arm64, including the new cycles throughpatch. On each arch, 596 of 619 spec hashes change, including glibc, tar, bison and bzip2.Related
not_affectedclears it.fixedstatements for each CVE above get filed after merge.Follow-ups
%file-prefixcan still steer output paths. To be reported to bug-bison.revision/patches[]ledger once minimal 0.7.4 with stdlib 0.0.22 ships.🤖 Generated with Claude Code