bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-89162

3.3low

pcre210.46in 3 of 4 releases

Reach pcre2 · 6 builds in 3 of 4 releases

full reviewcross-check✓ a member decided

v25.03.1not in NVD's range
v26.01.010.46
v26.09.010.46
v26.10.0latest10.46
aarch64_minimal
x86_64
aarch64_minimal–
x86_64–
aarch64_minimalANot exposed · autox86_64ANot exposed · autoaarch64_minimalANot exposed · autox86_64ANot exposed · autoaarch64_minimalANot exposed · autox86_64ANot exposed

Description · NVD

In PCRE2 before 10.48, pcre2_serialize_encode might disclose two bytes to an adversary, typically in a situation where the access available to the adversary is already unsafe.

Published 2026-09-11NVD

CVSS 3.1Local · low privileges · no user interaction

How it is reached

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

What it costs

Confidentiality
Low
Integrity
None
Availability
None
Scope
Unchanged

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

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

Fable 5.1 · high confidence · 2026-11-05

pcre2 10.46 in this build is unpatched (no entries in .applied_patches_list, no pcre2 patches in the tree) and is below the fixed 10.48, and the affected function pcre2_serialize_encode is compiled into the target libpcre2-8.so (8-bit, SUPPORT_UNICODE).

However, nothing in the product calls the serialize API: the only consumer of pcre2_serialize_encode in the whole built tree is pcre2test (its 'save' command), a test harness binary installed at /usr/bin/pcre2test. The enabled pcre2 consumers (libglib2, libyang, sysrepo, nginx, nmap) do not reference it, nothing in finit.conf/finit.d or confd touches pcre2, and no YANG/CLI node can trigger it.

Reaching the code requires a local shell on the device to run pcre2test and read back two bytes of that same process's heap; it is not reachable from any network interface.

Evidence 11
  1. PCRE2_MAJOR 10 / PCRE2_MINOR 46 - inside the 'before 10.48' affected range

    output/build/pcre2-10.46/src/pcre2.h:44-45

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

    output/build/pcre2-10.46/.applied_patches_list (empty); buildroot/package/pcre2/ contains only Config.in, pcre2.hash, pcre2.mk

  3. Raw memcpy of re->blocksize bytes of the compiled pattern into the output stream; only memctl/tables/executable_jit are zeroed afterwards

    output/build/pcre2-10.46/src/pcre2_serialize.c:127-150 (pcre2_serialize_encode)

  4. Name table size is rounded up with CLIST_ALIGN_TO(..., sizeof(uint32_t)) before char lists when SUPPORT_WIDE_CHARS; the only explicit padding memset covers the last 8 bytes of the struct header, so alignment padding inside the block stays uninitialised and gets serialised (the vulnerable path)

    output/build/pcre2-10.46/src/pcre2_compile.c:10647-10654 and :10681

  5. SUPPORT_PCRE2_8 and SUPPORT_UNICODE defined (so SUPPORT_WIDE_CHARS via pcre2_intmodedep.h:215-216); JIT, 16- and 32-bit disabled

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

  6. BR2_PACKAGE_PCRE2=y, 16/32-bit and JIT not set

    output/.config:3057-3061

  7. libpcre2-8.so.0.14.0, pcre2grep and pcre2test are installed into the target image

    output/build/pcre2-10.46/.files-list.txt:89,122,225,226

  8. Only hit is nmap-7.95/libpcre/src/pcre2_serialize.c (bundled pcre2 copy, not a caller); no consumer package calls the serialize API

    grep -rl pcre2_serialize_encode output/build/ (excluding pcre2-10.46 and host-*)

  9. pcre2test is the only binary on target that invokes pcre2_serialize_encode_8 (its 'save' command)

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

  10. Enabled pcre2 consumers on target; none use serialization

    output/.config: BR2_PACKAGE_LIBGLIB2/SYSREPO/LIBYANG/NGINX/NMAP=y; buildroot/package/nmap/nmap.mk:65-66

  11. No service, startup script or YANG-to-system logic invokes pcre2test or the serialize API

    board/common/rootfs/etc/finit.conf, board/common/rootfs/etc/finit.d, src/confd (grep pcre2: no hits)

Version and patches

NVD/GHSA-q7rw-r7qq-2hx6: affected < 10.48, fixed in 10.48. This build: pcre2 10.46, zero patches applied (.applied_patches_list empty, no Buildroot or Infix patches for pcre2), no IGNORE_CVES entry. Vulnerable code is compiled into libpcre2-8.so. Note: the upstream advisory/fix commit could not be fetched from this tree; the identification of the leaked bytes as alignment padding before the char-list area in pcre2_compile.c is inferred from the 10.46 source, not confirmed against the fix hunk.

Recommendation

Document as not applicable / no urgent action. Pick up pcre2 10.48 with the next Buildroot bump rather than backporting. Rationale: only reachable via the pcre2test harness from a local shell, leaks two bytes of the invoking process's own heap, no network exposure (CVSS AV:L/PR:L/C:L). Optionally consider dropping pcre2test/pcre2grep from the target image to reduce surface.

Open questions

Could not read the upstream advisory or fix commit (no network), so the exact two padding bytes are inferred from the 10.46 source rather than confirmed. The cached output/target tree has shared objects stripped out, so linkage was verified from .files-list.txt and source greps rather than from the binaries themselves.

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