Skip to content
OpenAdvisories
Unscored CVE-2022-31214 EUVD-2022-52798GHSA-m2xv-wgqg-4gxh

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…

Published Jun 9, 2022 · Updated Aug 3, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 firejail 0.9.68-4 —
Debian 13 firejail 0.9.68-4 —
Debian 12 firejail 0.9.68-4 —
Debian 11 firejail 0.9.64.4-2+deb11u1 DSA-5167-1
Debian 10 firejail 0.9.58.2-2+deb10u3 DSA-5167-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 9 firejail 0.9.58.2-2+deb9u1 DLA-3061-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 firejail No fix yet —
Ubuntu 26.04 LTS firejail No fix yet —
Ubuntu 25.10 firejail No fix yet —
Ubuntu 24.04 LTS firejail No fix yet —
Ubuntu 22.04 LTS firejail No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS firejail No fix yet —
Ubuntu 18.04 LTS firejail No fix yet —
Ubuntu 16.04 LTS firejail No fix yet —
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP4 firejail 0.9.70-bp154.2.3.1 openSUSE-SU-2022:10016-1
SUSE Package Hub 15 SP3 firejail 0.9.70-bp153.2.6.1 openSUSE-SU-2022:10015-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.4 firejail 0.9.70-bp154.2.3.1 openSUSE-SU-2022:10016-1
openSUSE Leap 15.3 firejail 0.9.70-bp153.2.6.1 openSUSE-SU-2022:10015-1

Advisories 4

References