Skip to content

Podman vulnerable to memory-based denial of service

Moderate severity GitHub Reviewed Published Aug 2, 2024 to the GitHub Advisory Database • Updated Aug 7, 2024

Package

gomod github.com/containers/podman (Go)

Affected versions

<= 5.2.0

Patched versions

None
gomod github.com/containers/podman/v2 (Go)
<= 5.2.0
None
gomod github.com/containers/podman/v3 (Go)
<= 5.2.0
None
gomod github.com/containers/podman/v4 (Go)
<= 5.2.0
None
gomod github.com/containers/podman/v5 (Go)
<= 5.2.0
None

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.

References

Published by the National Vulnerability Database Aug 2, 2024
Published to the GitHub Advisory Database Aug 2, 2024
Reviewed Aug 5, 2024
Last updated Aug 7, 2024

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
High
Privileges required
Low
User interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:H

EPSS score

0.043%
(10th percentile)

Weaknesses

CVE ID

CVE-2024-3056

GHSA ID

GHSA-rpcc-p8xm-rc6p

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.