Reach pcre2 · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
PCRE2 before 10.48, on 32-bit platforms, has a pcre2_pattern_convert out-of-bounds write when an attacker can provide a large pattern.
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
- High
- Availability
- High
- Scope
- Unchanged
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
Fable 5.1 · high confidence · 2026-11-05
CVE-2026-89157 is an out-of-bounds write in pcre2_pattern_convert that only occurs on 32-bit platforms, where the PCRE2_SIZE (size_t) arithmetic in the output-buffer allocation can wrap.
This Infix image is built for x86_64 (BR2_ARCH_IS_64=y; pcre2 compiled with x86_64-linux-gcc), where size_t is 64 bits and the wrap is unreachable with any realistic pattern. The 10.46 source is unpatched (empty .applied_patches_list, unchecked multiply still at pcre2_convert.c:1151), but the vulnerable condition does not exist on this architecture.
As additional context, the only shipped binary that references pcre2_pattern_convert is the pcre2test harness; nginx, nmap and libyang link libpcre2-8 but never call the convert API.
Evidence 9
BR2_ARCH_IS_64=y, BR2_x86_64=y, BR2_ARCH="x86_64" - target is 64-bit; CVE is scoped to 32-bit platforms
output/.config:24,49,52
pcre2 compiled with x86_64-linux-gcc for host x86_64-buildroot-linux-gnu
output/build/pcre2-10.46/config.log:1526,1666,1668
PCRE2_SIZE is size_t, i.e. 64-bit on this target
output/build/pcre2-10.46/src/pcre2.h.in:528
Unfixed allocation (*bufflenptr + 1)*PCRE2_CODE_UNIT_WIDTH; wraps at ~2^29 on 32-bit but would need 2^61 bytes on 64-bit
output/build/pcre2-10.46/src/pcre2_convert.c:1151-1152
Empty - stock 10.46, no backport of the 10.48 fix
output/build/pcre2-10.46/.applied_patches_list
Only 8-bit library built, JIT disabled; pcre2_convert.c is unconditionally part of libpcre2-8 (Makefile:355,373)
buildroot/package/pcre2/pcre2.mk:18-27
Ships libpcre2-8.so.0.14.0, pcre2grep and pcre2test to the target
output/build/pcre2-10.46/.files-list.txt
Only shipped binary referencing the convert API; nginx, nmap, yanglint/yangre link libpcre2-8 but their sources do not call pcre2_pattern_convert
output/target/usr/bin/pcre2test (string grep for pcre2_pattern_convert)
No service or confd handler invokes pcre2test/pcre2grep or the convert API
board/common/rootfs/etc/finit.conf, finit.d/, src/confd
Version and patches
NVD range 'before 10.48' includes 10.46; fixed in 10.48. No fix present in this tree (no patches applied; pcre2_convert.c:1151 still has the unchecked multiply). The vulnerable condition only exists on 32-bit builds; this image is x86_64.
Recommendation
Document as N/A for the x86_64 image (64-bit platform; CVE is 32-bit only). If Infix ever ships a 32-bit target, the code would be present but only reachable via the pcre2test harness from a root shell, as no shipped consumer uses pcre2_pattern_convert. Pick up pcre2 >= 10.48 on the next routine Buildroot bump; no urgent backport needed.
Open questions
The GHSA advisory and fix commit could not be fetched (no network); the analysis relies on the CVE description's '32-bit platforms' scope plus inspection of the size arithmetic in pcre2_convert.c, which is consistent with it. Shared libraries are absent from output/target/usr/lib in this artifact copy (only recorded in .files-list.txt), so consumer linkage was verified via string references in shipped binaries rather than ELF inspection.
Members of Kernel Kit decide. Sign in if you are one.