Skip to content

fix(security): except gawk 5.4.0 CVE batch pending nixpkgs 5.4.1 bump - #1072

Merged
c-vigo merged 1 commit into
release/1.2.0from
bugfix/1071-gawk-vulnix-exceptions
Jul 14, 2026
Merged

c-vigo merged 1 commit into
release/1.2.0from
bugfix/1071-gawk-vulnix-exceptions

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Unblocks the 1.2.0-rc1 publish, which failed at the blocking Vulnix CVE Gate (run 29346662524) on four gawk 5.4.0 findings disclosed by CERT-PL on 2026-07-13 (advisory):

CVE CVSS What Reachability here
CVE-2026-40468 9.1 integer overflow, builtin.c developer/CI-chosen awk input only
CVE-2026-40469 9.1 integer overflow, do_sub() 32-bit builds only — image is 64-bit
CVE-2026-40467 7.5 UAF, do_getline_redir() crash only, dev-chosen input
CVE-2026-40553 7.5 stack overflow, readdir ext needs opt-in -l readdir, unused here

Why an exception and not a bump

All four are fixed upstream in gawk 5.4.1. The nixpkgs bump (NixOS/nixpkgs#540158) merged to staging on 2026-07-12 (gawk is a stdenv mass-rebuild) and has not reached nixos-26.05 — nor release-26.05, staging-26.05, master, or nixpkgs-unstable (verified 2026-07-14). The "advance the rev" lever has nowhere to land, so this follows the exception-register model (precedents #941, #963): short-dated block (expires 2026-07-28), per-CVE rationale, dropped in favour of a pin advance once 5.4.1 lands.

Verification

  • Full just precommit suite green (incl. check-expirations, sync-manifest).
  • vulnix-gate run locally against the updated register with a findings file reproducing the four CVEs: exit 0; negative control with an unregistered CVE still fails (exit 1).

Refs: #1071

The 1.2.0-rc1 publish failed at the blocking vulnix gate on four gawk
5.4.0 findings disclosed by CERT-PL on 2026-07-13 (CVE-2026-40467/-40468/
-40469/-40553). All are fixed upstream in gawk 5.4.1, but the nixpkgs
bump (NixOS/nixpkgs#540158) merged to staging only (stdenv mass-rebuild)
and has not reached any release branch, so no rev-advance is possible
today. Accept the batch in the exception register with per-CVE rationale
and a short 2026-07-28 expiry to force re-review once 5.4.1 lands in
nixos-26.05.

Refs: #1071
@c-vigo
c-vigo enabled auto-merge July 14, 2026 16:43
@c-vigo
c-vigo merged commit 4d4a11b into release/1.2.0 Jul 14, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/1071-gawk-vulnix-exceptions branch July 14, 2026 16:49
c-vigo added a commit that referenced this pull request Jul 15, 2026
…ix (#1098)

## Summary

The nightly vulnix gate ([run
29396607272](https://github.com/vig-os/devkit/actions/runs/29396607272))
went red on two **new** HIGH/CRITICAL findings in `perl 5.42.0`. Running
the real `vulnix-gate` against the run's `vulnix-findings.json` with the
live register confirmed these are the **only** blocking findings — every
other reported CVE (curl, gawk, openssh, glibc, openssl, …) is still
masked by a non-expired exception.

| CVE | CVSS | Description |
|-----|------|-------------|
| CVE-2026-13221 | 9.1 | 16-bit trie-delta overflow in
`Perl_study_chunk`; regex alternations of >65535 fixed branches silently
miscompile (false pos/neg matches). Correctness bug; needs a
pathological developer-authored pattern. |
| CVE-2026-57432 | 8.4 | Integer overflow in `S_measure_struct` → OOB
heap read in `pack`/`unpack` when the template derives from untrusted
input (info disclosure). |

## Remediation

Both fixes exist **only in the perl 5.43.x development series** (fixed
in 5.43.10). Stable perl is 5.42.0 in the pinned rev, `nixos-26.05`,
**and** Debian stable — all unpatched, no backport — so the "advance the
rev" lever has nowhere to land today. `perl` is in-closure via git's
perl-based subcommands (send-email/instaweb), same provenance as the
existing CVE-2026-4176 entry, and processes developer/CI-chosen inputs
only (no untrusted-input path in the single-user dev model).

This PR adds a **time-boxed `.vulnixignore` exception** (`Expiration:
2026-08-14`) with a verified rationale, mirroring the #1071/#1072 gawk
triage. Flip to a nixpkgs rev-advance once a patched perl reaches the
pinned channel.

## Verification

- `vulnix-gate` against the run's artifact with the edited register: **0
blocking findings** (was 2).
- `check-expirations`: all 60 exceptions validated.
- `just precommit` (full suite, `--all-files`): green.

Closes #1094
c-vigo added a commit that referenced this pull request Jul 21, 2026
## What

Extend the `.vulnixignore` exception for the gawk 5.4.0 CERT-PL CVE
batch
(`CVE-2026-40467`/`-40468`/`-40469`/`-40553`, originally #1071 / #1072)
from
`Expiration: 2026-07-28` to `2026-08-18`, and record the extension in
the
`## Unreleased` → `### Security` changelog section.

## Why

The exception was short-dated to force a re-check once the fix lands in
the
pinned nixpkgs channel and we can flip to a rev-advance. That has not
happened
yet, so the exception would otherwise lapse and re-fail the vulnix gate.

## Upstream evidence (re-verified 2026-07-21 via
raw.githubusercontent.com)

| nixpkgs branch | `pkgs/tools/text/gawk/default.nix` |
|----------------|-------------------------------------|
| `nixos-26.05` (pinned channel) | `version = "5.4.0"` — still
vulnerable |
| `release-26.05` | `version = "5.4.0"` — still vulnerable |
| `staging` | `version = "5.4.1"` — fixed |

The fix (gawk 5.4.1, `NixOS/nixpkgs#540158`) merged to `staging` on
2026-07-12.
gawk is a stdenv mass-rebuild, so it must traverse `staging` ->
`staging-next`
-> the release branch before reaching `nixos-26.05`; that propagation is
still
in flight. Risk posture is unchanged from the #1071 triage
(developer/CI-chosen
awk inputs only; readdir CVE requires the opt-in `-l readdir` path).

## Verification

- `prek run --all-files` fully green (including `check-expirations`,
which now
  passes with the future 2026-08-18 date).
- `sync-manifest` auto-mirrored the changelog entry into
`assets/workspace/.devcontainer/CHANGELOG.md` (regenerated, not
hand-edited).

## Follow-up

Flip to the nixpkgs rev-advance and drop this exception once 5.4.1
reaches
`nixos-26.05`.

Closes #1240
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