CVEfocus › CVE database › CVE-2022-29162

CVE-2022-29162Incorrect Default Permissions in runc

CVSS 5.9 MediumEPSS 0.4% (higher than 34% of CVEs)Published 2022-05-17Updated 2025-04-23Assigner: GitHub_M

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.

CWE-276

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Go, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

104Fixed
1Fix pending
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 16.04runcFix pending1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm4 (Ubuntu Pro)UBUNTU-CVE-2022-29162
Debian 14runcFixed1.1.3+ds1-1DEBIAN-CVE-2022-29162
Debian 13runcFixed1.1.3+ds1-1DEBIAN-CVE-2022-29162
Debian 12runcFixed1.1.3+ds1-1DEBIAN-CVE-2022-29162
Red Hat Enterprise Linux 9runcFixed4:1.1.4-1.el9RHSA-2022:8090
Red Hat Enterprise Linux 8aardvark-dnsFixed2:1.1.0-4.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8buildahFixed1:1.24.5-2.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8buildah-testsFixed1:1.24.5-2.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8cockpit-podmanFixed0:46-1.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8conmonFixed2:2.1.4-1.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8container-selinuxFixed2:2.189.0-1.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8containernetworking-pluginsFixed1:1.1.1-2.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8containers-commonFixed2:1-35.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8critFixed0:3.15-3.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8criuFixed0:3.15-3.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8criu-develFixed0:3.15-3.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8criu-libsFixed0:3.15-3.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8crunFixed0:1.5-1.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8fuse-overlayfsFixed0:1.9-1.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8libslirpFixed0:4.4.0-1.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8libslirp-develFixed0:4.4.0-1.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8netavarkFixed2:1.0.1-35.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8oci-seccomp-bpf-hookFixed0:1.2.6-1.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8podmanFixed2:4.0.2-8.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8podman-catatonitFixed2:4.0.2-8.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8podman-dockerFixed3:4.2.0-1.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8podman-gvproxyFixed3:4.2.0-1.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8podman-pluginsFixed3:4.2.0-1.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8podman-remoteFixed2:4.0.2-8.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8podman-testsFixed3:4.2.0-1.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8python-podmanFixed0:4.0.0-1.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8python3-criuFixed0:3.15-3.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8python3-podmanFixed0:4.0.0-1.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8runcFixed
Fix deferred
1:1.1.4-1.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8skopeoFixed2:1.6.2-5.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8skopeo-testsFixed2:1.6.2-5.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8slirp4netnsFixed0:1.2.0-2.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8toolboxFixed0:0.0.99.3-0.6.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8toolbox-testsFixed0:0.0.99.3-0.5.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8udicaFixed0:0.2.6-3.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 7runcWill not fix
Out of support scope
AlmaLinux 9runcFixed4:1.1.4-1.el9ALSA-2022:8090
AlmaLinux 8aardvark-dnsFixed2:1.0.1-35.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8buildahFixed1:1.24.5-2.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8buildah-testsFixed1:1.24.5-2.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8cockpit-podmanFixed46-1.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8conmonFixed2:2.1.4-1.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8container-selinuxFixed2:2.189.0-1.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8containernetworking-pluginsFixed1:1.1.1-2.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8containers-commonFixed2:1-35.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8critFixed3.15-3.module_el8.6.0+3137+d33c3efbALSA-2022:7469
AlmaLinux 8criuFixed3.15-3.module_el8.6.0+3137+d33c3efbALSA-2022:7469
AlmaLinux 8criu-develFixed3.15-3.module_el8.6.0+3137+d33c3efbALSA-2022:7469
AlmaLinux 8criu-libsFixed3.15-3.module_el8.6.0+3137+d33c3efbALSA-2022:7469
AlmaLinux 8crunFixed1.5-1.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8fuse-overlayfsFixed1.9-1.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8libslirpFixed4.4.0-1.module_el8.6.0+2877+8e437bf5ALSA-2022:7469
AlmaLinux 8libslirp-develFixed4.4.0-1.module_el8.6.0+2877+8e437bf5ALSA-2022:7469
AlmaLinux 8netavarkFixed2:1.0.1-35.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8oci-seccomp-bpf-hookFixed1.2.5-1.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8podmanFixed2:4.0.2-8.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8podman-catatonitFixed2:4.0.2-8.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8podman-dockerFixed2:4.0.2-8.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8podman-gvproxyFixed2:4.0.2-8.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8podman-pluginsFixed2:4.0.2-8.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8podman-remoteFixed2:4.0.2-8.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8podman-testsFixed2:4.0.2-8.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8python3-criuFixed3.15-3.module_el8.6.0+2877+8e437bf5ALSA-2022:7469
AlmaLinux 8python3-podmanFixed4.0.0-1.module_el8.6.0+2877+8e437bf5ALSA-2022:7469
AlmaLinux 8runcFixed1:1.1.4-1.module_el8.7.0+3344+484dae7bALSA-2022:7469
AlmaLinux 8skopeoFixed2:1.6.2-5.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8skopeo-testsFixed2:1.6.2-5.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8slirp4netnsFixed1.1.8-2.module_el8.6.0+2877+8e437bf5ALSA-2022:7469
AlmaLinux 8toolboxFixed0.0.99.3-0.5.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8toolbox-testsFixed0.0.99.3-0.5.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8udicaFixed0.2.6-3.module_el8.6.0+3137+d33c3efbALSA-2022:7469
Rocky Linux 9runcFixed4:1.1.4-1.el9_1RLSA-2022:8090
Rocky Linux 8buildahFixed1:1.24.5-2.module+el8.7.0+1077+0e4f03d4RLSA-2022:7469
Rocky Linux 8cockpit-podmanFixed0:46-1.module+el8.7.0+1077+0e4f03d4RLSA-2022:7457
Rocky Linux 8conmonFixed2:2.1.4-1.module+el8.7.0+1077+0e4f03d4RLSA-2022:7469
Rocky Linux 8container-selinuxFixed2:2.189.0-1.module+el8.7.0+1076+9b1c11c1RLSA-2022:7457
Rocky Linux 8containernetworking-pluginsFixed1:1.1.1-2.module+el8.7.0+1077+0e4f03d4RLSA-2022:7457
Rocky Linux 8containers-commonFixed2:1-35.module+el8.7.0+1077+0e4f03d4RLSA-2022:7469
Rocky Linux 8criuFixed0:3.15-3.module+el8.7.0+1077+0e4f03d4RLSA-2022:7469
Rocky Linux 8crunFixed0:1.5-1.module+el8.7.0+1077+0e4f03d4RLSA-2022:7469
Rocky Linux 8fuse-overlayfsFixed0:1.9-1.module+el8.7.0+1077+0e4f03d4RLSA-2022:7469
Rocky Linux 8libslirpFixed0:4.4.0-1.module+el8.6.0+1054+50b00ff4RLSA-2022:7469
Rocky Linux 8oci-seccomp-bpf-hookFixed0:1.2.6-1.module+el8.7.0+1078+e72fcd4fRLSA-2022:7457
Rocky Linux 8podmanFixed2:4.0.2-8.module+el8.7.0+1077+0e4f03d4RLSA-2022:7469
Rocky Linux 8python-podmanFixed0:4.0.0-1.module+el8.7.0+1077+0e4f03d4RLSA-2022:7469
Rocky Linux 8runcFixed1:1.1.4-1.module+el8.7.0+1077+0e4f03d4RLSA-2022:7457
Rocky Linux 8skopeoFixed2:1.6.2-5.module+el8.7.0+1077+0e4f03d4RLSA-2022:7469
Rocky Linux 8slirp4netnsFixed0:1.1.8-2.module+el8.7.0+1077+0e4f03d4RLSA-2022:7457
Rocky Linux 8toolboxFixed0:0.0.99.3-0.6.module+el8.7.0+1078+e72fcd4fRLSA-2022:7469
Rocky Linux 8udicaFixed0:0.2.6-3.module+el8.7.0+1077+0e4f03d4RLSA-2022:7457
Alpine Linux 3.24runcFixed1.1.2-r0ALPINE-CVE-2022-29162
Alpine Linux 3.23runcFixed1.1.2-r0ALPINE-CVE-2022-29162
Alpine Linux 3.22runcFixed1.1.2-r0ALPINE-CVE-2022-29162
Alpine Linux 3.21runcFixed1.1.2-r0ALPINE-CVE-2022-29162
Alpine Linux 3.20runcFixed1.1.2-r0ALPINE-CVE-2022-29162
Alpine Linux 3.19runcFixed1.1.2-r0ALPINE-CVE-2022-29162
Alpine Linux 3.18runcFixed1.1.2-r0ALPINE-CVE-2022-29162
Alpine Linux 3.17runcFixed1.1.2-r0ALPINE-CVE-2022-29162
Alpine Linux 3.16runcFixed1.1.2-r0ALPINE-CVE-2022-29162
Alpine Linux 3.15runcFixed1.1.2-r0ALPINE-CVE-2022-29162
Go librarygithub.com/opencontainers/runcFixed1.1.2GO-2022-0452

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.