CVE-2022-29162Incorrect Default Permissions in runc
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | runc | Fix pending | 1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm4 (Ubuntu Pro) | UBUNTU-CVE-2022-29162 |
| Debian 14 | runc | Fixed | 1.1.3+ds1-1 | DEBIAN-CVE-2022-29162 |
| Debian 13 | runc | Fixed | 1.1.3+ds1-1 | DEBIAN-CVE-2022-29162 |
| Debian 12 | runc | Fixed | 1.1.3+ds1-1 | DEBIAN-CVE-2022-29162 |
| Red Hat Enterprise Linux 9 | runc | Fixed | 4:1.1.4-1.el9 | RHSA-2022:8090 |
| Red Hat Enterprise Linux 8 | aardvark-dns | Fixed | 2:1.1.0-4.module+el8.7.0+16772+33343656 | RHSA-2022:7469 |
| Red Hat Enterprise Linux 8 | buildah | Fixed | 1:1.24.5-2.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | buildah-tests | Fixed | 1:1.24.5-2.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | cockpit-podman | Fixed | 0:46-1.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | conmon | Fixed | 2:2.1.4-1.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | container-selinux | Fixed | 2:2.189.0-1.module+el8.7.0+16772+33343656 | RHSA-2022:7469 |
| Red Hat Enterprise Linux 8 | containernetworking-plugins | Fixed | 1:1.1.1-2.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | containers-common | Fixed | 2:1-35.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | crit | Fixed | 0:3.15-3.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | criu | Fixed | 0:3.15-3.module+el8.7.0+16772+33343656 | RHSA-2022:7469 |
| Red Hat Enterprise Linux 8 | criu-devel | Fixed | 0:3.15-3.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | criu-libs | Fixed | 0:3.15-3.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | crun | Fixed | 0:1.5-1.module+el8.7.0+16772+33343656 | RHSA-2022:7469 |
| Red Hat Enterprise Linux 8 | fuse-overlayfs | Fixed | 0:1.9-1.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | libslirp | Fixed | 0:4.4.0-1.module+el8.7.0+16772+33343656 | RHSA-2022:7469 |
| Red Hat Enterprise Linux 8 | libslirp-devel | Fixed | 0:4.4.0-1.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | netavark | Fixed | 2:1.0.1-35.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | oci-seccomp-bpf-hook | Fixed | 0:1.2.6-1.module+el8.7.0+16772+33343656 | RHSA-2022:7469 |
| Red Hat Enterprise Linux 8 | podman | Fixed | 2:4.0.2-8.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | podman-catatonit | Fixed | 2:4.0.2-8.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | podman-docker | Fixed | 3:4.2.0-1.module+el8.7.0+16772+33343656 | RHSA-2022:7469 |
| Red Hat Enterprise Linux 8 | podman-gvproxy | Fixed | 3:4.2.0-1.module+el8.7.0+16772+33343656 | RHSA-2022:7469 |
| Red Hat Enterprise Linux 8 | podman-plugins | Fixed | 3:4.2.0-1.module+el8.7.0+16772+33343656 | RHSA-2022:7469 |
| Red Hat Enterprise Linux 8 | podman-remote | Fixed | 2:4.0.2-8.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | podman-tests | Fixed | 3:4.2.0-1.module+el8.7.0+16772+33343656 | RHSA-2022:7469 |
| Red Hat Enterprise Linux 8 | python-podman | Fixed | 0:4.0.0-1.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | python3-criu | Fixed | 0:3.15-3.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | python3-podman | Fixed | 0:4.0.0-1.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | runc | Fixed Fix deferred | 1:1.1.4-1.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | skopeo | Fixed | 2:1.6.2-5.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | skopeo-tests | Fixed | 2:1.6.2-5.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | slirp4netns | Fixed | 0:1.2.0-2.module+el8.7.0+16772+33343656 | RHSA-2022:7469 |
| Red Hat Enterprise Linux 8 | toolbox | Fixed | 0:0.0.99.3-0.6.module+el8.7.0+16772+33343656 | RHSA-2022:7469 |
| Red Hat Enterprise Linux 8 | toolbox-tests | Fixed | 0:0.0.99.3-0.5.module+el8.7.0+16520+2db5507d | RHSA-2022:7457 |
| Red Hat Enterprise Linux 8 | udica | Fixed | 0:0.2.6-3.module+el8.7.0+16772+33343656 | RHSA-2022:7469 |
| Red Hat Enterprise Linux 7 | runc | Will not fix Out of support scope | ||
| AlmaLinux 9 | runc | Fixed | 4:1.1.4-1.el9 | ALSA-2022:8090 |
| AlmaLinux 8 | aardvark-dns | Fixed | 2:1.0.1-35.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | buildah | Fixed | 1:1.24.5-2.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | buildah-tests | Fixed | 1:1.24.5-2.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | cockpit-podman | Fixed | 46-1.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | conmon | Fixed | 2:2.1.4-1.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | container-selinux | Fixed | 2:2.189.0-1.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | containernetworking-plugins | Fixed | 1:1.1.1-2.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | containers-common | Fixed | 2:1-35.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | crit | Fixed | 3.15-3.module_el8.6.0+3137+d33c3efb | ALSA-2022:7469 |
| AlmaLinux 8 | criu | Fixed | 3.15-3.module_el8.6.0+3137+d33c3efb | ALSA-2022:7469 |
| AlmaLinux 8 | criu-devel | Fixed | 3.15-3.module_el8.6.0+3137+d33c3efb | ALSA-2022:7469 |
| AlmaLinux 8 | criu-libs | Fixed | 3.15-3.module_el8.6.0+3137+d33c3efb | ALSA-2022:7469 |
| AlmaLinux 8 | crun | Fixed | 1.5-1.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | fuse-overlayfs | Fixed | 1.9-1.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | libslirp | Fixed | 4.4.0-1.module_el8.6.0+2877+8e437bf5 | ALSA-2022:7469 |
| AlmaLinux 8 | libslirp-devel | Fixed | 4.4.0-1.module_el8.6.0+2877+8e437bf5 | ALSA-2022:7469 |
| AlmaLinux 8 | netavark | Fixed | 2:1.0.1-35.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | oci-seccomp-bpf-hook | Fixed | 1.2.5-1.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | podman | Fixed | 2:4.0.2-8.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | podman-catatonit | Fixed | 2:4.0.2-8.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | podman-docker | Fixed | 2:4.0.2-8.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | podman-gvproxy | Fixed | 2:4.0.2-8.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | podman-plugins | Fixed | 2:4.0.2-8.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | podman-remote | Fixed | 2:4.0.2-8.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | podman-tests | Fixed | 2:4.0.2-8.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | python3-criu | Fixed | 3.15-3.module_el8.6.0+2877+8e437bf5 | ALSA-2022:7469 |
| AlmaLinux 8 | python3-podman | Fixed | 4.0.0-1.module_el8.6.0+2877+8e437bf5 | ALSA-2022:7469 |
| AlmaLinux 8 | runc | Fixed | 1:1.1.4-1.module_el8.7.0+3344+484dae7b | ALSA-2022:7469 |
| AlmaLinux 8 | skopeo | Fixed | 2:1.6.2-5.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | skopeo-tests | Fixed | 2:1.6.2-5.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | slirp4netns | Fixed | 1.1.8-2.module_el8.6.0+2877+8e437bf5 | ALSA-2022:7469 |
| AlmaLinux 8 | toolbox | Fixed | 0.0.99.3-0.5.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | toolbox-tests | Fixed | 0.0.99.3-0.5.module_el8.7.0+3344+5bcd850f | ALSA-2022:7469 |
| AlmaLinux 8 | udica | Fixed | 0.2.6-3.module_el8.6.0+3137+d33c3efb | ALSA-2022:7469 |
| Rocky Linux 9 | runc | Fixed | 4:1.1.4-1.el9_1 | RLSA-2022:8090 |
| Rocky Linux 8 | buildah | Fixed | 1:1.24.5-2.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7469 |
| Rocky Linux 8 | cockpit-podman | Fixed | 0:46-1.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7457 |
| Rocky Linux 8 | conmon | Fixed | 2:2.1.4-1.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7469 |
| Rocky Linux 8 | container-selinux | Fixed | 2:2.189.0-1.module+el8.7.0+1076+9b1c11c1 | RLSA-2022:7457 |
| Rocky Linux 8 | containernetworking-plugins | Fixed | 1:1.1.1-2.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7457 |
| Rocky Linux 8 | containers-common | Fixed | 2:1-35.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7469 |
| Rocky Linux 8 | criu | Fixed | 0:3.15-3.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7469 |
| Rocky Linux 8 | crun | Fixed | 0:1.5-1.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7469 |
| Rocky Linux 8 | fuse-overlayfs | Fixed | 0:1.9-1.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7469 |
| Rocky Linux 8 | libslirp | Fixed | 0:4.4.0-1.module+el8.6.0+1054+50b00ff4 | RLSA-2022:7469 |
| Rocky Linux 8 | oci-seccomp-bpf-hook | Fixed | 0:1.2.6-1.module+el8.7.0+1078+e72fcd4f | RLSA-2022:7457 |
| Rocky Linux 8 | podman | Fixed | 2:4.0.2-8.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7469 |
| Rocky Linux 8 | python-podman | Fixed | 0:4.0.0-1.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7469 |
| Rocky Linux 8 | runc | Fixed | 1:1.1.4-1.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7457 |
| Rocky Linux 8 | skopeo | Fixed | 2:1.6.2-5.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7469 |
| Rocky Linux 8 | slirp4netns | Fixed | 0:1.1.8-2.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7457 |
| Rocky Linux 8 | toolbox | Fixed | 0:0.0.99.3-0.6.module+el8.7.0+1078+e72fcd4f | RLSA-2022:7469 |
| Rocky Linux 8 | udica | Fixed | 0:0.2.6-3.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7457 |
| Alpine Linux 3.24 | runc | Fixed | 1.1.2-r0 | ALPINE-CVE-2022-29162 |
| Alpine Linux 3.23 | runc | Fixed | 1.1.2-r0 | ALPINE-CVE-2022-29162 |
| Alpine Linux 3.22 | runc | Fixed | 1.1.2-r0 | ALPINE-CVE-2022-29162 |
| Alpine Linux 3.21 | runc | Fixed | 1.1.2-r0 | ALPINE-CVE-2022-29162 |
| Alpine Linux 3.20 | runc | Fixed | 1.1.2-r0 | ALPINE-CVE-2022-29162 |
| Alpine Linux 3.19 | runc | Fixed | 1.1.2-r0 | ALPINE-CVE-2022-29162 |
| Alpine Linux 3.18 | runc | Fixed | 1.1.2-r0 | ALPINE-CVE-2022-29162 |
| Alpine Linux 3.17 | runc | Fixed | 1.1.2-r0 | ALPINE-CVE-2022-29162 |
| Alpine Linux 3.16 | runc | Fixed | 1.1.2-r0 | ALPINE-CVE-2022-29162 |
| Alpine Linux 3.15 | runc | Fixed | 1.1.2-r0 | ALPINE-CVE-2022-29162 |
| Go library | github.com/opencontainers/runc | Fixed | 1.1.2 | GO-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.
- opencontainers runc: affected: < 1.1.2
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://github.com/opencontainers/runc/security/advisories/GHSA-f3fp-gc8g-vw66
- https://github.com/opencontainers/runc/commit/d04de3a9b72d7a2455c1885fc75eb36d02cd17b5
- https://github.com/opencontainers/runc/releases/tag/v1.1.2
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/D77CKD3AXPMU4PMQIQI5Q74SI4JATNND/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GPQU4YC4AAY54JDXGDQHJEYKSXXG5T2Y/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AVPZBV7ISA7QKRPTC7ZXWKMIQI2HZEBB/
- https://lists.debian.org/debian-lts-announce/2023/03/msg00023.html
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.