bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-55686

5.3medium

podman4.9.5 · 4.5.0in 4 of 4 releases

Reach podman · 4 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

v25.03.14.5.0
v26.01.04.9.5
v26.09.04.9.5
v26.10.0latest4.9.5
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

Podman is a tool for managing OCI containers and pods. From 3.0.0 until 5.7.1, running a malicious container image where the WORKDIR path contains a symlink can create a directory or modify ownership on the host filesystem. Modified ownership is less likely to happen as that requires help from an untrusted/malicious process that mutates the host filesystem tree during dereferencing of the WORKDIR path, to trigger a race condition. This vulnerability is fixed in 5.7.1.

Published 2026-06-26NVD

CVSS 3.1Network · no privileges · no user interaction

How it is reached

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

What it costs

Confidentiality
None
Integrity
Low
Availability
None
Scope
Unchanged

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

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

Fable 5.1 · high confidence · 2026-11-05

podman 4.9.5 in this tree contains the unfixed WORKDIR handling: libpod/container_internal_common.go resolveWorkDir() computes the host path by plain filepath.Join (container_path_resolution.go:41) and then calls os.MkdirAll/os.Chown on it, so an image whose WORKDIR traverses a symlink can create a directory (or, racily, chown) on the host rootfs.

Neither Infix patch (0001-Disable-pull-retry, 0002-Add-log-driver-for-syslog) touches this code and there is no stable backport in 4.9.5.

No container runs in the factory-default configuration (finit.d/enabled has only mstpd/netconf/rauc; container@.conf is only in available/), but an operator can create and start containers as root through the infix-containers YANG model (containers/container{name,image}) over NETCONF/RESTCONF or via the CLI 'container' command; the /usr/sbin/container wrapper does not pass --workdir, so the image's WORKDIR is used with CreateWorkingDir=true, hitting the vulnerable MkdirAll path.

Impact is bounded by the fact that the operator chooses which images to run; a malicious or compromised image/registry is required.

Evidence 12
  1. Unfixed code: os.Stat/os.MkdirAll(resolvedWorkdir, 0755)/os.Chown on a host path derived from the image WORKDIR; no openat2/MkdirAllHandle-based safe resolution (upstream fix d18e44e9 absent).

    output/build/podman-4.9.5/libpod/container_internal_common.go:742-798 (resolveWorkDir)

  2. For a path not on a volume/bind mount, host path is simply filepath.Join(mountPoint, path); symlinks inside the image rootfs are not confined, so MkdirAll can follow them out of the container root.

    output/build/podman-4.9.5/libpod/container_path_resolution.go:38-109 (resolvePath)

  3. When no --workdir is given, WORKDIR is taken from the image and WithCreateWorkingDir() is set, enabling the MkdirAll/Chown branch.

    output/build/podman-4.9.5/pkg/specgen/generate/container_create.go:509-513

  4. resolveWorkDir() is called on every container init/start.

    output/build/podman-4.9.5/libpod/container_internal.go:1028

  5. Only 0001-Disable-pull-retry.patch and 0002-Add-log-driver-for-syslog.patch are applied; neither modifies workdir handling.

    output/build/podman-4.9.5/.applied_patches_list; patches/podman/4.9.5/

  6. RawVersion = "4.9.5", inside the affected range 3.0.0 – <5.7.1.

    output/build/podman-4.9.5/version/rawversion/version.go

  7. BR2_PACKAGE_PODMAN=y: podman is selected for the target image (not merely a build dependency).

    configs/x86_64_defconfig:180; output/.config:5248

  8. With podman selected, confd is built with --enable-containers and installs /usr/sbin/container and finit template container@.conf (into available/).

    package/confd/confd.mk:22-23,135-136

  9. Only mstpd.conf, netconf.conf, rauc.conf enabled by default; no container instance runs in factory configuration.

    board/common/rootfs/etc/finit.d/enabled/

  10. YANG nodes containers/container[name]/image (and enabled, default true) let an operator define a container via NETCONF/RESTCONF.

    src/confd/yang/confd/infix-containers.yang:164-185

  11. confd generates a script running 'container create <name> <image>'; the wrapper does 'podman pull', 'podman create' (no --workdir) and 'podman start' as root under finit.

    src/confd/src/containers.c:316-322 and package/confd/container:277,483,676

  12. CLI 'container' command exposes container management to operators.

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

Version and patches

Affected range per advisory: podman >=3.0.0, <5.7.1; fixed in 5.7.1 (commit d18e44e9). This build is 4.9.5 with no backport of the fix; the two Infix patches applied are unrelated (pull retry, syslog log driver). CPE/product mapping is correct.

Recommendation

Backport upstream fix d18e44e9 (safe WORKDIR creation via openat2/securejoin handle-based MkdirAll and fd-based chown) to the 4.9.5 package, or plan an upgrade to podman >=5.7.1. Until then document that only operator-configured, untrusted container images can trigger it (integrity-only, directory creation on host); recommend operators pull images only from trusted sources and use the YANG checksum leaf.

Open questions

The upstream fix commit itself could not be fetched (no network); the absence of the fix was established by inspecting the code (plain os.MkdirAll/os.Chown, no MkdirAllHandle/openat2 usage in libpod). Whether a stable branch of 4.9.x ever received a backport is irrelevant here since the tree is unpatched.

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