verdict: a rebuild on an older base-os is judged an improvement, and a new component skips the verdict entirely (netork#2523) #3

Closed
opened 2026-11-15 21:41:10 +00:00 by christianmanivong · 0 comments
Owner

Type: bug. Priority: P2, because a CVE regression can reach netOrk as an "improvement": the bot opens the pull request in netork with a verdict that says nothing about what got worse, and nothing between that and a merge notices it. Not P1: every pin still needs a human merge in netork, and the 0.52.0 case was caught in review.

What happened (NetOrk/netork#2523, 0.52.0, 2026-11-15)

NetOrk/postgres's nightly built PostgreSQL 17.12 on the base-os its Dockerfile names, 13-20261025.1, because postgres#4 (the move to base-os 13-20261108.1) was not merged yet. The pinned image already sat on 13-20261108.1 (base-os dispatched that run). The candidate therefore brought zlib CVE-2026-76844 and CVE-2026-85091 (high, fixed in 1:1.3.dfsg+really1.3.1-1+deb13u1) back. It was published, postgres:pinned moved to it, and netork#2523 was opened with the body PostgreSQL 17.11-0+deb13u1 → 17.12-0+deb13u1 and nothing else. It was closed by hand; its successor netork#2540 (17.12 on 13-20261108.1) was merged.

Why, in the code

  1. A new component skips the verdict. In the nightlies of NetOrk/postgres, NetOrk/valkey and NetOrk/signal-api, the step "Is there a verdict to ask for?" ends with changed=true as soon as the package (or signal-cli/REST API) differs from the pin's ("Another package is an improvement on its own: the matcher is not asked"). The verdict action does not run, decide takes changed as improved=true, and the report is the one version line. The matcher was never asked about #2523's candidate.
  2. The verdict cannot see a base-os going backwards. image_tools/verify.py judge() calls a candidate improved when a fixable critical/high closed, /etc/debian_version merely differs, or a CIS control closed. It never compares the base-os both images were built on (/etc/netork/base-os, VERSION=), and "New critical or high CVEs in the candidate never block". A candidate on an older base-os that also closes one CVE elsewhere (or whose Debian point release goes back) is "Improved", with the reintroduced CVEs only in a table further down. NetOrk/unbound, apt-cacher-ng and base-python ask the verdict on every candidate and are exposed to exactly that; base-python builds on its Dockerfile's base-os as postgres does. apt-cacher-ng's code_change path judges only by counts, which a regression can balance out.

Expected

  • A candidate on an older base-os than the pin, or one that brings a critical or high CVE the pin does not have and that has a fix (the CVE gate's rule), is never an improvement, whatever else it closes or changes. A Debian point release counts only forwards.
  • The verdict names the regression first: **Regressed** (the pin stays), with "base-os goes back: 13-20261108.1 → 13-20261025.1" and each reintroduced CVE.
  • A new component is still an improvement on its own, but through the verdict (the nightly hands its change lines to the action), so the regression check always runs; no nightly skips the matcher.
  • apt-cacher-ng's code change is refused on a regression the verdict names.
  • Every image repository moves to the image-tools commit that does this.
**Type:** bug. **Priority: P2**, because a CVE regression can reach netOrk as an "improvement": the bot opens the pull request in netork with a verdict that says nothing about what got worse, and nothing between that and a merge notices it. Not P1: every pin still needs a human merge in netork, and the 0.52.0 case was caught in review. ## What happened (NetOrk/netork#2523, 0.52.0, 2026-11-15) NetOrk/postgres's nightly built PostgreSQL 17.12 on the base-os its Dockerfile names, `13-20261025.1`, because postgres#4 (the move to base-os `13-20261108.1`) was not merged yet. The pinned image already sat on `13-20261108.1` (base-os dispatched that run). The candidate therefore brought zlib CVE-2026-76844 and CVE-2026-85091 (high, fixed in `1:1.3.dfsg+really1.3.1-1+deb13u1`) back. It was published, `postgres:pinned` moved to it, and netork#2523 was opened with the body `PostgreSQL 17.11-0+deb13u1 → 17.12-0+deb13u1` and nothing else. It was closed by hand; its successor netork#2540 (17.12 on `13-20261108.1`) was merged. ## Why, in the code 1. **A new component skips the verdict.** In the nightlies of NetOrk/postgres, NetOrk/valkey and NetOrk/signal-api, the step "Is there a verdict to ask for?" ends with `changed=true` as soon as the package (or signal-cli/REST API) differs from the pin's ("Another package is an improvement on its own: the matcher is not asked"). The verdict action does not run, `decide` takes `changed` as `improved=true`, and the report is the one version line. The matcher was never asked about #2523's candidate. 2. **The verdict cannot see a base-os going backwards.** `image_tools/verify.py` `judge()` calls a candidate improved when a fixable critical/high closed, `/etc/debian_version` merely *differs*, or a CIS control closed. It never compares the base-os both images were built on (`/etc/netork/base-os`, `VERSION=`), and "New critical or high CVEs in the candidate never block". A candidate on an older base-os that also closes one CVE elsewhere (or whose Debian point release goes *back*) is "Improved", with the reintroduced CVEs only in a table further down. NetOrk/unbound, apt-cacher-ng and base-python ask the verdict on every candidate and are exposed to exactly that; base-python builds on its Dockerfile's base-os as postgres does. apt-cacher-ng's `code_change` path judges only by counts, which a regression can balance out. ## Expected - A candidate on an older base-os than the pin, or one that brings a critical or high CVE the pin does not have and that has a fix (the CVE gate's rule), is never an improvement, whatever else it closes or changes. A Debian point release counts only forwards. - The verdict names the regression first: `**Regressed** (the pin stays)`, with "base-os goes back: 13-20261108.1 → 13-20261025.1" and each reintroduced CVE. - A new component is still an improvement on its own, but through the verdict (the nightly hands its change lines to the action), so the regression check always runs; no nightly skips the matcher. - apt-cacher-ng's code change is refused on a regression the verdict names. - Every image repository moves to the image-tools commit that does this.
christianmanivong added the
prio
P2
label 2026-11-15 21:41:10 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NetOrk/image-tools#3