Skip to content

[Backport staging-26.05] libssh2: apply debian patches for CVE-2026-6603[2345] - #550166

Merged
vcunat merged 1 commit into
staging-26.05from
backport-547491-to-staging-26.05
Aug 12, 2026
Merged

vcunat merged 1 commit into
staging-26.05from
backport-547491-to-staging-26.05

Conversation

@nixpkgs-ci

@nixpkgs-ci nixpkgs-ci Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

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 merge to automatically merge this PR using the nixpkgs-merge-bot.

@nixpkgs-ci nixpkgs-ci Bot added the 1.severity: security Issues which raise a security issue, or PRs that fix one label Aug 7, 2026
@nixpkgs-ci
nixpkgs-ci Bot requested a review from whispersofthedawn August 7, 2026 12:42
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 4.workflow: backport This targets a stable branch labels 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
@vcunat
vcunat added this pull request to the merge queue Aug 12, 2026
Merged via the queue into staging-26.05 with commit 02fda3a Aug 12, 2026
33 of 35 checks passed
@vcunat
vcunat deleted the backport-547491-to-staging-26.05 branch August 12, 2026 06:53
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.severity: security Issues which raise a security issue, or PRs that fix one 4.workflow: backport This targets a stable branch 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants