bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-47770

6.8medium

jq1.7.1in 2 of 4 releases

Reach jq · 4 builds in 2 of 4 releases

full reviewcross-check✓ a member decided

v25.03.1not in NVD's range
v26.01.0not in NVD's range
v26.09.01.7.1
v26.10.0latest1.7.1
aarch64_minimal
x86_64
aarch64_minimal–
x86_64–
aarch64_minimal–
x86_64–
aarch64_minimalANot exposed · autox86_64ANot exposed · autoaarch64_minimalANot exposed · autox86_64ANot exposed

Description · NVD

jq is a command-line JSON processor. Prior to 1.8.2, comparing two sufficiently deeply nested arrays with the == operator exhausts the C stack on jq's ordinary command-line surface, resulting in denial of service via stack exhaustion (uncontrolled recursion). The crash occurs in jq's recursive structural comparison code, with the recursion repeating through jvp_array_equal() and jv_equal() in src/jv.c when comparing deeply nested arrays; a nearby sort comparator path through jv_cmp() in src/jv_aux.c overflows the stack at a larger nesting depth from the same missing recursion guard. Anyone running jq comparisons on attacker-controlled deeply nested JSON values, or embedding jq in a context where untrusted data can reach the == comparison path, is affected. This vulnerability is fixed in 1.8.2.

Published 2026-06-25NVD

CVSS 4.0Local · no privileges · passive user interaction

How it is reached

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

What it costs

Confidentiality
None
Integrity
None
Availability
High

What it costs other systems

Confidentiality
None
Integrity
None
Availability
None

CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

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

Fable 5.1 · high confidence · 2026-11-05

jq 1.7.1 in this build still carries the unguarded recursion jv_equal() -> jvp_array_equal() -> jv_equal() (src/jv.c:890-2033) and jv_cmp() (src/jv_aux.c:605); none of the 16 Buildroot patches touch these functions, and the fix only landed upstream in 1.8.2, so the build is affected.

jq is selected in the defconfig and shipped as /usr/bin/jq, but every caller in the product (confd, klish CLI, initramfs, update scripts, udhcpc) runs a fixed, developer-written filter over output of local tools (ip -j, podman inspect, ethtool --json, rauc status, /run/system.json); the one remote source (update feed) is parsed by xmllint, not jq.

Because this build's JSON parser caps input nesting at MAX_PARSING_DEPTH=256 (and paths at 10000 via patch 0006), the stack-exhausting nesting can only be constructed by the jq program itself, which an attacker would need a shell on the device to supply. No finit service, YANG node or CLI command runs jq on attacker-controlled filters or deeply nested data.

Evidence 11
  1. Unbounded mutual recursion with no depth counter; vulnerable code as described by the CVE is present in the patched source

    output/build/jq-1.7.1/src/jv.c:890-903 (jvp_array_equal) and :2001-2033 (jv_equal)

  2. Array lexical compare recurses without a depth guard; second path named in the advisory also present

    output/build/jq-1.7.1/src/jv_aux.c:605 (jv_cmp)

  3. 16 patches applied; grep for jv_equal/jvp_array_equal/jv_cmp in all of them returns nothing, so no backport of the 1.8.2 fix

    output/build/jq-1.7.1/.applied_patches_list; buildroot/package/jq/0001..0016*.patch

  4. CVE-2026-47770 is not listed; Buildroot does not claim it is addressed

    buildroot/package/jq/jq.mk JQ_IGNORE_CVES

  5. jq explicitly selected for the target (not merely a dependency); output/target/usr/bin/jq is installed

    output/.config:745 BR2_PACKAGE_JQ=y; configs/x86_64_defconfig:36

  6. JSON input (stdin, files, --argjson, fromjson) cannot be nested deeper than 256 levels, so deep arrays cannot arrive as data; they must be built by the jq filter

    output/build/jq-1.7.1/src/jv_parse.c:13-14 MAX_PARSING_DEPTH (256)

  7. setpath/getpath/fromstream path construction is also depth-capped in this build

    buildroot/package/jq/0006-limit-path-depth-to-prevent-stack-overflow.patch:28-39 MAX_PATH_DEPTH (10000)

  8. All jq filters using == or select() are fixed strings comparing scalars from local tool output (podman, ethtool, /run/system.json, sfdisk), not attacker-supplied filters

    package/confd/container:969; src/confd/src/ieee802-ethernet-interface.c:134,192; src/confd/bin/gen-hardware:40-42; board/common/initramfs/modules.d/10infix-init/init:220

  9. The only network-fetched data (release feed via curl) is parsed with xmllint/sed; jq only sees running-config and rauc output

    board/common/rootfs/usr/libexec/infix/update-common:53-63

  10. CLI invokes jq only as 'jq -C .' pretty-printer on copy output; no CLI command accepts a user-supplied jq filter

    src/klish-plugin-infix/xml/infix.xml:985-1012

  11. No finit service runs jq as a network-facing or long-lived service (grep for jq returns nothing)

    board/common/rootfs/etc/finit.conf, board/common/rootfs/etc/finit.d/

Version and patches

Affected: jq < 1.8.2 per GHSA-3pgx-frr7-3jxp; fixed in 1.8.2. This build is 1.7.1 plus 16 Buildroot patches (CVE-2024-23337, CVE-2024-53427, CVE-2025-48060, CVE-2026-32316/33947/33948/39979/40164/40612/41256/41257/43894/43896/44777/49839/54679); none adds a depth guard to jv_equal/jvp_array_equal/jv_cmp. NVD CPE jqlang:jq:1.7.1 matches correctly.

Recommendation

Document as not exposed on shipped devices (local DoS of a one-shot jq process requires shell access to supply the filter; impact is a crash of that jq invocation only). Pick up the upstream fix when Buildroot adds a backport patch or bumps jq to >= 1.8.2 as part of routine package maintenance; no urgent backport needed.

Open questions

The exact nesting depth needed to exhaust the stack on the target's default 8 MiB thread stack was not measured (out of scope); the assessment relies on the 256-level parser cap being far below it, which is consistent with the advisory's 'sufficiently deeply nested' wording and the 10000-level limits chosen for sibling fixes.

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