CVEfocus › CVE database › CVE-2022-31214

CVE-2022-31214

CVSS 7.8 HighEPSS 0.4% (higher than 25% of CVEs)Published 2022-06-09Updated 2024-08-03Assigner: mitre

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.

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
2Fix pending
3Under investigation
3Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10firejailFix pendingUBUNTU-CVE-2022-31214
Ubuntu 26.04firejailUnder investigationUBUNTU-CVE-2022-31214
Ubuntu 25.10firejailWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-31214
Ubuntu 24.04firejailUnder investigationUBUNTU-CVE-2022-31214
Ubuntu 22.04firejailUnder investigationUBUNTU-CVE-2022-31214
Ubuntu 20.04firejailWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-31214
Ubuntu 18.04firejailWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-31214
Ubuntu 16.04firejailFix pendingUBUNTU-CVE-2022-31214
Debian 14firejailFixed0.9.68-4DEBIAN-CVE-2022-31214
Debian 13firejailFixed0.9.68-4DEBIAN-CVE-2022-31214
Debian 12firejailFixed0.9.68-4DEBIAN-CVE-2022-31214

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.