Skip to content

[Backport staging-26.05] Unbound: 1.26.0 -> 1.26.1 - #565869

Merged
Scrumplex merged 1 commit into
staging-26.05from
backport-564725-to-staging-26.05
Sep 23, 2026
Merged

Scrumplex merged 1 commit into
staging-26.05from
backport-564725-to-staging-26.05

Conversation

@nixpkgs-ci

@nixpkgs-ci nixpkgs-ci Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #564154

Bot-based backport to staging-26.05, triggered by a label in #564725.

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.

(cherry picked from commit 102ab2b)
@nixpkgs-ci nixpkgs-ci Bot added the 1.severity: security Issues which raise a security issue, or PRs that fix one label Sep 22, 2026
@nixpkgs-ci nixpkgs-ci Bot mentioned this pull request Sep 22, 2026
1 of 13 tasks
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". label Sep 22, 2026
@nixpkgs-ci
nixpkgs-ci Bot requested a review from Scrumplex September 22, 2026 14:40
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 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 Sep 22, 2026
@Scrumplex

Copy link
Copy Markdown
Member

Currently rebuilding world to test this update

c-vigo added a commit to vig-os/devkit 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 to vig-os/devkit 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
@Scrumplex

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 565869 --package unbound.tests
Commit: 8ec0ae1d40066d21d3023e967bff4c7ae87f6ea1


x86_64-linux

✅ 3 tests built:
  • unbound.tests.gnutls
  • unbound.tests.nixos-test-exporter
  • unbound.tests.nixos-test

@Scrumplex
Scrumplex added this pull request to the merge queue Sep 23, 2026
Merged via the queue into staging-26.05 with commit 372a1ee Sep 23, 2026
38 checks passed
@Scrumplex
Scrumplex deleted the backport-564725-to-staging-26.05 branch September 23, 2026 19:37
c-vigo added a commit to vig-os/devkit 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
@LeSuisse LeSuisse linked an issue Oct 22, 2026 that may be closed by this pull request
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 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 4.workflow: backport This targets a stable branch 8.has: package (update) This PR updates a package to a newer version 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.

unbound: security issues < 1.26.1

2 participants