Podman: kernel: containers in shared ipc namespace are vulnerable to denial of service attack
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/containers/podman/v5Go | <= 5.2.0 | — |
github.com/containers/podmanGo | <= 5.2.0 | — |
github.com/containers/podman/v2Go | <= 5.2.0 | — |
github.com/containers/podman/v3Go | <= 5.2.0 | — |
github.com/containers/podman/v4Go | <= 5.2.0 | — |
Affected products
13- osv-coords12 versionspkg:apk/chainguard/falco-no-driverpkg:apk/chainguard/podmanpkg:apk/chainguard/podman-docpkg:apk/chainguard/podman-fipspkg:apk/wolfi/falco-no-driverpkg:apk/wolfi/podmanpkg:apk/wolfi/podman-docpkg:golang/github.com/containers/podmanpkg:golang/github.com/containers/podman/v2pkg:golang/github.com/containers/podman/v3pkg:golang/github.com/containers/podman/v4pkg:golang/github.com/containers/podman/v5
< 0+ 11 more
- (no CPE)range: < 0
- (no CPE)range: < 5.6.2-r2
- (no CPE)range: < 5.6.2-r2
- (no CPE)range: < 6.0.0-r0
- (no CPE)range: < 0
- (no CPE)range: < 5.6.2-r2
- (no CPE)range: < 5.6.2-r2
- (no CPE)range: <= 5.2.0
- (no CPE)range: <= 5.2.0
- (no CPE)range: <= 5.2.0
- (no CPE)range: <= 5.2.0
- (no CPE)range: <= 5.2.0
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-rpcc-p8xm-rc6pghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-3056ghsaADVISORY
- access.redhat.com/security/cve/CVE-2024-3056ghsavdb-entryx_refsource_REDHATWEB
- bugzilla.redhat.com/show_bug.cgighsaissue-trackingx_refsource_REDHATWEB
- pkg.go.dev/vuln/GO-2024-3042ghsaWEB
- security.netapp.com/advisory/ntap-20241227-0002ghsaWEB
News mentions
0No linked articles in our index yet.