CVE-2022-27652 Incorrect Default Permissions in CRI-O
Attackers with access to programs having inheritable capabilities can elevate privileges to the permitted set during execve in cri-o containers.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-27652?
CVE-2022-27652 is a medium-severity vulnerability in Fedoraproject Fedora, published on 18 Apr 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A flaw was found in cri-o, where containers were incorrectly started with non-empty default permissions. A vulnerability was found in Moby (Docker Engine) where containers 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-27652?
3 open source packages ship an affected version, including github.com/cri-o/cri-o. It affects 4 products.
| Package | Affected | Fixed in |
|---|---|---|
github.com/cri-o/cri-o Go | All versions | 1.24.0 |
github.com/cri-o/cri-o Go | All versions | 1.24.0 |
github.com/cri-o/cri-o Go | All versions | 1.24.0 |
Linux distribution packages (5)
cri-o Red Hat:openshift:4.9::el7 | All versions | 0:1.22.5-7.rhaos4.9.git3dbcd3c.el7 |
cri-o-debuginfo Red Hat:openshift:4.9::el7 | All versions | 0:1.22.5-7.rhaos4.9.git3dbcd3c.el7 |
cri-o Red Hat:openshift:4.9::el8 | All versions | 0:1.22.5-7.rhaos4.9.git3dbcd3c.el8 |
cri-o-debuginfo Red Hat:openshift:4.9::el8 | All versions | 0:1.22.5-7.rhaos4.9.git3dbcd3c.el8 |
cri-o-debugsource Red Hat:openshift:4.9::el8 | All versions | 0:1.22.5-7.rhaos4.9.git3dbcd3c.el8 |
Products include Fedoraproject Fedora, Kubernetes Cri-O, Mobyproject Moby, Redhat Openshift Container Platform.
How do I fix CVE-2022-27652?
Upgrade github.com/cri-o/cri-o to 1.24.0 or later.
Is CVE-2022-27652 being exploited?
There is no known exploitation of CVE-2022-27652 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as GHSA-4hj2-r2pm-3hc6, GO-2022-0426, RHBA-2022:5433.