ubuntu-cve-2022-29162
Vulnerability from osv_ubuntu
runc is a CLI tool for spawning and running containers on Linux according to the OCI specification. A bug was found in runc prior to version 1.1.2 where runc exec --cap created processes with non-empty inheritable Linux process capabilities, creating an atypical Linux environment and enabling programs with inheritable file capabilities to elevate those capabilities to the permitted set during execve(2). This bug did not affect the container security sandbox as the inheritable set never contained more capabilities than were included in the container's bounding set. This bug has been fixed in runc 1.1.2. This fix changes runc exec --cap behavior such that the additional capabilities granted to the process being executed (as specified via --cap arguments) do not include inheritable capabilities. In addition, runc spec is changed to not set any inheritable capabilities in the created example OCI spec (config.json) file.
{
"affected": [
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "golang-github-opencontainers-runc-dev",
"binary_version": "1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm4"
},
{
"binary_name": "runc",
"binary_version": "1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm4"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "runc",
"purl": "pkg:deb/ubuntu/runc@1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm4?arch=source\u0026distro=esm-apps/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm4"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.0.8+dfsg-2",
"0.1.1-0ubuntu5~16.04",
"1.0.0~rc1-0ubuntu1~16.04",
"1.0.0~rc1-0ubuntu2~16.04.1",
"1.0.0~rc1-0ubuntu2~16.04.1.1",
"1.0.0~rc2-0ubuntu2~16.04.1",
"1.0.0~rc2+docker1.12.6-0ubuntu1~16.04.1",
"1.0.0~rc2+docker1.13.1-0ubuntu1~16.04.1",
"1.0.0~rc2+docker1.13.1-0ubuntu1~16.04.2",
"1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.3",
"1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4",
"1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm1",
"1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm2"
]
}
],
"aliases": [],
"details": "runc is a CLI tool for spawning and running containers on Linux according to the OCI specification. A bug was found in runc prior to version 1.1.2 where `runc exec --cap` created processes with non-empty inheritable Linux process capabilities, creating an atypical Linux environment and enabling programs with inheritable file capabilities to elevate those capabilities to the permitted set during execve(2). This bug did not affect the container security sandbox as the inheritable set never contained more capabilities than were included in the container\u0027s bounding set. This bug has been fixed in runc 1.1.2. This fix changes `runc exec --cap` behavior such that the additional capabilities granted to the process being executed (as specified via `--cap` arguments) do not include inheritable capabilities. In addition, `runc spec` is changed to not set any inheritable capabilities in the created example OCI spec (`config.json`) file.",
"id": "UBUNTU-CVE-2022-29162",
"modified": "2025-09-08T16:50:12Z",
"published": "2022-05-17T21:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2022-29162"
},
{
"type": "REPORT",
"url": "https://www.openwall.com/lists/oss-security/2022/05/12/1"
},
{
"type": "REPORT",
"url": "https://github.com/opencontainers/runc/commit/98fe566c527479195ce3c8167136d2a555fe6b65"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-6088-2"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2022-29162"
}
],
"related": [
"USN-6088-2"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
"type": "CVSS_V3"
},
{
"score": "low",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2022-29162"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.