Skip to content

fix(security): except the pcre2 JIT incorrect-free in the vulnix register - #1649

Merged
c-vigo merged 1 commit into
release/1.15.1from
bugfix/1645-vulnix-pcre2-jit-double-free
Sep 17, 2026
Merged

c-vigo merged 1 commit into
release/1.15.1from
bugfix/1645-vulnix-pcre2-jit-double-free

Conversation

@c-vigo

@c-vigo c-vigo commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Fills the seeded ## [1.15.1] - TBD section of the hotfix branch and clears the
2026-09-17 nightly red on both refs. One file of substance, one CVE.

Closes the gate half of #1645 (dev) / #1637 (main).

The incident

A feed event, not a closure change — the same shape as the libxml2 batch the
day before:

2026-09-16 (35080687787) 2026-09-17 (35207126776)
pcre2 advisories none at all 6
blocking libxml2 CVE-2026-86140 CVE-2026-89161
pin 21a67dc4 21a67dc4 (unchanged)

CVE-2026-89161 was published 2026-09-11 and reached the NVD feed in that
window. Delta is 6 added / 0 removed against exactly one package, no expiry
fired.

Why one entry, not six

Only CVE-2026-89161 crosses the gate's 7.0 threshold. The siblings —
-89156 (2.9), -89157 (5.7), -89158 (6.5), -89160 (3.7), -89162 (2.9) —
are deliberately left out, as the glibc and libxml2 blocks already do for theirs.

The assessment

CWE-590 incorrect free in pcre2_jit_match when a previously copied subject is
passed in as a match context. vulnix gates on MITRE's 7.4
(AV:L/AC:H/PR:N); the NIST analyst scores the same defect 7.8
(AV:L/AC:L/PR:L). Both local-vector.

nix why-depends gives one path, one hop:

devcontainer-image-env.drv
└── ripgrep-15.1.0.drv
    └── pcre2-10.46.drv

So rg -P / rg --pcre2 on a local search is the entire exposure surface — no
daemon, no service, no untrusted input path. Whether ripgrep's grep-pcre2
binding can actually produce the affected calling pattern was not verified;
the entry accepts that ceiling rather than claiming unreachability.

main's closure additionally carries pcre2 10.47 — also below the 10.48 fix, and
one entry keyed by CVE id covers both derivations.

Not vulnix over-reporting: the pinned nixpkgs applies no patches to pcre2
(pcre2.patches evaluates empty), so this is a true version match.

One lever, now four passengers

package pinned fixed in release-26.05 staging-next-26.05
curl 8.21.0 8.22.0 ❌ ✅
openssl 3.6.3 3.6.4 ❌ ✅
libxml2 2.15.3 2.15.4 ❌ ✅
pcre2 10.46 10.48 ❌ 10.46 ✅ 10.48

pcre2 10.48 landed on staging-next-26.05 on 2026-09-05 (nixpkgs 6c02c72fd);
release-26.05 is still on 10.46, unchanged since 2025-08-29 — it has not even
taken the by-name move — so advancing the pin today changes nothing. All four
blocks die on the same advance and should be deleted, not renewed.

Dated 2026-11-04: one Wednesday past the libxml2 block rather than on it, so
a stalled review of one does not carry the other with it.

Verification

$ uv run vulnix-gate <09-17 dev findings>  --register .vulnixignore
No unexcepted HIGH/CRITICAL findings (CVSS >= 7.0); 32 exception(s) applied
$ uv run vulnix-gate <09-17 main findings> --register .vulnixignore
No unexcepted HIGH/CRITICAL findings (CVSS >= 7.0); 32 exception(s) applied
$ uv run check-expirations .vulnixignore
Validated 32 exception(s) across 1 file(s)

Full just precommit green (52 hooks), mirror regenerated by sync-manifest.

Refs: #1645

…ster

The nightly vulnix gate went red on both refs on 2026-09-17. Like the libxml2
batch the day before, this is a feed event and not a closure change: the
09-16 run (35080687787) reported no advisory at all against pcre2 and the
09-17 run (35207126776) shows 6 added / 0 removed against that single
package, with no expiry fired and the pin untouched. CVE-2026-89161 was
published 2026-09-11 and reached the NVD feed in that window.

Only CVE-2026-89161 crosses the gate's 7.0 threshold; the five siblings score
2.9-6.5 and are left out of the register, as the glibc and libxml2 blocks
already do for theirs. The defect is a CWE-590 incorrect free in
pcre2_jit_match when a previously copied subject is passed in as a match
context; vulnix gates on MITRE's 7.4 and the NIST analyst scores it 7.8, both
local-vector.

nix why-depends gives one path and one hop -- devcontainer-image-env ->
ripgrep 15.1.0 -> pcre2 -- so `rg -P` on a local search is the whole exposure
surface. Whether ripgrep's grep-pcre2 binding can reach the affected calling
pattern was not verified, so the entry accepts that ceiling rather than
claiming unreachability.

The pinned nixpkgs applies no patches to pcre2, so this is a true version
match rather than vulnix over-reporting, and the remediation lever is the one
three blocks are already waiting on: 10.48 landed on staging-next-26.05 on
2026-09-05 while release-26.05 still ships 10.46. Four packages now ride one
branch hop and all four blocks should be deleted, not renewed, when it lands.
Dated 2026-11-04 -- one Wednesday past the libxml2 block, so a stalled review
of one does not carry the other.

Refs: #1645
@c-vigo
c-vigo merged commit 2c81da7 into release/1.15.1 Sep 17, 2026
12 checks passed
@c-vigo
c-vigo deleted the bugfix/1645-vulnix-pcre2-jit-double-free branch September 17, 2026 16:44
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