Vulnerability · Published Jun 9, 2022 · Assigned by mitre
CVE-2022-31214
High 7.8
In plain English
A high-severity security flaw in the firejail package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | firejail | 0.9.68-4 | DEBIAN-CVE-2022-31214 |
| Debian:13 | firejail | 0.9.68-4 | DEBIAN-CVE-2022-31214 |
| Debian:14 | firejail | 0.9.68-4 | DEBIAN-CVE-2022-31214 |
| Ubuntu:22.04:LTS | firejail | no fix listed | UBUNTU-CVE-2022-31214 |
| Ubuntu:24.04:LTS | firejail | no fix listed | UBUNTU-CVE-2022-31214 |
| Ubuntu:25.10 | firejail | no fix listed | UBUNTU-CVE-2022-31214 |
| Ubuntu:26.04:LTS | firejail | no fix listed | UBUNTU-CVE-2022-31214 |
| Ubuntu:26.10 | firejail | no fix listed | UBUNTU-CVE-2022-31214 |
Affected products (as reported)
References
- https://firejail.wordpress.com/download-2/release-notes/
- https://www.openwall.com/lists/oss-security/2022/06/08/10
- DSA-5167 vendor-advisory
- [debian-lts-announce] 20220629 [SECURITY] [DLA 3061-1] firejail security update mailing-list
- FEDORA-2022-7ecd36b131 vendor-advisory
- FEDORA-2022-e8e9b50a33 vendor-advisory
- FEDORA-2022-827d9ce8ac vendor-advisory
- GLSA-202305-19 vendor-advisory