Skip to content

fix(security): reconcile the vulnix exception register after the 2026-09-23 scan - #1670

Merged
c-vigo merged 3 commits into
devfrom
bugfix/1666-reconcile-exception-registers
Sep 23, 2026
Merged

c-vigo merged 3 commits into
devfrom
bugfix/1666-reconcile-exception-registers

Conversation

@c-vigo

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

Copy link
Copy Markdown
Contributor

Description

The nightly security scan of 2026-09-23 (run 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

  • 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) 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) merged to staging on 2026-09-22 and the staging-26.05 backport (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), 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) 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, #1669)
  • Drop the 18 exceptions cleared by the four-package pin advance (#1666, #1667)
  • Reconcile the 2026-09-30 exception block after online re-verification (#1666, #1667)

Testing

  • Tests pass locally
  • 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

  • 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 — not needed; docs/CONTAINER_SECURITY.md describes the doctrine, which is unchanged
  • 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 — register data, not code; the evidence is the gate re-run above
  • New and existing unit tests pass locally with my changes
  • 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

…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
… 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
…fication

The block reached its T-7 notice (#1666/#1667) carrying five entries
accepted in the 2026-06-23 baseline triage with "specifics unverified
offline" -- the honesty note that batch was explicit about. The notice
forced the re-verification it exists to force, and this time the CVE data
was available: all five were checked online against NVD (CPE
configurations and per-source CVSS) and the nixpkgs branch contents. The
block does not survive as a block.

zlib 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
for it is cpe:2.3:a:ruby-lang:zlib:*:*:*:*:*:ruby:*:* with target_sw=ruby
and affected ranges of gem 3.0.0 and below, 3.1.0-3.1.1 and 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"), and it turns out to be 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 product+version matches and stay, but they no
longer share a Wednesday, because their levers are a long way apart and
the stagger rule exists so a stalled review of one cannot carry the
other:

  - libmicrohttpd CVE-2025-59777 and CVE-2025-62689 are the SAME defect
    double-assigned -- one NULL-pointer dereference fixed in commit
    ff13abc after the v1.0.2 tag, identical NVD descriptions, both
    CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, i.e. pure availability
    with no confidentiality or integrity component. The server is never
    started here (podman -> systemd, systemd not PID 1), so there is no
    listener for a crafted packet to reach. Their lever is closest:
    1.0.2 -> 1.0.10 (NixOS/nixpkgs#563547) merged to staging-26.05 on
    2026-09-15, one hop out. Renewed to 2026-10-21.

  - sqlite CVE-2026-11822 and CVE-2026-11824 are FTS5 memory-corruption
    defects fixed in 3.53.2, scored by VulnCheck with no NIST analyst
    entry, both CVSS:3.1/AV:L/AC:L/PR:N/UI:R -- local vector requiring
    the user to open a crafted database and run a MATCH query against
    it. Their lever is furthest: nixpkgs 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, so advancing the pin changes nothing. Renewed to
    2026-11-11.

Every per-entry note is rewritten to the verified vector, so the register
no longer carries a 9.8 justified by a guess. vulnix-gate re-run locally
against the dev artifact of run 35844608653: green, 15 exceptions
applied; check-expirations validates all 15 across both registers.

Refs: #1666, #1667
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