Skip to content

fix(security): except the second unbound 1.26.1 CVE batch in the vulnix register - #1675

Closed
c-vigo wants to merge 3 commits into
mainfrom
bugfix/1668-unbound-1261-cve-batch
Closed

c-vigo wants to merge 3 commits into
mainfrom
bugfix/1668-unbound-1261-cve-batch

Conversation

@c-vigo

@c-vigo c-vigo commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Description

The 2026-09-24 nightly (run 35982816399) went red on both refs again, on the same package as the day before: unbound 1.26.0. Two CVEs the 2026-09-23 exception did not yet carry — CVE-2026-82717 (9.8) and CVE-2026-81634 (7.5).

This is a second feed event on the same upstream release, not a closure change and not new upstream work. All three unbound CVEs — the -81642 excepted yesterday plus these two — were published 2026-09-16 and are fixed by the same 1.26.1 release. They arrived a day apart because vulnix matches on CPE and NVD's analysis lagged: both additions were given cpe:2.3:a:nlnetlabs:unbound with versionEndExcluding 1.26.1 at lastModified 2026-09-23T19:50Z/19:51Z — after that morning's 09:43Z scan and before this one's 09:42Z.

So yesterday's triage was not incomplete: it excepted every member of the batch that existed as a CPE match at the time.

Type of Change

  • fix -- Bug fix

Modifiers

  • Breaking change (!)

Changes Made

Both CVEs are added to the existing 2026-11-04 block, not a new one, with a dated AMENDED 2026-09-24 addendum in the register's established append-only style (the prior risk assessment is corrected in place by the addendum, never rewritten).

Why one block: all three share a single death condition — the pin advance that ships unbound 1.26.1 — so they must be deleted together, not renewed.

