Repository navigation
ci: whitelist the 21 CVE pairs from the scan that do not apply - #168
Conversation
viberaven
left a comment
There was a problem hiding this comment.
One low-priority finding at e97746d: the new header promises whitelist invalidation and automatic re-triage that vulnix does not implement. See the inline comment.
Checked the filtering implementation in both nixpkgs' vulnix 1.12.4 and the revision pinned by #165. A focused reproduction with a listed glibc CVE plus an unlisted synthetic CVE reports only the new CVE and keeps the listed one suppressed. No additional actionable findings from the whitelist review; this is a documentation correction, not a claim that new CVEs are hidden.
Review performed with Codex (GPT-6 Astra).
sebsgent
left a comment
There was a problem hiding this comment.
viberaven's header finding is fixed in 1e2b13e and matches vulnix. Rechecked on current master with the pinned vulnix: the suppressions that still fire are correct, but the file has drifted.
Must:
- Drop [cups] and [avahi]. Neither is in the closure since the last relock, so those 11 ids match nothing and the comments describe a path that no longer exists. If cups returns it should get a fresh triage, not stay silenced.
- glibc: update 2.42-100 to 2.42-103. Say the 2.44 fixes are in the release tarball, not its patch.
- lief: libLIEF.so is a NEEDED library of node, so it isn't a leftover and "nothing on a node runs it" is wrong. Move it to Library only with the real reason, and take lief out of the header's build-tool example.
Should:
- gcc: move to Range misread. The fix is in GCC 15.3 and 16.2, and x86_64 isn't the reason because aarch64-linux is supported.
- perl: replace the RC-boundary explanation. NVD's CPE range is the overbroad part.
- Update the title and body to 21 pairs and the current scan result.
- Squash the commits. The first message still describes the "subset rule" that the third commit disproves.
Review performed with Claude Code (Opus 5.5).
1e2b13e to
105f4fa
Compare
|
Thanks, all checked on current master with the pinned vulnix, and I pushed one squashed commit.
Tested: One more thing I noticed: the older git and uuid entries from before this PR match nothing in the current closure. I left them alone here. Happy to drop them in a separate PR. |
sebsgent
left a comment
There was a problem hiding this comment.
No action items. All points from my previous review are fixed in 105f4fa. Optional follow-up: yes to dropping the stale [git] and [uuid] entries in a separate PR.
Tested: rebased on master, built test/ci/scan-node.nix, and checked the closure versions (glibc 2.42-103/2.44-57, perl 5.42.3, gcc 15.3/16.2, lief 0.17.0 as a NEEDED lib of node via mempool-backend; no cups/avahi/git). Checked the NVD ranges for CVE-2023-4039, CVE-2026-13221 and CVE-2025-15504. The TOML parses and has 21 pairs.
Review performed with Claude Code (Opus 5.5).
The first scheduled CVE scan (bitcoinix#157) reported pairs that don't apply to a node. After the relock to nixpkgs fa1373130 and d357a2b54, 21 of them still fire, and this adds one entry per package for them. Each entry is scoped to its CVE ids and says why and how it was checked. - glibc: 2.42-103 applies the 2.42 release branch as one patch that isn't CVE-named, and it has all eight fixes. glibc 2.44-57 matches two of the ids because NVD's range for them has no upper bound. Their fixes are in the 2.44 release tarball. - zlib and ada: name collisions with other products. - dbus "1": vulnix reads the dbus-1 etc directory as a package. - nghttp2, busybox and lief: the CVE is in code a node never runs. node 26 links libLIEF.so but only parses ELF files for --build-sea. - gcc and perl: NVD's CPE range takes in the shipped version, which has the fix. The header now lists these groups and says how vulnix filters a cve list. It drops each listed CVE on its own, so a new CVE for the same package is still reported. It also allows a build tool that a package keeps a store reference to, like busybox for nix. cups and avahi aren't in the closure since the relock, so they aren't whitelisted. If they come back they need a fresh triage.
105f4fa to
827ef26
Compare
The whitelist half of my triage in #157. The first run reported 62 pairs. After the relock in #195 (nixpkgs fa1373130 and d357a2b54), 21 pairs that don't apply to the node still fire, and this adds one entry per package for them, each scoped to its CVE ids with the reason and how it was verified.
The groups, as described in the new header:
dbus-1etc directory derivation. The real dbus is 1.16.2.--build-sea, which no service runs).The header also says how vulnix filters a
cvelist: the listed CVEs stay silenced one by one, and a new CVE for the same package is reported on its own. My first version claimed a new CVE switches the whole entry off. viberaven showed that's wrong. The old sentence that forbade whitelisting build tools now allows the leftover-reference case, since busybox is exactly that.cups and avahi were in the first version. They aren't in the closure since the relock, so I dropped them. If they come back they get a fresh triage. The commits are squashed into one.
Not in here: libssh2. Its ten CVEs are patched in nixpkgs, and #165 made vulnix see that.
Tested
test/ci/cve-scan.shon this branch rebased on current master on a KVM host, with the pinned vulnix fromtest/ci/vulnix.nix. The report has 8 affected store paths and 12 pairs, none of them whitelisted here: brotli 1.2.0 and 1.2.1, glib 2.88.3 (two paths), dhcpcd, libusb, jq and patch. sqlite and openssh no longer fire after the relock.vulnix --show-whitelistedon the same closure matches all 21 pairs this adds. cups and avahi aren't innix path-info -rof the scan target.Each claim was checked on current master: NVD's affected ranges and products through the 2.0 API, the nixpkgs glibc patch files and the 2.44 tarball's NEWS, the GCC git history for the CVE-2023-4039 fix,
readelf -don node and the node v26.13.0 source for lief, andnix why-dependson the scan target for the library-only group.Models used: Fable 5.1 and Opus 5.5 did the triage and the rework. Codex (GPT-5.6 Sol, xhigh) reviewed the rework and caught two group labels, both fixed. Codex (GPT-6 Astra, xhigh) reviewed the first version: TOML and CVE lists were right, and it caught the header contradiction about build tools. GLM 5.3 (max) audited the tree at the first version for completeness, with Codex (GPT-6 Astra, xhigh) as the second opinion: four findings in modules/ and the test workflow, none in the whitelist. Three are #107, #138 (fixed in #161) and an RTL credential note that overlaps #151. Astra marked the backup passphrase one a false positive. DeepSeek V4.1 Flash 1017 (max) and GLM 5.3 (max), with Codex (GPT-6 Astra, xhigh) as the second opinion, ran the gate on the squashed commit: six findings plus two Astra extras at 105f4fa, all in modules/ (backups, the bitcoind rpcauth HMACs, mempool settings, onion services,
install -T) and none in the whitelist. One notes that the scan target leaves out the in-process clightning plugins and the hardware-wallet tools, which is worth a look on its own.