Repository navigation
[Backport staging-26.05] libssh2: apply debian patches for CVE-2026-6603[2345] - #550166
Merged
Merged
Conversation
Fixes: CVE-2026-66032, CVE-2026-66033, CVE-2026-66034, CVE-2026-66035 (cherry picked from commit 8a969be)
4 of 13 tasks
This was referenced Aug 7, 2026
c-vigo
added a commit
to vig-os/devkit
that referenced
this pull request
Aug 7, 2026
## Summary The 1.7.0-rc1 candidate run ([31200317431](https://github.com/vig-os/devkit/actions/runs/31200317431)) was blocked by the Vulnix CVE Gate on **CVE-2026-66032** (CVSS 8.8, double-free in libssh2 `sftp_open()`) — the fourth member of the libssh2 malicious-server batch whose siblings (CVE-2026-66033/66034/66035) are already excepted in the 2026-09-02 block (#1327). It was absent from the findings at the 2026-08-04 triage (published on NVD 2026-07-24, scored/ingested later). - `.vulnixignore`: add CVE-2026-66032 to the existing 2026-09-02 block with a dated triage note. Same closure provenance (libssh2 enters only as curl's scp/sftp backend) and reachability (authenticated SFTP session to a malicious server) as the siblings. - nixpkgs status re-checked online 2026-08-07: NixOS/nixpkgs#547491 (debian patches for CVE-2026-6603[2345]) merged to **master** 12:41Z, but the 26.05 backport NixOS/nixpkgs#550166 targets staging-26.05 and is still open — the patched derivation has not reached the pinned `nixos-26.05` channel, so exception is the only lever today. The whole block drops on the next effective rev-advance. - `CHANGELOG.md`: Security entry in the frozen `## [1.7.0]` section (+ managed mirror via sync-manifest). ## Testing Config/register change — no code path to test (`check-expirations` validates the register in pre-commit + CI). Full `just precommit` suite green locally. Proof of fix is the re-dispatched candidate's Vulnix CVE Gate. Refs: #1386
This was referenced Aug 10, 2026
12 of 22 tasks
c-vigo
added a commit
to vig-os/devkit
that referenced
this pull request
Aug 20, 2026
…1554) ## Description 29 of the 33 live security-exception entries expired on the same day, `2026-09-02`, across all three registers. On `2026-09-03` the whole register would have gone red at once: every open PR's CI, both nightly `security-scan` lanes and the release train. This spreads the renewals over distinct Wednesdays so no single stalled review can do that. This is a **re-date only**. No risk assessment was re-opened, no entry was added or removed, and no rationale text was rewritten — exactly the scope of the #1337 snap. ## Type of Change - [ ] `feat` -- New feature - [ ] `fix` -- Bug fix - [ ] `docs` -- Documentation only - [x] `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 ### Before / after | Register | Block (lever) | Entries | Before | After | Δ | |---|---|---:|---|---|---| | `.vulnixignore` | podman (release-26.05 backport, weekly re-check) | 1 | `2026-09-02` | **`2026-09-02`** | — | | `.vulnixignore` | unbound (1.25.2 reaching `nixos-26.05`) | 5 | `2026-09-02` | **`2026-09-09`** | +1 wk | | `.vulnixignore` | libssh2 6603x batch (staging-26.05 patch PR) | 4 | `2026-09-02` | **`2026-09-16`** | +2 wk | | `.vulnixignore` | libssh2 `CVE-2026-58050` (no upstream fix) | 1 | `2026-09-02` | **`2026-09-23`** | +3 wk | | `.vulnixignore` | zlib / sqlite / libmicrohttpd (low reachability) | 5 | `2026-09-02` | **`2026-09-30`** | +4 wk | | `.vulnixignore` | fzf (no 26.05 backport open) | 2 | `2026-09-02` | **`2026-10-07`** | +5 wk | | `.vulnixignore` | glibc (no rev-advance lever exists) | 6 | `2026-09-02` | **`2026-10-14`** | +6 wk | | `.trivyignore` | gh / Go stdlib `CVE-2026-42504` | 1 | `2026-09-02` | **`2026-10-21`** | +7 wk | | `.trivyignore` | jq `CVE-2026-32316`, `CVE-2026-40164` | 2 | `2026-09-02` | **`2026-10-28`** | +8 wk | | `.trivyignore` | `jwt-token` (secret-scan false positive) | 1 | `2026-09-02` | **`2026-11-04`** | +9 wk | | `.github/dependency-review-allow.txt` | `GHSA-wvrr-2x4r-394v` (false positive) | 1 | `2026-09-02` | **`2026-11-11`** | +10 wk | | `.vulnixignore` | Class-1 CPE mismatch (yearly cadence) | 4 | `2027-06-23` | `2027-06-23` | untouched | Every date is a genuine Wednesday (verified with `date -d`), every date is a week-multiple of the original `2026-09-02` — so no snapping was needed — and no Wednesday carries more than one block across the three registers. ### Why each block landed where it did The grid is ordered by **how soon the block's remediation lever can move**: the sooner a rev-advance could make the block droppable, the earlier its review, so the near-term passes are the ones that can actually delete entries rather than extend them. - **podman `2026-09-02` (kept, shortest).** Its own note asks for a weekly re-check and NixOS/nixpkgs#536367 can merge at any time. Keeping it anchors the grid at the earliest date instead of pushing everything out. Not a re-date, so it carries a short grid note rather than a re-dating note. - **unbound `2026-09-09` (+1 wk).** The staging-26.05 backport is already *merged*, so 1.25.2 can reach the pinned channel in any week's Renovate bump. The block's "short expiry to force near-term re-check" is preserved. - **libssh2 6603x `2026-09-16` (+2 wk).** NixOS/nixpkgs#550166 is open against staging-26.05; vulnix credits CVE-named `patches` entries, so the findings can drop out on a rev-advance at short notice. Still near-term as its note asks. - **libssh2 `CVE-2026-58050` `2026-09-23` (+3 wk).** Same package and lever as the batch above, so it sits one week later — adjacent review, no shared Wednesday. It has no upstream fix at all, so it is the less urgent of the two. - **zlib / sqlite / libmicrohttpd `2026-09-30` (+4 wk).** The note asks for a "medium-near expiry"; four weeks, mid-grid, keeps that intent. - **fzf `2026-10-07` (+5 wk).** Renewed only today (#1547) onto the shared date — the very cliff this PR breaks up. Both findings are availability-only on a 64-bit image and no 26.05 backport is open, so it takes a later slot than the blocks whose backport could land in any week's bump. - **glibc `2026-10-14` (+6 wk), longest vulnix window.** The 2026-08-13 renewal (#1481) already established that the "advance the rev" lever has nowhere to land — the advisories scope the defects through 2.43 — so an earlier re-review would have no new evidence to act on. The issue calls for the longest window here. - **`.trivyignore` `2026-10-21` / `2026-10-28` / `2026-11-04` (+7/8/9 wk).** Placed after the vulnix passes so the two registers do not compete for the same review week. Ordered by lever: gh needs a release rebuilt on Go 1.26.4 (no weekly bump can bring that forward), jq needs the Nix publish-cutover (#639) before `:latest` can be rebuilt at all, and `jwt-token` is not a vulnerability. - **`GHSA-wvrr-2x4r-394v` `2026-11-11` (+10 wk), latest slot.** A definitive false positive that can only change if the advisory is withdrawn or upstream bumps a `package.json` version field it has never touched — the same class as the Class-1 CPE-mismatch block, which already sits on a *yearly* cadence, so ten weeks is comfortably conservative by that precedent. ### `.trivyignore`: three blocks or one? The 4 entries sit under 3 `Expiration:` directives. They are kept as **three separate blocks with three separate dates**: they are independent exceptions with independent levers (a gh release rebuilt on Go 1.26.4; the Nix publish-cutover; a secret-scan false positive). Folding them into one pass would ask three unrelated questions in one review, and would put three blocks on one Wednesday — which is what this PR exists to stop. ### Notes and headers Each re-dated block carries a dated note in the register's own comment style (`# Re-dated 2026-08-20 (#1553): <old> -> <new>, <why>`), recording the move, the justification, and that it is scheduling only. The three register headers are **extended, not rewritten** — the 2026-08-04 snap paragraph stays verbatim and a `STAGGER (#1553)` paragraph follows it, so the historical record is intact and the file no longer contradicts itself. ## Changelog Entry ```markdown ### Changed - **Security-exception expiries are staggered across distinct Wednesdays** ([#1553](#1553)) - 29 of the 33 live exception entries expired on the same day, `2026-09-02`: 24 in `.vulnixignore` (7 blocks), 4 in `.trivyignore` (3 blocks) and the one `.github/dependency-review-allow.txt` entry. One stalled review on that date would have taken every open PR's CI, both nightly `security-scan` lanes and the release train red at once — the cliff that `docs/CONTAINER_SECURITY.md` already warns about ("stagger across weeks, not weekdays") - Each block now owns a distinct Wednesday, spread by week-multiples and ordered by how soon its remediation lever can move: podman keeps `2026-09-02` as the anchor (weekly re-check, backport open), then unbound `09-09`, the libssh2 6603x batch `09-16`, libssh2 `CVE-2026-58050` `09-23`, the lower-reachability batch `09-30`, fzf `10-07` and glibc `10-14` (no rev-advance lever exists, so it takes the longest window). The `.trivyignore` blocks follow at `10-21`/`10-28`/`11-04` and the dependency-review allow-list at `11-11`, keeping that register's review off the vulnix weeks - The Class-1 CPE-mismatch block keeps its yearly `2027-06-23` - Scheduling only: no risk assessment was re-opened and no entry was added or removed. Every re-dated block records the move and its justification in the register's own note style ``` ## Testing - [x] Tests pass locally (`just test`) -- full `prek run --all-files` suite green - [x] Manual testing performed (describe below) ### Manual Testing Details **Validator** ``` $ uv run check-expirations .trivyignore .vulnixignore .github/dependency-review-allow.txt Validated 33 exception(s) across 3 file(s) exit=0 ``` **Resulting distribution** (enumerated via `vig_utils.check_expirations.parse_entries`): ``` date weekday n file(s) -> identifiers 2026-09-02 Wednesday 1 .vulnixignore -> CVE-2026-57231 2026-09-09 Wednesday 5 .vulnixignore -> CVE-2026-50252 CVE-2026-32665 CVE-2026-40691 CVE-2026-44690 CVE-2026-55973 2026-09-16 Wednesday 4 .vulnixignore -> CVE-2026-66032 CVE-2026-66033 CVE-2026-66034 CVE-2026-66035 2026-09-23 Wednesday 1 .vulnixignore -> CVE-2026-58050 2026-09-30 Wednesday 5 .vulnixignore -> CVE-2026-27820 CVE-2026-11822 CVE-2026-11824 CVE-2025-59777 CVE-2025-62689 2026-10-07 Wednesday 2 .vulnixignore -> CVE-2026-53432 CVE-2026-53433 2026-10-14 Wednesday 6 .vulnixignore -> CVE-2025-15281 CVE-2026-4046 CVE-2026-4437 CVE-2026-5435 CVE-2026-5450 CVE-2026-5928 2026-10-21 Wednesday 1 .trivyignore -> CVE-2026-42504 2026-10-28 Wednesday 2 .trivyignore -> CVE-2026-32316 CVE-2026-40164 2026-11-04 Wednesday 1 .trivyignore -> jwt-token 2026-11-11 Wednesday 1 .github/dependency-review-allow.txt -> GHSA-wvrr-2x4r-394v 2027-06-23 Wednesday 4 .vulnixignore -> CVE-2021-28794 CVE-2022-30947 CVE-2022-36882 CVE-2022-36883 total entries: 33 | distinct dates: 12 non-Wednesday or shared-across-files dates: NONE ``` 12 distinct dates, 12 blocks, one block per date. The `2027-06-23` Class-1 block is untouched and collides with nothing. **TDD skipped, deliberately.** This is a data/config change with no code path to exercise; there is nothing to write a failing test against. The format and expiry semantics are already covered by `check-expirations`, which runs in pre-commit and in all PR CI and passes against all 33 entries. Forcing a unit test here would pin the dates themselves, which are meant to move. ## 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 - [x] I have updated the documentation accordingly (edit `docs/templates/`, then run `just docs`) -- N/A, no documentation change (explicit non-goal; the staggering rule is already documented) - [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and pasted the entry above) - [x] My changes generate no new warnings or errors - [x] I have added tests that prove my fix is effective or that my feature works -- N/A, see TDD note above - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published ## Additional Notes **Deliberately out of scope** (per the issue's non-goals): - No risk assessment re-opened, no entry added or removed, no rationale text rewritten. - No documentation change -- `docs/CONTAINER_SECURITY.md` already documents the grid and the stagger rule; this PR brings the register into line with it. - No tooling change -- advance warning for an upcoming expiry cliff is tracked separately. - The `2027-06-23` Class-1 block is untouched. **Parallel work.** #1552 is in flight at the same time and touches tooling only (`check_expirations.py` and its tests, `security-scan.yml`, `docs/CONTAINER_SECURITY.md`) -- none of which this PR touches. A `CHANGELOG.md` conflict is the only expected overlap. Refs: #1553
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.
Bot-based backport to
staging-26.05, triggered by a label in #547491.Before merging, ensure that this backport is acceptable for the release.
Even as a non-committer, if you find that it is not acceptable, leave a comment.
Tip
If you maintain all packages touched by this pull request, and they are all located under
pkgs/by-name/*, you can comment@NixOS/nixpkgs-merge-bot mergeto automatically merge this PR using thenixpkgs-merge-bot.