Why the date is unchanged: the remediation lever actually shortened since yesterday. The staging-26.05 backport (NixOS/nixpkgs#565869) has since merged, so staging-26.05 and staging both carry 1.26.1; nixos-26.05 (the pinned channel) and master still ship 1.26.0. That leaves the fix one staging → nixos-26.05 cycle away rather than two branch hops. A shorter lever is a reason to expect this block dies early — not a reason to re-date it off its own Wednesday in the stagger grid.

Reachability is unchanged and covers both additions. Each is a resolver path — -81634 overflows the heap during RRSet canonicalisation of a large TCP response, -82717 corrupts it via CNAME synthesis rewriting a max TTL in the packet buffer. This closure still carries libunbound only (via podman -> gpgme -> gnupg -> gnutls, with libgnutls-dane.so its sole consumer), no daemon and no unbound binary. The pin has not moved since that provenance was verified against the built closure on 2026-09-23.

Re-confirmed as a feed event on the same evidence shape as the first: flake.lock unchanged since the 2026-09-21 pin advance (#1662) and byte-identical on both refs, this register byte-identical on both refs, the 09-21 and 09-22 scans green against these same closures, nearest grid date 2026-10-07 so nothing expired.

Changelog Entry

### Security

- **Except the second unbound 1.26.1 CVE batch in the vulnix register**
  ([#1668](https://github.com/vig-os/devkit/issues/1668),
  [#1669](https://github.com/vig-os/devkit/issues/1669))
  - The 2026-09-24 nightly went red on both lanes on the same package as the
    day before, with two CVEs the 2026-09-23 exception did not carry:
    `CVE-2026-82717` (9.8) and `CVE-2026-81634` (7.5)
  - Not new upstream work and not a closure change: all three unbound CVEs
    were published 2026-09-16 and are fixed by the same 1.26.1 release. They
    arrived a day apart because vulnix matches on CPE and NVD analysed the
    two additions at `2026-09-23T19:50Z`/`19:51Z` — after that day's scan ran
  - Both are resolver paths (RRSet canonicalisation; CNAME synthesis on an
    upstream response), so the existing reachability finding covers them
    unchanged: the closure carries `libunbound` only, with no daemon and no
    `unbound` binary
  - Added to the existing `2026-11-04` block rather than a new one — all three
    share one death condition, the pin advance that ships unbound 1.26.1, and
    must be deleted together. The date is deliberately unchanged
  - The remediation lever shortened in the meantime: the `staging-26.05`
    backport has merged, leaving the fix one `staging` -> `nixos-26.05` cycle
    from the pinned channel rather than two branch hops

Testing

  • Tests pass locally — full hook suite green (just precommit, exit 0)
  • Manual testing performed (below)

Manual Testing Details

No test accompanies this change: the register is scan-time configuration with no code path of its own.

Verified instead by replaying the failing run's own findings artifacts through the gate, which reproduces CI exactly:

# BEFORE — register as on origin/dev
uv run vulnix-gate art/main/vulnix-findings.json --register <origin/dev copy>
  ::error::2 unexcepted HIGH/CRITICAL ... CVE-2026-82717 (9.8), CVE-2026-81634 (7.5)
  exit=1                                              # identical for dev

# AFTER — amended register
uv run vulnix-gate art/main/vulnix-findings.json --register .vulnixignore
  No unexcepted HIGH/CRITICAL findings (CVSS >= 7.0); 17 exception(s) applied
  exit=0                                              # identical for dev

2 unexcepted → 0 on both main and dev; exit 1 → exit 0.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly — n/a, no doc surface changes
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective — n/a, see Manual Testing
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

Release routing. The hotfix lane was considered and rejected: docs/RELEASE_CYCLE.md reserves it for when main needs an urgent fix and dev carries work that is not ready to ship, and prescribes an expedited regular train when dev ≈ main. dev is currently ahead of main by two commits, both pure issue/PR sync docs — the textbook dev ≈ main case. Cutting a hotfix here would also manufacture the CHANGELOG.md sync-back conflict the regular train avoids by construction, with no speed gain (hotfixes ride the full RC → smoke → promote gate).

Suggested follow-up once this merges: an expedited 1.16.1 train to carry it to main, since release.yml runs the same vulnix gate and the red register currently blocks any release path.

#1668 and #1669 stay open until the confirming scheduled run is green on both refs.

Refs: #1668, #1669

vig-os-release-app Bot and others added 3 commits September 23, 2026 15:32
Syncs `dev` with `main` (sync-main-to-dev workflow).
…ix register

The nightly scan of 2026-09-24 (run 35982816399) went red on BOTH refs
again, on the same package as the day before: unbound 1.26.0. Two CVEs
this block did not yet carry -- CVE-2026-82717 (9.8) and CVE-2026-81634
(7.5).

Diagnosed as a SECOND feed event on the SAME upstream release, not a
closure change and not new upstream work. All three unbound CVEs -- the
-81642 excepted on 2026-09-23 plus these two -- were published
2026-09-16 and are fixed by the same 1.26.1 release. They arrived a day
apart because vulnix matches on CPE and NVD's analysis lagged:
CVE-2026-82717 and CVE-2026-81634 were given
cpe:2.3:a:nlnetlabs:unbound with versionEndExcluding 1.26.1 at
lastModified 2026-09-23T19:50Z and 19:51Z, after that morning's 09:43Z
scan and before this one's 09:42Z. The 2026-09-23 triage was therefore
not incomplete; it excepted every member of the batch that existed as a
CPE match at the time.

Re-confirmed on the same evidence shape as the first event: flake.lock
unchanged since the 2026-09-21 pin advance (#1662) and byte-identical on
both refs, this register byte-identical on both refs, the 09-21 and
09-22 scans green against these same closures, and the nearest grid date
2026-10-07 so nothing expired.

Reachability is unchanged and covers both additions. Each is a RESOLVER
path -- CVE-2026-81634 overflows the heap during RRSet canonicalisation
of a large TCP response, CVE-2026-82717 corrupts it through CNAME
synthesis rewriting a max TTL in the packet buffer -- and this closure
still carries libunbound only, via podman -> gpgme -> gnupg -> gnutls,
with libgnutls-dane.so its sole consumer, no daemon and no unbound
binary. The pin has not moved since that provenance was verified.

Added to the existing 2026-11-04 block rather than a new one: all three
share one death condition, the advance that ships unbound 1.26.1, so
they must be DELETED together. The date is deliberately unchanged even
though the lever shortened -- the staging-26.05 backport
(NixOS/nixpkgs#565869) has since MERGED, leaving the fix one
staging->nixos-26.05 cycle from the pinned channel rather than two
branch hops. A shorter lever is a reason to expect the block dies early,
not a reason to re-date it off its own Wednesday in the stagger grid.

No test accompanies this: the register is scan-time configuration with
no code path of its own. Verified instead by replaying the failing run's
own findings artifacts through vulnix-gate -- 2 unexcepted
HIGH/CRITICAL to 0 on both main and dev, exit 1 to exit 0, 17
exceptions applied.

Refs: #1668, #1669
c-vigo added a commit that referenced this pull request Sep 24, 2026
Phase 3 widened gate 1 to admit CHANGELOG.md and taught gate 2 to
normalize it away before comparing derivations -- but left gate 3
refusing `assets/` wholesale. The changelog is mirrored to
assets/workspace/.devcontainer/CHANGELOG.md, so gate 3 would have
rejected every changelog-carrying PR regardless, silently undoing the
entire phase.

Caught while classifying the open PRs for retargeting: #1675 and #1678
both touch exactly one path under assets/, and it is that mirror.

Gate 3 now excludes the mirror via a pathspec and says why. The
exclusion is narrow and safe: the mirror is regenerated from CHANGELOG.md
by the sync-manifest hook, never independently authored, so it carries no
information gate 1 has not already admitted -- and gate 2 still compares
the real derivations either side of it.

This is the first defect found in the widened lane, and it is one only
running the gates would have surfaced: every shape test passed, because
the tests asserted what each gate said about itself rather than whether
the gates agreed with each other. The accompanying test pins the
agreement rather than the wording.

Refs: #1676
@c-vigo
c-vigo changed the base branch from dev to main September 24, 2026 19:53
@c-vigo c-vigo linked an issue Sep 24, 2026 that may be closed by this pull request
@c-vigo

c-vigo commented Sep 24, 2026

Copy link
Copy Markdown
Contributor Author

Closing in favour of an App-authored PR opened by the new release-neutral lane (#1676), which merged to main as #1678.

Two reasons, not just ceremony:

  1. This PR is unapprovable. It was authored by c-vigo, main requires one approving review, and GitHub forbids authors approving their own PRs — so merging it would have needed an --admin bypass. A PR opened by release-neutral-open.yml is authored by the release App, which makes the maintainer's approval legal and the merge ordinary.
  2. It is the lane's first real exercise. The branch is a register-only amendment, so the guard will run gates 1/2/3/5/6 and the content-triggered extra that replays main's own nightly vulnix gate against main's closure with the proposed register — exactly the check that makes a stranding deletion unmergeable.

The branch bugfix/1668-unbound-1261-cve-batch and its commit b1303137 are unchanged; nothing is lost. Tracking issues #1668 / #1669 stay open until a scheduled run confirms both refs green.

@c-vigo c-vigo closed this Sep 24, 2026
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.

Nightly security scan (dev): unexcepted HIGH/CRITICAL vulnix findings

1 participant