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

VectorAV: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

Weakness Enumeration

Related Identifiers

ALT-PU-2023-1483
ALT-PU-2023-1561
ALT-PU-2024-11110
BDU:2022-04053
CVE-2022-31214
DLA-3061-1
DSA-5167-1
MGASA-2022-0348
OPENSUSE-SU-2022:10015-1
OPENSUSE-SU-2022:10016-1
OPENSUSE-SU-2024:12136-1

Affected Products

Alt Linux
Astra Linux
Firejail