bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2023-33460

6.5medium

yajl2.1.0in 4 of 4 releases

Reach yajl · 4 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

v25.03.12.1.0
v26.01.02.1.0
v26.09.02.1.0
v26.10.0latest2.1.0
aarch64_minimal
x86_64
aarch64_minimal–
x86_64AUsed when enabled · auto
aarch64_minimal–
x86_64AUsed when enabled · auto
aarch64_minimal–
x86_64AUsed when enabled · auto
aarch64_minimal–
x86_64AUsed when enabled

Description · NVD

There's a memory leak in yajl 2.1.0 with use of yajl_tree_parse function. which will cause out-of-memory in server and cause crash.

Published 2023-06-06NVD

CVSS 3.1Network · no privileges · user interaction

How it is reached

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required

What it costs

Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged

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

References 7
Review Av26.10.0x86_64Used when enabled✓ accepted by a member, 2026-11-17 · settles 4 of 4

Fable 5.1 · high confidence · 2026-11-05

The system libyajl 2.1.0 in this build is unpatched: yajl_tree_parse's error path (output/build/yajl-2.1.0/src/yajl_tree.c:439-448) frees only the handle and never drains ctx.stack, which is exactly the leak CVE-2023-33460 describes; none of the four Buildroot patches touch yajl_tree.c.

yajl is pulled in solely by crun (selected by podman), and crun is linked against the system libyajl.so.2 with --disable-embedded-yajl, so its fixed bundled copy is not used.

crun calls yajl_tree_parse on OCI config.json/process JSON and its own state files; nothing runs containers in the factory configuration (no finit service, no factory.d entry), but an operator can enable containers via the infix-containers YANG model or the CLI "container" commands.

Exposure is a per-invocation leak in a short-lived runtime process on operator-supplied JSON, so practical impact is low.

Evidence 12
  1. yajl_tree_parse error path only calls yajl_free(handle) and returns NULL; no loop freeing ctx.stack/ctx.root — the upstream fix (issue #250) is absent

    output/build/yajl-2.1.0/src/yajl_tree.c:439-448

  2. Only four build-system patches (library naming, shared-lib cmake, libm linking); none modify yajl_tree.c

    output/build/yajl-2.1.0/.applied_patches_list

  3. BR2_PACKAGE_YAJL=y — package selected for target

    output/.config:2560

  4. yajl is pulled in by crun, not selected directly

    buildroot/package/crun/Config.in (select BR2_PACKAGE_YAJL # libocispec)

  5. BR2_PACKAGE_PODMAN=y selects BR2_PACKAGE_CRUN as runtime dependency

    package/podman/Config.in:8 and configs/x86_64_defconfig:180

  6. crun configured with --disable-embedded-yajl and FOUND_LIBS='-lcap -lyajl -latomic' — links the system (unfixed) libyajl

    output/build/crun-1.18.2/config.log:804,1022

  7. crun's bundled yajl copy contains the fix (while(ctx.stack) pop/free + yajl_tree_free(ctx.root)) but is not used in this build

    output/build/crun-1.18.2/libocispec/yajl/src/yajl_tree.c:476-480

  8. libyajl.so.2.1.0 installed and crun dynamically linked to it (target lib dir in this artifact is pruned, so manifest used)

    output/target/usr/bin/crun (NEEDED libyajl.so.2); output/build/yajl-2.1.0/install_manifest.txt

  9. yajl_tree_parse called on OCI config.json, exec process file, update resources JSON and crun's own status file

    output/build/crun-1.18.2/src/libcrun/utils.c:1845, status.c:358, container.c:3643/3832; libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3789

  10. No podman/crun/container service enabled by default and no container entries in factory config

    board/common/rootfs/etc/finit.d/enabled/ and src/confd/share/factory.d/

  11. Operator enables containers via /infix-containers:containers/container[name] (leaf enabled default true); confd generates scripts invoking podman -> crun

    src/confd/yang/confd/infix-containers.yang:164-168 and src/confd/src/containers.c:21,119-120,493

  12. CLI 'container' command group (load, exec, connect, prune) drives podman/crun

    src/klish-plugin-infix/xml/containers.xml:37-70

Version and patches

NVD range: yajl 2.1.0 (latest release; no fixed upstream release exists, fix only in master / distro patches, e.g. Debian 2.1.0-3+deb11u2). Source in tree is unmodified 2.1.0 yajl_tree.c without the ctx.stack cleanup. Buildroot patches 0001-0004 are build-system only. No IGNORE_CVES. crun 1.18.2's embedded yajl has the fix but --disable-embedded-yajl means it is not compiled in.

Recommendation

Low priority backport: add the upstream yajl_tree_parse cleanup hunk (lloyd/yajl issue #250 / Debian patch) as a Buildroot patch for yajl, or alternatively build crun with its embedded (fixed) yajl. Not urgent: the leak only occurs on malformed JSON passed to crun, which is a short-lived process invoked by podman with operator-supplied container specs; it is not reachable from a network interface without management credentials, and a leak in a process that exits immediately cannot cause the sustained OOM the CVE describes.

Open questions

The output/target tree in this artifact has been pruned of shared libraries, so presence of /usr/lib/libyajl.so.2 in the final image was inferred from yajl's install_manifest.txt and crun's NEEDED entry rather than observed directly. Whether podman itself (Go) or any other target binary links libyajl was not verifiable for the same reason; Buildroot metadata shows only crun depends on it in this configuration.

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