Repository navigation
[26.05] rsync: 3.4.4 -> 3.5.0 - #557467
Merged
Merged
Conversation
When cross-compiling (e.g. pkgsStatic), configure cannot run the link()-hardlinks-symlinks probe and defaults to no. On Linux that leaves hardlink_symlinks false while --copy-dest/--link-dest still itemize identical symlinks with blank attribute flags, so testsuite/itemize.test fails. Set rsync_cv_can_hardlink_symlink=yes for Linux cross builds. Resolves: NixOS#537437 Assisted-by: Grok (xAI) (cherry picked from commit c1f215a) Co-authored-by: lucasew <[email protected]> Assisted-by: pi coding agent / Mika (OpenAI gpt-5.6-sol)
https://download.samba.org/pub/rsync/NEWS#3.5.0 Fixes 33 security issues in path handling and the daemon protocol. Assisted-by: pi coding agent / Mika (OpenAI gpt-5.6-sol) (cherry picked from commit 1d337c3)
Assisted-by: pi coding agent / Mika (OpenAI gpt-5.6-sol) (cherry picked from commit a1c9796)
nixpkgs-ci
Bot
requested review from
a team and
leona-ya
and removed request for
a team
August 28, 2026 18:38
Merged
via the queue into
NixOS:staging-next-26.05
with commit Aug 29, 2026
9b9ebee
86 of 87 checks passed
c-vigo
added a commit
to vig-os/devkit
that referenced
this pull request
Sep 1, 2026
…gister The nightly scan of 2026-09-01 (run 33493764209) went red on BOTH refs with a single package: rsync 3.4.4, a direct member of the image env. The NVD feed published 17 new rsync CVEs overnight; 8 score >= 7.0 and are excepted here, the other 9 fall under the gate's 7.0 threshold. Diagnosed as a FEED event, not a closure change, before writing any entry: the previous night's scan (run 33386509290, 2026-08-31) was green on the same pin, and the findings diff across the two runs is 17 added, 0 removed, no other package touched. No exception had expired either -- the next grid date is 2026-09-30 -- so nothing in this repo caused it. The "advance the rev" lever has nowhere to land today. All 17 are fixed in rsync 3.5.0, whose 26.05 backport (NixOS/nixpkgs#557467) merged into staging-next-26.05 on 2026-08-29, one hop short of release-26.05. As of this triage staging-26.05 and staging-next-26.05 ship 3.5.0 while release-26.05 and the pinned nixos-26.05 still ship 3.4.4, so rebuilding on any rev reachable today reproduces these findings unchanged. The reachability rationale is unusually strong for this register, which is why a three-week window is defensible rather than merely convenient: six of the eight are rsyncd DAEMON-mode defects, and CVE-2026-53803 scopes its own impact to setuid or privileged-daemon installs. This image ships rsync as an interactive CLI for a single user and never starts a daemon. Only CVE-2026-70455 (receiver DoS driven by a malicious sender) and CVE-2026-53795 (--temp-dir/--link-dest escaping the destination tree) touch the real usage model, and each still requires the user to point rsync at a hostile peer. Expiration 2026-09-23 takes its own Wednesday per the #1553 stagger, placed early in the grid because this block's remediation lever moves soonest of any entry: one staging-next -> release-26.05 -> nixos-26.05 hop that the weekly update-nixpkgs.yml advance then picks up by itself. This block should die on remediation rather than be renewed; if 3.5.0 has not reached the pinned channel by the expiry, the gate goes red and forces a re-review with fresh evidence. Verified against both refs' findings artifacts from the failing run: unexcepted HIGH/CRITICAL drops from 8 to 0 on main and on dev. Refs: #1592, #1593
Merged
10 of 13 tasks
c-vigo
added a commit
to vig-os/devkit
that referenced
this pull request
Sep 1, 2026
…gister (#1594) ## Description The nightly scan of 2026-09-01 ([run 33493764209](https://github.com/vig-os/devkit/actions/runs/33493764209)) went red on **both** refs, opening #1592 (main) and #1593 (dev). They are the same incident: one package, `rsync-3.4.4`, a direct member of the image env (`flake.nix`). The NVD feed published **17 new rsync CVEs** overnight. Eight score >= 7.0 and are excepted by this PR; the other nine fall under the gate's 7.0 threshold and need no entry. Full diagnosis: [#1592 comment](#1592 (comment)). ## Type of Change - [x] `fix` -- Bug fix ### Modifiers - [ ] Breaking change (`!`) ## Changes Made A single time-boxed block appended to `.vulnixignore`, expiring **2026-09-23**, plus the mirrored changelog entries. **This is a feed event, not a closure change** — established before writing any entry. The previous night's scan ([run 33386509290](https://github.com/vig-os/devkit/actions/runs/33386509290), 2026-08-31) was green on the same pin, and the findings diff across the two runs is 17 added / 0 removed / no other package touched. No exception had expired either (next grid date is 2026-09-30), so nothing in this repo caused it. **The rev-advance lever has nowhere to land today.** All 17 are fixed in rsync 3.5.0: | Branch | rsync | |---|---| | `staging-26.05` | **3.5.0** (2026-08-28) | | `staging-next-26.05` | **3.5.0** (backport [NixOS/nixpkgs#557467](NixOS/nixpkgs#557467), merged 2026-08-29) | | `release-26.05` | 3.4.4 | | **`nixos-26.05`** (pinned) | **3.4.4** | Rebuilding on any rev reachable today reproduces these findings unchanged. **Reachability** — unusually strong for this register, and the reason a three-week window is defensible rather than merely convenient. Six of the eight are `rsyncd` **daemon-mode** defects (53791, 70461, 70463, 53802, 53784), and CVE-2026-53803 scopes its own impact to setuid or privileged-daemon installs. This image ships rsync as an interactive CLI for a single user and never starts a daemon. Only CVE-2026-70455 (receiver-side thread exhaustion driven by a malicious *sender*) and CVE-2026-53795 (`--temp-dir`/`--link-dest` escaping the destination tree, both caller-supplied) touch the real usage model, and each still requires the user to point rsync at a hostile peer. **Expiry placement** — `2026-09-23` takes its own Wednesday per the #1553 stagger, placed *early* in the grid (ahead of lower-reachability 09-30) because this block's lever moves soonest of any entry: one `staging-next` → `release-26.05` → `nixos-26.05` hop that the weekly `update-nixpkgs.yml` advance then picks up by itself. This block is expected to **die on remediation rather than be renewed**; if 3.5.0 has not reached the pinned channel by the expiry, the gate goes red and forces a re-review with fresh evidence. ## Changelog Entry ``` ### Security - **Except the rsync 3.5.0 advisory batch in the vulnix register** ([#1592](#1592), [#1593](#1593)) - The NVD feed published 17 new CVEs against `rsync-3.4.4` overnight, taking both nightly scan lanes and the release train's `vulnix-gate` red; 8 score >= 7.0 and are now excepted, the other 9 fall below the gate's threshold - A feed event, not a closure change: the previous night's scan was green on the same pin and the findings diff is 17 added / 0 removed / no other package touched, so no exception had expired and nothing in this repo caused it - Advancing the pin cannot clear them today — all 17 are fixed in rsync 3.5.0, whose 26.05 backport reached `staging-next-26.05` on 2026-08-29 but not yet `release-26.05` or the pinned `nixos-26.05` - Expires `2026-09-23`, its own early slot on the staggered grid because this block's lever moves soonest: it should die on the pin advance that ships 3.5.0 rather than be renewed. Six of the eight defects are `rsyncd` daemon-only and this image never starts a daemon; the remaining two need the user to point rsync at a hostile peer ``` ## Testing - [x] Tests pass locally (`just precommit` — full suite, all green) - [x] Manual testing performed (described below) ### Manual Testing Details Replayed the gate's own logic against **both refs' findings artifacts from the failing run**, before and after the change: | Ref | Unexcepted HIGH/CRITICAL before | After | |---|---|---| | `main` | 8 | **0** | | `dev` | 8 | **0** | `uv run check-expirations .vulnixignore` → `Validated 22 exception(s) across 1 file(s)`, exit 0. `just precommit` run in full locally and read green (including `pymarkdown`, `check-unreleased-typos`, `check-expirations`) before pushing. ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly — n/a, no doc-template change; the register block carries its own rationale per `docs/CONTAINER_SECURITY.md` - [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and pasted the entry above) - [x] My changes generate no new warnings or errors - [ ] I have added tests that prove my fix is effective — n/a, an exception-register data change; verification is the artifact replay above - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published ## Additional Notes Blast radius while this is open: PR CI is **not** blocked (`ci.yml:425-441` runs only `check-expirations`, not the gate), but `release.yml:884` carries a blocking `vulnix-gate` job, so the release train stays red until this merges. Both nightly lanes will keep re-opening these issues each morning. Close #1592 and #1593 on the first green nightly after merge, per the scan issue's own instruction — not on merge of this PR. Refs: #1592, #1593
Merged
10 of 22 tasks
c-vigo
added a commit
to vig-os/devkit
that referenced
this pull request
Sep 7, 2026
…diation (#1611) ## Description Reconciles both CVE exception registers against remediation that has already landed. Nothing is renewed or re-dated here: every entry removed is one that no longer matches a finding, and every entry kept was re-verified against a live scan. - **`.vulnixignore`** — the 8-entry rsync block (`Expiration: 2026-09-23`) is deleted 16 days before its expiry. The weekly pin advance `c5c4a43b` → `c25784012c` (#1609) ships **rsync 3.5.0**, past all 17 advisories of the 2026-09-01 batch. - **`.trivyignore`** — the three surviving blocks (`CVE-2026-42504`, `jwt-token`, `CVE-2026-32316`/`CVE-2026-40164`) are retired. All three were written against the Debian `:latest` image, whose Trivy job left with the Debian path (#642); the Nix image inherited the file but none of the findings. Both files keep tombstones in place of the deleted entries, per the register convention, so the history of why an exception existed and how it died stays in the file. ## Type of Change - [ ] `feat` -- New feature - [x] `fix` -- Bug fix - [ ] `docs` -- Documentation only - [ ] `chore` -- Maintenance task (deps, config, etc.) - [ ] `refactor` -- Code restructuring (no behavior change) - [ ] `test` -- Adding or updating tests - [ ] `ci` -- CI/CD pipeline changes - [ ] `build` -- Build system or dependency changes - [ ] `revert` -- Reverts a previous commit - [ ] `style` -- Code style (formatting, whitespace) ### Modifiers - [ ] Breaking change (`!`) -- This change breaks backward compatibility ## Changes Made ### `.vulnixignore`: the rsync block dies on remediation The block was placed **earliest** on the staggered grid precisely because its remediation lever moved soonest: the fix needed one `staging-next-26.05` → `release-26.05` → `nixos-26.05` hop (NixOS/nixpkgs#557467), which the weekly `update-nixpkgs.yml` advance then picks up on its own. That is exactly what happened, one grid period early. Evidence — the first nightly scan on the new closure (run `34108767776`, dev lane, checkout `1867537d` = the merge of #1609): | | `dev` (new pin) | `main` (old pin) | |---|---|---| | rsync | **absent** | `rsync-3.4.4`, 17 CVEs | | glibc | `2.42-84` | `2.42-67` + `2.42-84` | | delta | **17 removed, 0 added** | — | `rsync` is still a direct member of the image env (`flake.nix`), so this is remediation, not a closure change; the locally built closure on this branch contains `rsync-3.5.0`. The other **14 entries were re-checked in the same pass and every one still matches a live finding** — glibc ×6 (10-14), zlib/sqlite/libmicrohttpd ×5 (09-30), fzf ×2 (10-07), shellcheck CPE mismatch (2027-06-23). None is renewed or re-dated; the remaining grid is unchanged. `main` still ships rsync 3.4.4 and keeps the block until the next release train carries the pin and the register over together, so this opens no gap there. ### `.trivyignore`: retired to an empty register Each entry had its own reason to be gone, and none of the three could ever have fired against the Nix image: - **`CVE-2026-42504`** (#512, #564) — Go stdlib MIME header DoS, matched via the `gh` binary Debian shipped on Go 1.26.3. Every gobinary in the Nix image reports **stdlib v1.26.7**, past the 1.26.4 rebuild the block was waiting for. - **`jwt-token`** (#512) — secret-scan false positive on a JWT-like string in typos crate test fixtures under `/opt/pre-commit-cache`. The Nix image has no such path (prek caches at `/opt/prek-cache`) and ships typos as a prebuilt binary, not its source fixtures. - **`CVE-2026-32316` / `CVE-2026-40164`** (#805, #512) — jq DoS/RCE scoped to Debian `jq`/`libjq1` 1.6-2.1+deb12u1. The image has no dpkg DB for Trivy's OS scanner and ships jq 1.8.2. The block's own escape condition was "time-box the ignore until the Nix image ships" — it has. The file itself is kept, not deleted: it stays the seam for genuine Nix-image Trivy findings and secret false positives (`docs/CONTAINER_SECURITY.md`). With no entries, `check-expirations` has nothing to expire. ## Changelog Entry ```markdown ### Security - **Exception register reconciled against the 2026-09-07 pin advance — the rsync block deleted, nothing renewed** ([#1592](#1592), [#1593](#1593)) - The weekly pin advance `c5c4a43b` → `c25784012c` ([#1609](#1609)) ships rsync 3.5.0, so every one of the 17 advisories from the 2026-09-01 batch — the 8 excepted in `.vulnixignore` and the 9 below the gate's CVSS 7.0 threshold — is gone from the image closure. The block is deleted (tombstoned) 16 days before its 2026-09-23 expiry: the "dies on remediation" exit its own note asked for, and the reason it was placed earliest on the staggered grid - Verified against the first scan on the new closure (run 34108767776, dev lane): 17 findings removed, 0 added, no other package touched. The remaining 14 entries each still match a live finding and stand unchanged on their staggered Wednesdays — none renewed, none re-dated - **`.trivyignore` retired to an empty register — the last three Debian-era exceptions removed** ([#512](#512), [#564](#564), [#805](#805)) - All three surviving blocks — the `gh` Go-stdlib `CVE-2026-42504`, the `jwt-token` secret-scan false positive and the Debian jq pair `CVE-2026-32316`/`CVE-2026-40164` — were written against the Debian `:latest` image, whose Trivy job left with the Debian path ([#642](#642)). The Nix image inherited the file but none of the findings - Confirmed by scanning the current image with **no ignore file** (trivy 0.72.0, `vuln,secret`, HIGH/CRITICAL/MEDIUM, closure built from the `c25784012c` pin): 63 unique vulnerabilities, zero secret findings, none of the three excepted IDs among them. The Nix image's Go binaries are built on stdlib 1.26.7 (past the 1.26.4 the block awaited), it ships jq 1.8.2 with no dpkg DB to match Debian's 1.6, and it has no `/opt/pre-commit-cache` - The file itself stays as the seam for genuine Nix-image Trivy findings and secret false positives; with no entries there is nothing left to expire ``` ## Testing - [x] Tests pass locally (`just test`) — see the note on two unrelated local failures below - [x] Manual testing performed (describe below) ### Manual Testing Details Registers are config, so the verification is the scan evidence itself: 1. **vulnix gate, edited register vs the new closure's findings** — `gh run download 34108767776 -n nix-image-cve-scan-dev`, then `uv run vulnix-gate vulnix-findings.json --register .vulnixignore` → `No unexcepted HIGH/CRITICAL findings (CVSS >= 7.0); 14 exception(s) applied`. 2. **Register-vs-findings reconciliation** — every one of the 14 surviving entries matches a live finding in that artifact; the 8 removed ones match none. 3. **Trivy, with no ignore file** — `nix build .#devkitImage` on this branch, then `trivy image --input result --scanners vuln,secret --severity HIGH,CRITICAL,MEDIUM` (trivy 0.72.0 from the pinned nixpkgs; CI runs 0.74.0): 63 unique vulnerabilities, **0 secret findings**, and none of `CVE-2026-42504`, `CVE-2026-32316`, `CVE-2026-40164` present. The secret scanner is confirmed enabled in that run's log. 4. `uv run check-expirations .trivyignore .vulnixignore` → green; `prek run --all-files` → green. 5. `just test` → **1169 passed, 3 skipped, 2 failed**. Both failures are local environment artefacts, not this diff, which touches only the two registers and the changelog pair: - `test_image.py::TestFileStructure::test_manifest_files` — checksum mismatch on `/root/assets/workspace/.pymarkdown` between the working tree and the locally cached image, which predates `8e7c4916` (the pymarkdown fixer change on `dev`). CI builds the image from the branch and does not see it. - `test_integration.py::TestDevContainerCLI::test_github_cli_authentication` — needs a host `gh` token forwarded into the devcontainer. ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly (edit `docs/templates/`, then run `just docs`) - [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and pasted the entry above) - [x] My changes generate no new warnings or errors - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published Docs need no edit: `docs/CONTAINER_SECURITY.md` describes the registers' mechanics and conventions, not their contents, and both survive this change unchanged. No tests are added for the same reason — the registers are data consumed by `check-expirations`/`vulnix-gate`, both already covered. ## Additional Notes Follow-up this enables: `#1592`/`#1593` were closed when the exception landed; the underlying finding is now gone from `dev` for real, and will be gone from `main` once the next release train carries the pin over. Refs: #1592, #1593, #512, #564, #805, #642, #1609
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.
Backports rsync 3.5.0 to NixOS 26.05. This release fixes 33 public CVEs tracked in #553017 and #553018. Five of these CVEs are rated Critical by their CNAs.
Upstream changelog: https://download.samba.org/pub/rsync/NEWS#3.5.0
Backports https://redirect.github.com/NixOS/nixpkgs/pull/552582 and its Darwin build fix https://redirect.github.com/NixOS/nixpkgs/pull/555976.
Addresses #553017 and #553018.
Assisted-by: pi coding agent / Mika (OpenAI gpt-5.6-sol)
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.