Skip to content

[staging-26.05] libmicrohttpd: 1.0.2 -> 1.0.10 - #563547

Merged
GrimmTheShrimp merged 3 commits into
NixOS:staging-26.05from
GrimmTheShrimp:backport-554471-to-staging-26.05
Sep 15, 2026
Merged

GrimmTheShrimp merged 3 commits into
NixOS:staging-26.05from
GrimmTheShrimp:backport-554471-to-staging-26.05

Conversation

@GrimmTheShrimp

@GrimmTheShrimp GrimmTheShrimp commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Combined backport of:
#554471
#544697
#513317

Fixes CVE-2025-62689 / CVE-2025-59777

Things done

(cherry picked from commit a0329b8)
(cherry picked from commit 75eca02)
(cherry picked from commit 5f16fc9)
@GrimmTheShrimp GrimmTheShrimp added 1.severity: security Issues which raise a security issue, or PRs that fix one 4.workflow: backport This targets a stable branch labels Sep 15, 2026
@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: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. labels Sep 15, 2026

@SuperSandro2000 SuperSandro2000 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. and removed 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Sep 15, 2026
@GrimmTheShrimp
GrimmTheShrimp added this pull request to the merge queue Sep 15, 2026
Merged via the queue into NixOS:staging-26.05 with commit 727e2e0 Sep 15, 2026
39 checks passed
@GrimmTheShrimp
GrimmTheShrimp deleted the backport-554471-to-staging-26.05 branch September 15, 2026 12:04
c-vigo added a commit to vig-os/devkit that referenced this pull request Sep 23, 2026
…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
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
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 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 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. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants