8000 base soup: carry security backports for glibc 2.44, tar, bison, bzip2 by bryan-minimal · Pull Request #1694 · gominimal/pkgs · GitHub
[go: up one dir, main page]

Skip to content

base soup: carry security backports for glibc 2.44, tar, bison, bzip2 - #1694

Draft
bryan-minimal wants to merge 8 commits into
mainfrom
base-soup-security-backports-2026-11-25
Draft

bryan-minimal wants to merge 8 commits into
mainfrom
base-soup-security-backports-2026-11-25

Conversation

@bryan-minimal
@bryan-minimal bryan-minimal commented Nov 25, 2026 •
Copy link
Copy Markdown
Member

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 (Local build deps) that build.sh applies with patch -Np1 -F0 before configure, so a hunk that doesn't apply exactly fails the build. patch becomes a build dep of all four. The new tar/bison/bzip2 → patch cycles go through the existing breakers: tar's and bison's replace_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 the revision / patches[] ledger.

glibc 2.44

0001 is git diff glibc-2.44..809fd7179d of sourceware release/2.44/master (2.44-87), the same approach as Debian's git-updates.diff. 0002 is CVE-2026-124024 from master. Release-branch commits are ABI-stable, and the range touches no *.abilist or Versions file. Two empty test-only marker files (elf/*.root/postclean.req) are left out because only make check reads them, and build.sh doesn't run it.

