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 after a JIT fallback when an attacker can provide invalid UTF data.
Published 2026-09-11NVD
CVSS 3.1Network · no privileges · no user interaction
How it is reached
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
What it costs
- Confidentiality
- None
- Integrity
- None
- Availability
- High
- Scope
- Unchanged
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Fable 5.1 · high confidence · 2026-11-05
CVE-2026-89156 is an out-of-bounds read in pcre2_match() that occurs only after a JIT fallback, i.e. when the pattern has JIT code, the JIT pre-check marks the UTF subject as validated (jit_checked_utf), pcre2_jit_match() returns JIT_BADOPTION, and the interpreter then skips its own UTF check.
That entire path in src/pcre2_match.c is wrapped in #ifdef SUPPORT_JIT.
Both the target and host pcre2 10.46 builds in this tree are configured with --disable-jit (config.h: SUPPORT_JIT undefined), so the vulnerable code is not compiled; no patches or backports are applied, and the version does fall in NVD's range, but the feature is absent.
Evidence 10
Target configure invoked with --disable-jit --enable-pcre2-8 --disable-pcre2-16 --disable-pcre2-32
output/build/pcre2-10.46/config.log:7
/* #undef SUPPORT_JIT */ - JIT not compiled into target libpcre2-8
output/build/pcre2-10.46/src/config.h:310
/* #undef SUPPORT_JIT */ - host build also without JIT (host tools do not ship on device)
output/build/host-pcre2-10.46/src/config.h:310
JIT pre-match UTF check, jit_checked_utf = TRUE and pcre2_jit_match() fallback on PCRE2_ERROR_JIT_BADOPTION are all inside #ifdef SUPPORT_JIT
output/build/pcre2-10.46/src/pcre2_match.c:7007-7090
Interpreter UTF check is skipped only via '!jit_checked_utf' under #ifdef SUPPORT_JIT; without JIT the interpreter always validates the subject
output/build/pcre2-10.46/src/pcre2_match.c:7117-7122
BR2_PACKAGE_PCRE2=y, BR2_PACKAGE_PCRE2_JIT not set
output/.config:3057-3061
--disable-jit is passed when BR2_PACKAGE_PCRE2_JIT is unset
buildroot/package/pcre2/pcre2.mk:25-29
Empty; buildroot/package/pcre2/ has no patch files
output/build/pcre2-10.46/.applied_patches_list
Unmodified 10.46 sources; no 10.48 fix backported
output/build/pcre2-10.46/ChangeLog:10-15
Target pcre2 consumers: libyang (sysrepo/netopeer2), libglib2, nginx - all use the non-JIT interpreter path
output/.config:2740,2919,3337
Version and patches
NVD range 'before 10.48' correctly matches pcre2 10.46; fixed in 10.48. No fix patch or stable backport is applied in this tree (.applied_patches_list empty, ChangeLog ends at 10.46). The vulnerable code requires SUPPORT_JIT, which is disabled via --disable-jit in both target and host builds.
Recommendation
Document as N/A (vulnerable JIT-fallback path not compiled). Upgrade to pcre2 >= 10.48 on the next routine Buildroot bump; no urgent backport required. Re-evaluate if BR2_PACKAGE_PCRE2_JIT is ever enabled.
Open questions
The upstream advisory GHSA-2p8c-ff85-vh9x could not be fetched from the tree; the analysis relies on the CVE description ('after a JIT fallback') and the structure of pcre2_match.c, where all JIT-fallback logic is under #ifdef SUPPORT_JIT.
Members of Kernel Kit decide. Sign in if you are one.