Skip to content

build(nix): advance pinned nixpkgs rev (weekly refresh) - #1662

Merged
c-vigo merged 1 commit into
devfrom
chore/update-nixpkgs
Sep 21, 2026
Merged

c-vigo merged 1 commit into
devfrom
chore/update-nixpkgs

Conversation

@vig-os-release-app

Copy link
Copy Markdown
Contributor

Scheduled advance of the pinned stable nixpkgs rev - the primary CVE-remediation lever (docs/CONTAINER_SECURITY.md). Full CI on this PR, including the closure rebuild, is the merge gate.

After merge, the first nightly security scan produces the findings delta against the new closure; reconcile the exception registers against that delta (delete cleared entries) rather than re-dating them.

Refs: #1565

@c-vigo
c-vigo merged commit 5279e2a into dev Sep 21, 2026
14 checks passed
@c-vigo
c-vigo deleted the chore/update-nixpkgs branch September 21, 2026 11:03
c-vigo added a commit that referenced this pull request Sep 23, 2026
…lnix register

The nightly scan of 2026-09-23 (run 35844608653) went red on BOTH refs
with a single package: unbound 1.26.0. The NVD feed published
CVE-2026-81642 (9.8 CRITICAL) overnight -- a DNSKEY whose owner name is a
compression pointer into its own RDATA overflows the digest buffer in the
DNSSEC validator, giving DoS and possibly RCE.