CVE Upstream fix Debian / Wolfi / RHEL Exploitability
CVE-2026-19499 63b53df549 strfmon right-justification Fixed in trixie/sid and Wolfi 2.44-r8 Needs attacker-controlled strfmon format/width
CVE-2026-19542 d6ff274313 tdelete out-of-bounds write Fixed in trixie/sid and Wolfi 2.44-r8 Needs a program using tsearch/tdelete on attacker-influenced keys
CVE-2026-77117 6f9b2bfa50 SHIFT_JISX0213 pending-char reset Fixed in trixie/sid and Wolfi 2.44-r8 iconv on untrusted SHIFT_JISX0213 input
CVE-2026-80489 cb61572ea3 EUC_JISX0213 pending-char reset Fixed in trixie/sid and Wolfi 2.44-r8 iconv on untrusted EUC_JISX0213 input
CVE-2026-8674 1f50262410 resolv search-list truncation assert Fixed in trixie/sid and Wolfi 2.44-r8 DoS (assertion) via resolver config / search list
CVE-2026-18374 0b4e41fc51 + test 30950ce64d, fopen ccs= heap overflow Fixed in trixie/sid and Wolfi 2.44-r8 Needs attacker-controlled fopen mode string
CVE-2026-86805, CVE-2026-95818 6b48c0b29c normalized $ORIGIN rpath in AT_SECURE programs Fixed in trixie/sid and Wolfi 2.44-r8 Local, setuid/AT_SECURE binaries with $ORIGIN rpath
CVE-2026-100290 fcfb867c58 regcomp/regexec double free on allocation failure Debian no-dsa (minor); RHEL low Needs allocation failure
CVE-2026-115819 063fdd4c7e wide scanf %s/%[ double NUL Debian no-dsa (minor); RHEL low One-wchar overwrite with wide scanf
CVE-2026-121758 625054f30f ISO-2022-CN-EXT SO without designation Debian no-dsa (minor); RHEL low iconv on untrusted ISO-2022-CN-EXT input
CVE-2026-126765 809fd7179d glob double free on allocation failure Debian no-dsa (minor); RHEL low Needs allocation failure
CVE-2026-84243 438677ef49 intl LANGUAGE path traversal not researched Environment-controlled; local only
CVE-2026-124024 master 77fe280828 (2026-11-12), not on release/2.44 yet: IBM1390/IBM1399 encoder over-read. Only the one-line iconvdata/ibm1364.c fix is carried; the upstream test is not, because its Makefile context differs on 2.44 not researched (fix is 2 weeks old) iconv to IBM1390/1399 from untrusted input

tar 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 declares openat2.

0005 (not upstream) adds a header-only src/openat2-compat.h. tar is first built in the bootstrap pre-phase against glibc-bedrock 2.42, which has no openat2, struct open_how or RESOLVE_*. On that glibc the header supplies them, with openat2 as syscall(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.

CVE Upstream fix Debian / Wolfi / RHEL Exploitability
CVE-2025-45582 openat2 RESOLVE_BENEATH extraction jail (56fb4a96 … 8767b1c8); required base for the others RHEL fixed (1.35-13.el10_2); Debian no-dsa; Wolfi partial Extracting a crafted archive
CVE-2026-5704 b009124f b8d8a61b 67981bbb 19a3a73e, member hidden from -t as above Crafted archive: what -t lists differs from what is extracted
CVE-2026-18508 bfc33463 … e335e2c8, --one-top-level hardlink escape as above Extracting a crafted archive with --one-top-level
CVE-2026-18477 0714d2f0 d479b2cc, incremental X rename temp dir (not 79d61af0, which upstream reverted) as above Restoring a crafted incremental archive

bison 3.8.2

Both fixes are only on savannah bison master. No release carries them yet.

CVE Upstream fix Debian / Wolfi / RHEL Exploitability
CVE-2026-56389 3169c1e7a2c6: --html runs xsltproc from PATH instead of %define tool.xsltproc Debian no-dsa; RHEL deferred Build time only, needs a crafted .y processed with --html
CVE-2026-56390 8d101c19d4d9: %output / %header names containing / are rejected; also carries the matching edit to the shipped generated src/parse-gram.[ch] Debian no-dsa; RHEL deferred Build time only, needs a crafted .y

bzip2 1.0.8

CVE Upstream fix Debian / Wolfi / RHEL Exploitability
CVE-2026-42250 sourceware master 35d122a3df8b, bzip2recover off-by-one past the block arrays (plus 6ab7670e74d3, reject end < start) open/deferred everywhere Only bzip2recover on a crafted file
(no CVE, CWE-59) f5dfc96063fe: recNNNNN outputs created with O_EXCL, mode 0600 open everywhere bzip2recover in a directory an attacker can write to

Verification

  • Pinned sources. Fetched each gs://minimal-staging-archives tarball and confirmed its sha256 matches build.ncl.
  • Patch commands. Ran every patch command from build.sh, in build.sh order, using GNU patch 2.8.1 with the same -Np1 -F0 flags, 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.
  • glibc tree. The patched tree equals upstream 809fd7179d file for file across the 218 paths the branch touches, except the two omitted empty markers. The sysdeps/ieee754/ldbl-opt/configure mode change (0664 → 0755) was applied as expected. posix/tst-glob-nospace.c is present and 0002's hunk landed.
  • Independent review. Each package's patches had a separate review.
  • Spec hash and evaluation. mip dump --packages evaluates on amd64 and arm64, including the new cycles through patch. On each arch, 596 of 619 spec hashes change, including glibc, tar, bison and bzip2.
  • Not build-tested yet. A local arm64 build was tried, but base-soup packages can't be built in isolation locally because the build box rebuilds the toolchain. This PR's build-bot world rebuild (amd64 + arm64) is the build test, and the PR stays draft until it is green.

Related

  • pcre2 OSV-2026-343 was a false positive: fix ec9c286d is an ancestor of 10.49. A filed VEX not_affected clears it.
  • VEX fixed statements for each CVE above get filed after merge.

Follow-ups

  • glibc CVE-2026-121757 (CP949): no fix anywhere yet. Still open.
  • bison CVE-2026-56390: the upstream fix may be incomplete, since %file-prefix can still steer output paths. To be reported to bug-bison.
  • Move the carried patches to the revision / patches[] ledger once minimal 0.7.4 with stdlib 0.0.22 ships.

🤖 Generated with Claude Code

bryan-minimal and others added 7 commits November 24, 2026 18:33
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)
@coderabbitai
coderabbitai Bot commented Nov 25, 2026
Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0