bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-89160

6.5medium

pcre210.46 · 10.44in 4 of 4 releases

Reach pcre2 · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

PCRE2 before 10.48 has a pcre2_match out-of-bounds read during the PCRE2_MATCH_INVALID_UTF matching of an invalid UTF subject.

Published 2026-09-11NVD

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
Low
Integrity
None
Availability
Low
Scope
Unchanged

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

References 2
Review Av26.10.0x86_64Not exposed✓ accepted by a member, 2026-11-17 · settles 8 of 8

Fable 5.1 · medium confidence · 2026-11-05

The build ships stock pcre2 10.46 (within the "before 10.48" range) with no patches and with SUPPORT_UNICODE compiled in, so the vulnerable PCRE2_MATCH_INVALID_UTF fragment-matching code in pcre2_match.c is present in /usr/lib/libpcre2-8.so.0.14.0 on the target.

However, PCRE2_MATCH_INVALID_UTF can only be set via the caller's compile options (it is not a (*...) pattern option), and none of the pcre2 consumers in the image set it: libyang uses PCRE2_UTF with normal UTF checking, glib's GRegex never maps the flag, nginx uses only CASELESS/MULTILINE, nmap uses CASELESS/DOTALL, and less is built without pcre2.

The only programs that set the flag are pcre2grep (-U/--utf-allow-invalid) and pcre2test, which are installed in /usr/bin but are not referenced by finit, confd, the YANG models or the CLI; reaching them requires a root shell on the device.

Evidence 12
  1. Source is stock 10.46 (PCRE2_MINOR 46, dated 2025-08-27); CVE says fixed in 10.48, so the version is in the affected range

    output/build/pcre2-10.46/src/pcre2.h:45 and ChangeLog head

  2. No patches applied; no backport of the 10.48 fix

    output/build/pcre2-10.46/.applied_patches_list (empty); buildroot/package/pcre2/ has no patches

  3. SUPPORT_PCRE2_8 and SUPPORT_UNICODE defined, SUPPORT_JIT undefined: the invalid-UTF interpreter path (pcre2_match.c:7952-8007) is compiled into the 8-bit library

    output/build/pcre2-10.46/src/config.h:345,351,310

  4. BR2_PACKAGE_PCRE2=y; libpcre2-8.so.0.14.0, pcre2grep and pcre2test are installed on the target

    output/.config:3057; output/build/packages-file-list.txt:24440,24576-24577

  5. Packages pulling in pcre2: libyang, sysrepo, libglib2, nginx, nmap

    output/.config:2740,2783,2919,3337,3411

  6. PCRE2_MATCH_INVALID_UTF is not settable from inside a pattern; only via the caller's API options

    output/build/pcre2-10.46/src/pcre2_compile.c:707-725 (pso_list)

  7. libyang compiles with PCRE2_UTF|PCRE2_UCP|... and matches with ANCHORED|ENDANCHORED only; invalid-UTF subjects are rejected by the normal UTF check rather than entering the fragment loop

    output/build/libyang-6.4.13/src/ly_common.c:909,1136-1142

  8. GRegex option mapping never sets PCRE2_MATCH_INVALID_UTF (line 152 is only a validity mask)

    output/build/libglib2-2.82.5/glib/gregex.c:277-307

  9. nginx compiles with only CASELESS/MULTILINE, no UTF mode at all

    output/build/nginx-1.30.3/src/core/ngx_regex.c:156-176,428

  10. nmap sets only CASELESS/DOTALL; less has HAVE_PCRE2 undefined

    output/build/nmap-7.95/service_scan.cc:367-427; output/build/less-661/defines.h:287

  11. Only pcre2grep -U/--utf-allow-invalid (and pcre2test) set PCRE2_MATCH_INVALID_UTF on the image

    output/build/pcre2-10.46/src/pcre2grep.c:502,3699

  12. pcre2grep/pcre2test are not started by finit, not invoked by confd, and not exposed via YANG/CLI

    board/common/rootfs/etc/finit.d/enabled/, src/confd/src, src/ (grep for pcre2grep/pcre2test: no hits)

Version and patches

Affected range per NVD/upstream: PCRE2 before 10.48; fixed in 10.48. This build: stock 10.46 (pcre2.h PCRE2_MINOR 46), no Buildroot or Infix patches applied (.applied_patches_list empty), no backport of the fix found in pcre2_match.c. The CPE match is correct.

Recommendation

Document as not exposed in the default product; schedule an upgrade to pcre2 >= 10.48 with the next routine Buildroot bump (low priority). Triggering requires running pcre2grep -U or pcre2test from a root shell, which is outside the product's management interfaces; no network-facing service passes PCRE2_MATCH_INVALID_UTF.

Open questions

The upstream advisory GHSA-9qww-pwc4-77qq and the 10.48 fix commit could not be fetched from this tree, so the exact faulty hunk was not verified; the conclusion rests on the version range and the absence of any patch. nmap's own bundled libpcre (10.43) is present in its source tree but nmap was configured with --with-libpcre=<sysroot>, so it should link the system library; the nmap binary itself was not inspected. The output/target directory in this cache is pruned, so installed files were verified via packages-file-list.txt rather than the actual rootfs.

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