Vulnerability · Published Aug 2, 2024 · Assigned by redhat
CVE-2024-3056Podman: kernel: containers in shared ipc namespace are vulnerable to denial of service attack
High 7.7
In plain English
A high-severity uncontrolled resource consumption in podman. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 46% of all known vulnerabilities).
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/containers/podman | no fix listed | GHSA-rpcc-p8xm-rc6p |
| Go | github.com/containers/podman | no fix listed | GO-2024-3042 |
| Go | github.com/containers/podman/v2 | no fix listed | GO-2024-3042 |
| Go | github.com/containers/podman/v2 | no fix listed | GHSA-rpcc-p8xm-rc6p |
| Go | github.com/containers/podman/v3 | no fix listed | GO-2024-3042 |
| Go | github.com/containers/podman/v3 | no fix listed | GHSA-rpcc-p8xm-rc6p |
| Go | github.com/containers/podman/v4 | no fix listed | GHSA-rpcc-p8xm-rc6p |
| Go | github.com/containers/podman/v4 | no fix listed | GO-2024-3042 |
| Go | github.com/containers/podman/v5 | no fix listed | GO-2024-3042 |
| Go | github.com/containers/podman/v5 | no fix listed | GHSA-rpcc-p8xm-rc6p |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| podman | 5.0.0 | |
| Red Hat | Red Hat Enterprise Linux 10 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat OpenShift Container Platform 3.11 | see references |
| Red Hat | Red Hat OpenShift Container Platform 4 | see references |
Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:H
References
- https://access.redhat.com/security/cve/CVE-2024-3056 vdb-entry, x_refsource_REDHAT
- RHBZ#2270717 issue-tracking, x_refsource_REDHAT
- https://security.netapp.com/advisory/ntap-20241227-0002/