PT-2022-3307 · Firejail+2 · Firejail+2
Matthias Gerstner
·
Published
2022-02-07
·
Updated
2025-11-15
·
CVE-2022-31214
CVSS v3.1
7.8
High
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Firejail versions 0.9.68
Description
A Privilege Context Switching issue was discovered in join.c in Firejail. 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.
Recommendations
For Firejail version 0.9.68, as a temporary workaround, consider setting the parameters "join no" and "force-nonewprivs yes" in the firejail configuration (/etc/firejail/firejail.config) to minimize the risk of exploitation.
Update to Firejail version 0.9.70 or later, which fixes the issue.
Fix
Improper Access Control
Improper Privilege Management
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Astra Linux
Firejail