CVE-2022-31214 Privilege escalation in n/a
A local attacker can exploit a privilege context switching flaw in Firejail to gain root privileges by manipulating namespaces and executing setuid binaries.
- 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-31214?
CVE-2022-31214 is a high-severity vulnerability in Debian Debian Linux, published on 9 Jun 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A Privilege Context Switching issue was discovered in join.c in Firejail 0.9.68. By crafting a bogus Firejail container that is accepted by the Firejail setuid-root program as a join target, a local attacker can enter an environment in which the Linux user namespace is still the initial user namespace, the NO_NEW_PRIVS prctl is not activated, and the entered mount namespace is under the attacker's control. In this way, the filesystem layout can be adjusted to gain root privileges through execution of available setuid-root binaries such as su or sudo.
Weakness: CWE-269
Which versions are affected by CVE-2022-31214?
It affects 3 products.
Linux distribution packages (4)
firejail SUSE:Package Hub 15 SP3 | All versions | 0.9.70-bp153.2.6.1 |
firejail SUSE:Package Hub 15 SP4 | All versions | 0.9.70-bp154.2.3.1 |
firejail openSUSE:Leap 15.3 | All versions | 0.9.70-bp153.2.6.1 |
firejail openSUSE:Leap 15.4 | All versions | 0.9.70-bp154.2.3.1 |
Products include Debian Debian Linux, Fedoraproject Fedora, Firejail Project Firejail.
How do I fix CVE-2022-31214?
Apply the vendor's patch.
Is CVE-2022-31214 being exploited?
There is no known exploitation of CVE-2022-31214 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2022-31214, DLA-3061-1, DSA-5167-1, GHSA-m2xv-wgqg-4gxh, MGASA-2022-0348, UBUNTU-CVE-2022-31214 and 3 more.