bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-86145

8.2high

pcre210.46 · 10.44in 4 of 4 releases

Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.

Reach pcre2 · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

PCRE2 before 10.48 allows a pcre2_dfa_match out-of-bounds write because reuse of a cached workspace block, in a recursive DFA matching workspace, lacks a size check (even though a newly allocated block, for the same purpose, does have a size check). This outcome requires an attacker-controlled regular expression, or a recursive pattern in conjunction with a small heap limit (this can be set through the API).

Published 2026-09-05NVD

CVSS 3.1Network · no privileges · no user interaction

How it is reached

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None

What it costs

Confidentiality
None
Integrity
High
Availability
Low
Scope
Unchanged

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L

References 3
Review Av26.10.0aarch64_minimalNot exposed✓ accepted by a member, 2026-11-20 · settles 8 of 8

Fable 5.2 · medium confidence · 2026-11-19

The vulnerable code is present and compiled: more_workspace() in output/build/pcre2-10.46/src/pcre2_dfa_match.c reuses a cached rws->next block with no size check, and the build applies no patches. It ships in the target libpcre2-8.so.

Nothing in the image calls pcre2_dfa_match() in normal operation. The only callers found are GLib's g_regex_match_all_full(), which no built package or Infix source uses, and the pcre2test tool installed in /usr/bin. The consumers that do process regexes (libyang, sysrepo, nginx) show no use of the DFA matcher or pcre2_set_heap_limit.

Reaching the flaw needs a shell on the device to run pcre2test -dfa with a crafted pattern, or a third-party program that calls the GLib DFA API. There is no YANG node, CLI command, web UI path or network interface that leads to it.

Evidence 10
  1. When `rws->next != NULL` the cached block is reused as-is; the size check against `RWS_RSIZE + ovecsize + RWS_ANCHOR_SIZE` at line 446 is only in the new-allocation branch. This is the unfixed pattern the CVE describes.

    output/build/pcre2-10.46/src/pcre2_dfa_match.c:428-431 (more_workspace)

  2. Empty file: no patches applied to pcre2. `buildroot/package/pcre2/` holds only `Config.in`, `pcre2.hash` and `pcre2.mk`, and `patches/` has nothing for pcre2.

    output/build/pcre2-10.46/.applied_patches_list

  3. Source is stock 10.46 (27-August-2025), below the fixed version 10.48.

    output/build/pcre2-10.46/ChangeLog:10

  4. `BR2_PACKAGE_PCRE2=y` for the target; selected by `libyang`, `sysrepo`, `libglib2` and `nginx` (`buildroot/package/libyang/Config.in:6`, `buildroot/package/sysrepo/Config.in:10`, `buildroot/package/libglib2/Config.in:10`, `buildroot/package/nginx/Config.in:218`).

    output/.config:3012

  5. Configured with `--enable-pcre2-8 --disable-pcre2-16 --disable-pcre2-32 --disable-jit`; the DFA matcher is not optional, so it is built into the 8-bit library.

    output/build/pcre2-10.46/config.log:7

  6. `usr/lib/libpcre2-8.so.0.14.0` is installed to the target; lines 21166-21167 also install `usr/bin/pcre2grep` and `usr/bin/pcre2test`.

    output/build/packages-file-list.txt:21037

  7. The only library caller of `pcre2_dfa_match()` among the target packages. A search of all `output/build` sources found no caller of `g_regex_match_all*` outside GLib itself, its tests and its introspection data.

    output/build/libglib2-2.82.5/glib/gregex.c:2443 (g_regex_match_all_full)

  8. `pcre2test` calls `pcre2_dfa_match_8` (its `-dfa` mode); this is a command-line test tool, not started by any service. `pcre2grep.c` and `pcre2posix.c` have no DFA call.

    output/build/pcre2-10.46/src/pcre2test.c:1216

  9. No match for `pcre2_dfa_match` or `pcre2_set_heap_limit`; these consumers use the ordinary matcher, so YANG `pattern` validation and nginx location regexes do not reach the affected function.

    output/build/libyang-*/src, output/build/sysrepo-*/src, output/build/nginx-1.30.3/src

  10. No match for `pcre2_dfa_match`, `g_regex_match_all`, `G_REGEX_MATCH_DFA`, `pcre2test` or `pcre2grep`: Infix's own code, rootfs overlay and finit service files do not use the DFA matcher or the pcre2 tools.

    src/, package/, board/, patches/

Version and patches

Affected range per the CVE text is PCRE2 before 10.48; this build is stock 10.46 with an empty .applied_patches_list, and the unchecked cached-block reuse is visible in more_workspace(). I could not consult the upstream advisory or fix commit (no network access), so the range and the match to the fix rest on the CVE description and the source in the tree.

Recommendation

Document as not exposed and fix through the normal update cycle: bump pcre2 to 10.48 or later, or backport the upstream size check for the reused block in more_workspace(). No urgent backport is needed.

As hardening, consider dropping pcre2test and pcre2grep from the target image, since pcre2test is the only shipped program that can drive the DFA matcher.

Open questions

The output/target tree in this snapshot contains no shared libraries, so I could not check installed binaries for imports of pcre2_dfa_match; the caller analysis is based on the package sources under output/build and on output/build/packages-file-list.txt. Sources in languages other than C/C++/Vala/Python were covered only by the plain-text search for pcre2_dfa_match, g_regex_match_all and G_REGEX_MATCH_DFA.

The review covers aarch64_minimal_defconfig only; other Infix defconfigs with more packages, or customer-added containers and applications, may include a GLib DFA regex user.

Upstream advisory GHSA-3r4p-g7gg-ppmf and the fix commit were not available to confirm the exact fix hunk.

Members of Kernel Kit decide. Sign in if you are one.