CVE-2022-27650 Privilege escalation in crun

High 7.5 Published Updated

Attackers with access to programs with inheritable file capabilities can elevate privileges within containers due to incorrect default permission handling in crun and Docker.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-27650?

CVE-2022-27650 is a high-severity vulnerability in Fedoraproject Fedora, published on 4 Apr 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A flaw was found in crun where containers were incorrectly started with non-empty default permissions. A vulnerability was found in Moby (Docker Engine) where containers were started incorrectly with non-empty inheritable Linux process capabilities. This flaw allows an attacker with access to programs with inheritable file capabilities to elevate those capabilities to the permitted set when execve(2) runs.

Weakness: CWE-276

Which versions are affected by CVE-2022-27650?

It affects 4 products.

Linux distribution packages (40)
buildah AlmaLinux:8All versions1.19.9-3.module_el8.6.0+2876+9ed4eae2
buildah-tests AlmaLinux:8All versions1.19.9-3.module_el8.6.0+2876+9ed4eae2
cockpit-podman AlmaLinux:8All versions29-2.module_el8.6.0+2876+9ed4eae2
conmon AlmaLinux:8All versions2:2.0.26-1.module_el8.6.0+2876+9ed4eae2
container-selinux AlmaLinux:8All versions2:2.178.0-2.module_el8.6.0+2876+9ed4eae2
containernetworking-plugins AlmaLinux:8All versions0.9.1-1.module_el8.6.0+2876+9ed4eae2
containers-common AlmaLinux:8All versions1:1.2.4-1.module_el8.6.0+2876+9ed4eae2
crit AlmaLinux:8All versions3.15-1.module_el8.6.0+2876+9ed4eae2
criu AlmaLinux:8All versions3.15-1.module_el8.6.0+2876+9ed4eae2
crun AlmaLinux:8All versions0.18-3.module_el8.6.0+2876+9ed4eae2
fuse-overlayfs AlmaLinux:8All versions1.4.0-2.module_el8.6.0+2876+9ed4eae2
libslirp AlmaLinux:8All versions4.3.1-1.module_el8.6.0+2876+9ed4eae2
libslirp-devel AlmaLinux:8All versions4.3.1-1.module_el8.6.0+2876+9ed4eae2
oci-seccomp-bpf-hook AlmaLinux:8All versions1.2.0-3.module_el8.6.0+2876+9ed4eae2
podman AlmaLinux:8All versions3.0.1-8.module_el8.6.0+2876+9ed4eae2
podman-catatonit AlmaLinux:8All versions3.0.1-8.module_el8.6.0+2876+9ed4eae2
podman-docker AlmaLinux:8All versions3.0.1-8.module_el8.6.0+2876+9ed4eae2
podman-plugins AlmaLinux:8All versions3.0.1-8.module_el8.6.0+2876+9ed4eae2
podman-remote AlmaLinux:8All versions3.0.1-8.module_el8.6.0+2876+9ed4eae2
podman-tests AlmaLinux:8All versions3.0.1-8.module_el8.6.0+2876+9ed4eae2
python3-criu AlmaLinux:8All versions3.15-1.module_el8.6.0+2876+9ed4eae2
runc AlmaLinux:8All versions1.0.0-73.rc95.module_el8.6.0+2876+9ed4eae2
skopeo AlmaLinux:8All versions1:1.2.4-1.module_el8.6.0+2876+9ed4eae2
skopeo-tests AlmaLinux:8All versions1:1.2.4-1.module_el8.6.0+2876+9ed4eae2
slirp4netns AlmaLinux:8All versions1.1.8-1.module_el8.6.0+2876+9ed4eae2
toolbox AlmaLinux:8All versions0.0.99.3-1.module_el8.6.0+2876+9ed4eae2
toolbox-tests AlmaLinux:8All versions0.0.99.3-1.module_el8.6.0+2876+9ed4eae2
udica AlmaLinux:8All versions0.2.4-1.module_el8.6.0+2876+9ed4eae2
buildah Red Hat:enterprise_linux:8::appstreamAll versions0:1.19.9-3.module+el8.6.0+14694+4f5132e0
buildah-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:1.19.9-3.module+el8.6.0+14694+4f5132e0
buildah-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:1.19.9-3.module+el8.6.0+14694+4f5132e0
buildah-tests Red Hat:enterprise_linux:8::appstreamAll versions0:1.19.9-3.module+el8.6.0+14694+4f5132e0
buildah-tests-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:1.19.9-3.module+el8.6.0+14694+4f5132e0
cockpit-podman Red Hat:enterprise_linux:8::appstreamAll versions0:29-2.module+el8.6.0+14694+4f5132e0
conmon Red Hat:enterprise_linux:8::appstreamAll versions2:2.0.26-1.module+el8.6.0+14694+4f5132e0
conmon-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions2:2.0.26-1.module+el8.6.0+14694+4f5132e0
conmon-debugsource Red Hat:enterprise_linux:8::appstreamAll versions2:2.0.26-1.module+el8.6.0+14694+4f5132e0
container-selinux Red Hat:enterprise_linux:8::appstreamAll versions2:2.178.0-2.module+el8.6.0+14694+4f5132e0
containernetworking-plugins Red Hat:enterprise_linux:8::appstreamAll versions0:0.9.1-1.module+el8.6.0+14694+4f5132e0
containernetworking-plugins-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:0.9.1-1.module+el8.6.0+14694+4f5132e0

Products include Crun Project Crun, Fedoraproject Fedora, Redhat Enterprise Linux, Redhat Openshift Container Platform.

How do I fix CVE-2022-27650?

Apply the vendor's patch.

Is CVE-2022-27650 being exploited?

There is no known exploitation of CVE-2022-27650 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALSA-2022:1793, CLEANSTART-2024-YM37206, DEBIAN-CVE-2022-27650, GHSA-wr4f-w546-m398, MGASA-2022-0141, RHSA-2022:1793 and 3 more.

Is CVE-2022-27650 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free