Reach podman · 4 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
A flaw was found in Podman. This issue may allow an attacker to create a specially crafted container that, when configured to share the same IPC with at least one other container, can create a large number of IPC resources in /dev/shm. The malicious container will continue to exhaust resources until it is out-of-memory (OOM) killed. While the malicious container's cgroup will be removed, the IPC resources it created are not. Those resources are tied to the IPC namespace that will not be removed until all containers using it are stopped, and one non-malicious container is holding the namespace open. The malicious container is restarted, either automatically or by attacker control, repeating the process and increasing the amount of memory consumed. With a container configured to restart always, such as podman run --restart=always, this can result in a memory-based denial of service of the system.
Published 2024-08-02NVD
CVSS 3.1Network · low privileges · user interaction
How it is reached
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- Low
- User interaction
- Required
What it costs
- Confidentiality
- High
- Integrity
- None
- Availability
- High
- Scope
- Changed
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:H
Fable 5.1 · medium confidence · 2026-11-05
podman 4.9.5 is built into the image and the IPC-namespace-sharing path the CVE describes (--ipc=container:X / pod-shared IPC joining another container's IPC ns and ShmDir) is present unmodified in pkg/specgen/generate/namespaces.go; the two Infix patches touch only image pull retry and syslog logging, so no fix is present.
However, on a shipped device containers are only created by confd through /usr/sbin/container, whose podman create argument list never includes --ipc, --pod or any namespace-sharing flag, and the infix-containers YANG model and the CLI container run command expose no IPC/pod option, so every operator-created container gets its own private IPC namespace and its own size-limited /dev/shm. Reaching the vulnerable path therefore requires a root shell on the device to run podman create --ipc=container:... by hand, which is outside the product's management interfaces.
Note that the precondition for the CVE's resource leak (a second container holding the IPC namespace open) is exactly the thing the product cannot configure, even though restart-policy defaults to always.
Evidence 10
BR2_PACKAGE_PODMAN=y, version 4.9.5 selected for the target image (podman is an Infix-owned package, used by confd's container feature)
output/.config:5248-5251 / package/podman/podman.mk:7
Only two patches applied: pull-retry (vendor/.../copier.go) and syslog log driver (libpod log/options files). Neither touches IPC/shm namespace handling; no CVE-2024-3056 fix backported
output/build/podman-4.9.5/.applied_patches_list; patches/podman/4.9.5/0001-*.patch, 0002-*.patch
Vulnerable path present: `specgen.FromContainer`/`FromPod` cases join another container's IPC ns via WithIPCNSFrom and reuse its ShmDir; no additional limit or cleanup logic
output/build/podman-4.9.5/pkg/specgen/generate/namespaces.go:151-185
Each container with its own ShmDir gets a tmpfs with mode=1777,size=ShmSize; shared-IPC containers skip this and reuse the donor's namespace (the CVE scenario)
output/build/podman-4.9.5/libpod/container_internal.go:1570-1580
Wrapper builds `podman create` with --read-only --replace --cgroups=enabled --cgroupns=host --restart=$restart ... --net; no --ipc, --pod or --shm-size option is ever passed (rg for 'ipc' in the script returns nothing)
package/confd/container:440-483
confd only emits --privileged, -r <restart>, -e, --net, -p, -v/-m, resource limits; no IPC namespace option generated from YANG
src/confd/src/containers.c:137-138, 274-281
YANG container model has restart-policy (default always), privileged, network host/interface; there is no leaf for ipc mode or pods
src/confd/yang/confd/infix-containers.yang:123-137, 293-297, 308
CLI `container run IMAGE [CMD]` passes only image, command and port flags to the wrapper; no IPC option
src/klish-plugin-infix/xml/containers.xml:123-140
Only network_backend=cni and seccomp_profile=unconfined set; ipcns default not overridden, so each container gets a private (shareable but unshared) IPC namespace
output/target/etc/containers/containers.conf
Only mstpd, netconf, rauc enabled by default; no container is started in the factory-default configuration
board/common/rootfs/etc/finit.d/enabled/
Version and patches
NVD/Red Hat list podman 4.9.5 as affected and no upstream fix commit could be verified from this offline tree (open question below). Source in tree is vanilla v4.9.5 with Infix patches 0001-Disable-pull-retry and 0002-Add-log-driver-for-syslog, neither of which touches the IPC/shm sharing code. Treated as affected.
Recommendation
Document as not applicable in the default product (no management-interface path to IPC-namespace sharing); pick up the upstream fix with the next planned podman upgrade rather than backporting now. Re-evaluate if a future YANG/CLI feature adds pods, --ipc, or arbitrary podman flags to the container model.
Open questions
The exact upstream fix commit and fixed version could not be confirmed offline (NVD/Red Hat treat 4.9.x as affected; Red Hat may have deferred the fix for some products). If upstream has since marked this as a kernel/limitation issue with no podman fix, the recommendation stands unchanged since the path is unreachable here. Confirm no other Infix component (e.g. future pod support in confd) adds --ipc/--pod when the container feature evolves.
Members of Kernel Kit decide. Sign in if you are one.