Diagnosed as a FEED event, not a closure change, before writing the
entry: the previous night's scan (run 35711419780, 2026-09-22) was green
on BOTH lanes against the same closures -- the 2026-09-21 pin advance
(#1662) had already merged and been scanned green -- and the findings
delta across the two runs is 1 added, 0 removed, exactly one package on
each ref. 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. nixos-26.05,
staging-26.05 and master ALL still ship 1.26.0 with no CVE-named patch.
Upstream fixed it in 1.26.1 (2026-09-16); the nixpkgs bump
(NixOS/nixpkgs#564725) merged to staging on 2026-09-22 and the
staging-26.05 backport (NixOS/nixpkgs#565869) opened the same day and is
still open, so the fix is two branch hops from the pinned channel.

Provenance was RE-VERIFIED against the built closure rather than carried
over from the 2026-07-26 unbound block's note, because that claim is what
justifies accepting a 9.8. `nix why-depends` on the runtime closure of
.#devkitImageEnv gives podman 5.8.6 -> gpgme 2.0.1 -> gnupg 2.4.9 ->
gnutls 3.8.13 -> unbound-1.26.0-lib; `nix path-info -r` reports the lib
output and nothing else; the env exposes no unbound executable; and
libgnutls-dane.so is the only gnutls library referencing libunbound. The
advisory's vector is a resolver digesting DNSKEYs from an
attacker-controlled zone, and this image ships no resolver at all.

Expires 2026-11-04, six weeks out and on its own Wednesday, so a stalled
review of one block cannot carry another. It should die on the advance
that ships unbound 1.26.1 rather than be renewed.

Verified against both refs' findings artifacts from the failing run:
vulnix-gate goes from 1 unexcepted HIGH/CRITICAL to 0 on dev and on main,
33 exceptions applied.

Refs: #1668, #1669
c-vigo added a commit that referenced this pull request Sep 23, 2026
… advance

The weekly pin advance 21a67dc4 -> 6d663c05 (#1662, merged to dev
2026-09-21) ships curl 8.22.0, openssl 3.6.4, libxml2 2.15.4 and pcre2
10.48, so all three blocks that were waiting on it are now dead weight on
dev: the 16-entry curl + openssl batch (#1614/#1615), the libxml2 entry
CVE-2026-86140 (#1636/#1637) and the pcre2 entry CVE-2026-89161
(#1645/#1637).

All three named the SAME exit condition and shared one lever. curl
8.22.0, openssl 3.6.4, libxml2 2.15.4 and pcre2 10.48 all rode the
staging-next-26.05 iteration-7 PR (NixOS/nixpkgs#563094), which merged to
release-26.05 on 2026-09-19; Monday's advance carried it into the pinned
nixos-26.05. That is exactly the one branch hop plus one weekly advance
the 2026-09-16 re-date predicted, so the blocks die on remediation rather
than being renewed -- four to six weeks before their 2026-10-21,
2026-10-28 and 2026-11-04 expiries.

Reconciled against the 2026-09-23 scan (run 35844608653), not assumed:
the dev lane's findings no longer report curl, openssl, libxml2 or pcre2
at all, and diffing the register against those findings leaves exactly
these 18 entries with no live match. curl is a direct member of the image
env (flake.nix), so this is remediation, not a closure change.

vulnix-gate re-run locally against the dev artifact: green, 15 exceptions
applied. The same run against the main artifact still needs all 18, which
is why `main` keeps the blocks until the next release train carries the
pin and the register over together.

Refs: #1666, #1667
c-vigo added a commit that referenced this pull request Sep 23, 2026
…-09-23 scan (#1670)

## Description

The nightly security scan of 2026-09-23 ([run
35844608653](https://github.com/vig-os/devkit/actions/runs/35844608653))
opened four issues at once: both scan lanes went red on an unexcepted
CRITICAL, and the T-7 expiry notice fired for the `2026-09-30` block.
This is one register problem, not four — `.vulnixignore` is
byte-identical on `main` and `dev`, so the four issues are two work
items across two refs.

Three commits, each with its own evidence.

## Type of Change

- [x] `fix` -- Bug fix

## Changes Made

### 1. Except the unbound DNSSEC-validator advisory (#1668 / #1669)

`CVE-2026-81642` (9.8 CRITICAL) — a DNSKEY whose owner name is a
compression pointer into its own RDATA overflows the digest buffer in
unbound's DNSSEC validator.

Diagnosed as a **feed event, not a closure change**, before writing the
entry: the 2026-09-22 nightly ([run
35711419780](https://github.com/vig-os/devkit/actions/runs/35711419780))
was green on **both** lanes against the same closures — the 2026-09-21
pin advance (#1662) had already merged and been scanned green — and the
delta across the two runs is **1 added / 0 removed**, exactly one
package per ref. No exception had expired.

The pin lever has nowhere to land: `nixos-26.05`, `staging-26.05`
**and** `master` all still ship 1.26.0 with no CVE-named patch. Upstream
fixed it in 1.26.1 (2026-09-16); the nixpkgs bump
([NixOS/nixpkgs#564725](NixOS/nixpkgs#564725))
merged to `staging` on 2026-09-22 and the `staging-26.05` backport
([NixOS/nixpkgs#565869](NixOS/nixpkgs#565869))
opened the same day and is still open — two branch hops away.

Provenance was **re-verified against the built closure**, not carried
over from the 2026-07-26 unbound block's note, because that claim is
what justifies accepting a 9.8:

```
nix why-depends (runtime closure of .#devkitImageEnv):
  devcontainer-image-env -> podman 5.8.6 -> gpgme 2.0.1 -> gnupg 2.4.9
    -> gnutls 3.8.13 -> unbound-1.26.0-lib
```

`nix path-info -r` reports the **`lib` output and nothing else**, the
env exposes no `unbound` executable, and `libgnutls-dane.so` is the only
gnutls library that references libunbound. The advisory's vector is a
*resolver* digesting DNSKEYs from an attacker-controlled zone; this
image ships no resolver at all. Expires `2026-11-04`.

### 2. Drop the 18 exceptions cleared by the four-package pin advance
(#1666 / #1667)

The weekly pin advance `21a67dc4` -> `6d663c05` (#1662) ships curl
8.22.0, openssl 3.6.4, libxml2 2.15.4 and pcre2 10.48. All three blocks
waiting on it named the **same** exit condition and shared **one** lever
— the `staging-next-26.05` iteration-7 PR
([NixOS/nixpkgs#563094](NixOS/nixpkgs#563094)),
which merged to `release-26.05` on 2026-09-19 — exactly the one branch
hop plus one weekly advance the 2026-09-16 re-date predicted.

Reconciled against the findings, not assumed: the `dev` lane no longer
reports curl, openssl, libxml2 or pcre2 **at all**, and diffing the
register against those findings leaves exactly these 18 entries with no
live match. Deleted rather than renewed, four to six weeks before their
`2026-10-21` / `2026-10-28` / `2026-11-04` expiries — the grid exists so
entries die on remediation.

### 3. Reconcile the 2026-09-30 block after online re-verification
(#1666 / #1667)

All five entries were accepted in the 2026-06-23 baseline triage with
*"specifics unverified offline"*. The notice forced the re-verification
it exists to force, and this time the data was available (NVD CPE
configurations, per-source CVSS, nixpkgs branch contents). **The block
does not survive as a block:**

| CVE | Package | Verdict |
|---|---|---|
| `CVE-2026-27820` | zlib 1.3.2 | **CPE mismatch** — moved to Class 1 |
| `CVE-2025-59777` / `-62689` | libmicrohttpd 1.0.2 | renewed ->
`2026-10-21` |
| `CVE-2026-11822` / `-11824` | sqlite 3.51.2 | renewed -> `2026-11-11`
|

**`CVE-2026-27820` is not this product.** It is a buffer overflow in the
Ruby **`zlib` gem** (`Zlib::GzipReader`, `zstream_buffer_ungets`). NVD's
only CPE is `cpe:2.3:a:ruby-lang:zlib:*:*:*:*:*:ruby:*:*` with
`target_sw=ruby`, affecting gem 3.0.0 and below / 3.1.0-3.1.1 /
3.2.0-3.2.1; vulnix matched the C zlib 1.3.2 only because **1.3.2 sorts
below 3.0.1**. This was the 9.8 of the set and the entry with the
weakest rationale ("reachable on any decompression path") — it is a
definitive false positive, so it moves to the Class 1 CPE-mismatch block
on the yearly re-check rather than being renewed as a risk acceptance.

The other four are real matches but **no longer share a Wednesday**,
because their levers are far apart and the stagger rule exists so a
stalled review of one cannot carry the other:

- **libmicrohttpd** — the two CVEs are the *same defect double-assigned*
(one NULL-pointer dereference, fix commit `ff13abc`, identical NVD
descriptions), both `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H` —
**pure availability**, no confidentiality or integrity. The server is
never started (podman -> systemd, systemd not PID 1), so there is no
listener for a crafted packet to reach. Closest lever: 1.0.2 -> 1.0.10
([NixOS/nixpkgs#563547](NixOS/nixpkgs#563547))
merged to `staging-26.05` on 2026-09-15, one hop out.
- **sqlite** — FTS5 memory corruption fixed in 3.53.2, scored by
VulnCheck with no NIST analyst entry, both `AV:L ... UI:R`: the attacker
must get a crafted database opened *and* MATCH-queried. Furthest lever:
`master` has 3.53.3, but `nixos-26.05` and `staging-26.05` both still
ship 3.51.2 with no 26.05 backport open.

Every per-entry note is rewritten to the verified vector, so the
register no longer carries a 9.8 justified by a guess.

### Net effect on the register

32 entries -> **15**, on six distinct Wednesdays (`2026-10-07`, `10-14`,
`10-21`, `11-04`, `11-11`, `2027-06-23`), with no two blocks sharing a
date.

## Changelog Entry

Three entries under `### Security` in `## Unreleased`, mirrored into
`assets/workspace/.devcontainer/CHANGELOG.md`:

- **Except the unbound DNSSEC-validator advisory in the vulnix
register** ([#1668](#1668),
[#1669](#1669))
- **Drop the 18 exceptions cleared by the four-package pin advance**
([#1666](#1666),
[#1667](#1667))
- **Reconcile the 2026-09-30 exception block after online
re-verification**
([#1666](#1666),
[#1667](#1667))

## Testing

- [x] Tests pass locally
- [x] Manual testing performed (described below)

### Manual Testing Details

`vulnix-gate` re-run locally against **both** refs' findings artifacts
from the failing run, which is the authoritative evidence:

```
# before
dev  -> 1 unexcepted: CVE-2026-81642 (9.8) in unbound 1.26.0
main -> 1 unexcepted: CVE-2026-81642 (9.8) in unbound 1.26.0

# after
dev  -> No unexcepted HIGH/CRITICAL findings (CVSS >= 7.0); 15 exception(s) applied
```

`check-expirations .trivyignore .vulnixignore` -> `Validated 15
exception(s) across 2 file(s)`.
`just precommit` (full `prek run --all-files`, both hook roots) ->
green.

Running the gate against the **`main`** artifact with this register
still reports the 18 curl/openssl/libxml2/pcre2 findings — expected and
correct: `main`'s closure is still pre-advance, and `main` keeps its own
copy of those blocks until a release train carries the pin and the
register over together.

## 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 — not needed;
`docs/CONTAINER_SECURITY.md` describes the doctrine, which is unchanged
- [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 — register data,
not code; the evidence is the gate re-run above
- [x] New and existing unit tests pass locally with my changes
- [x] Any dependent changes have been merged and published

## Additional Notes

**`main` is not fixed by merging this PR**, and that matters before
2026-09-30.

`check-expirations` runs in all PR CI, in pre-commit, in both nightly
lanes **and** in the release train. The renewal here lands on `dev`;
`main` still carries `Expiration: 2026-09-30`, so from **Thursday
2026-10-01** every lane on `main` goes red. `dev` is 44 commits and 6
changelog entries ahead of `main` (last tag 1.15.1), so a 1.16.0 train
is due on content anyway — cutting it before 2026-09-30 is what closes
#1667 and #1669. If the train slips, the hotfix lane is the fallback.

#1668 / #1669 also stay open on the `main` side until a later scheduled
run passes the gate there, per their own closing condition.

Refs: #1666, #1667, #1668, #1669
c-vigo added a commit that referenced this pull request Sep 24, 2026
…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
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