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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | podman | 5.0.0 | — |
| Red Hat | Red Hat Enterprise Linux 10 | — | — |
| Red Hat | Red Hat Enterprise Linux 7 | — | — |
| Red Hat | Red Hat Enterprise Linux 8 | — | — |
| Red Hat | Red Hat Enterprise Linux 9 | — | — |
| Red Hat | Red Hat OpenShift Container Platform 3.11 | — | — |
| Red Hat | Red Hat OpenShift Container Platform 4 | — | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | libpod | No fix yet | — |
| Ubuntu Pro 22.04 LTS | libpod | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | podman | 5.6.1-2 | — |
| Azure Linux 2 (CBL-Mariner) | podman | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | podman | 5.6.2-r2 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/containers/podman | <= 5.2.0 | — | GHSA-rpcc-p8xm-rc6p |
| Go | github.com/containers/podman | all versions | — | GO-2024-3042 |
| Go | github.com/containers/podman/v2 | <= 5.2.0 | — | GHSA-rpcc-p8xm-rc6p |
| Go | github.com/containers/podman/v2 | all versions | — | GO-2024-3042 |
| Go | github.com/containers/podman/v3 | <= 5.2.0 | — | GHSA-rpcc-p8xm-rc6p |
| Go | github.com/containers/podman/v3 | all versions | — | GO-2024-3042 |
| Go | github.com/containers/podman/v4 | <= 5.2.0 | — | GHSA-rpcc-p8xm-rc6p |
| Go | github.com/containers/podman/v4 | all versions | — | GO-2024-3042 |
| Go | github.com/containers/podman/v5 | <= 5.2.0 | — | GHSA-rpcc-p8xm-rc6p |
| Go | github.com/containers/podman/v5 | all versions | — | GO-2024-3042 |
Advisories 1
- WID-SEC-2024-1766 Podman: Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Aug 5, 2024
References
- https://access.redhat.com/security/cve/CVE-2024-3056 vdb-entry
- RHBZ#2270717 issue-tracking