Skip to content
OpenAdvisories
Medium · 5.9 CVE-2025-27612 EUVD-2025-7244GHSA-5w4j-f78p-4wh9

Libcontainer is affected by capabilities elevation

Published Mar 21, 2025 · Updated Mar 21, 2025 · Assigned by GitHub_M

Description

libcontainer is a library for container control. Prior to libcontainer 0.5.3, while creating a tenant container, the tenant builder accepts a list of capabilities to be added in the spec of tenant container. The logic here adds the given capabilities to all capabilities of main container if present in spec, otherwise simply set provided capabilities as capabilities of the tenant container. However, setting inherited caps in any case for tenant container can lead to elevation of capabilities, similar to CVE-2022-29162. This does not affect youki binary itself. This is only applicable if you are using libcontainer directly and using the tenant builder.

Affected products

VendorProductAffectedFixed
youki-dev youki < 0.5.3 —

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.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250327T184518-1.1 openSUSE-SU-2025:14937-1

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io libcontainer < 0.5.3 0.5.3 GHSA-5w4j-f78p-4wh9

Advisories 1

References