{"id":"UBUNTU-CVE-2022-31214","details":"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.","modified":"2026-10-17T12:56:21.854947526Z","published":"2022-06-09T16:15:00Z","upstream":["CVE-2022-31214"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-31214"},{"type":"REPORT","url":"https://marc.info/?i=YqCar9IFTyPnq2o0@f195.suse.de"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-31214"}],"affected":[{"package":{"name":"firejail","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/firejail?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.28-1","0.9.32-1","0.9.34-1","0.9.36-1","0.9.38-1","0.9.38-1ubuntu0.1","0.9.38.10-0ubuntu0.16.04.1"],"ecosystem_specific":{"binaries":[{"binary_name":"firejail","binary_version":"0.9.38.10-0ubuntu0.16.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31214.json"}},{"package":{"name":"firejail","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/firejail?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.50-3","0.9.52-1","0.9.52-2"],"ecosystem_specific":{"binaries":[{"binary_name":"firejail","binary_version":"0.9.52-2"},{"binary_name":"firejail-profiles","binary_version":"0.9.52-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31214.json"}},{"package":{"name":"firejail","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/firejail?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.60-2","0.9.62-1","0.9.62-2","0.9.62-3","0.9.62-3ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"firejail","binary_version":"0.9.62-3ubuntu0.1"},{"binary_name":"firejail-profiles","binary_version":"0.9.62-3ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31214.json"}},{"package":{"name":"firejail","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/firejail?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.64.4-2","0.9.66-2"],"ecosystem_specific":{"binaries":[{"binary_name":"firejail","binary_version":"0.9.66-2"},{"binary_name":"firejail-profiles","binary_version":"0.9.66-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31214.json"}},{"package":{"name":"firejail","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/firejail?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.72-2","0.9.72-2ubuntu3"],"ecosystem_specific":{"binaries":[{"binary_name":"firejail","binary_version":"0.9.72-2ubuntu3"},{"binary_name":"firejail-profiles","binary_version":"0.9.72-2ubuntu3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31214.json"}},{"package":{"name":"firejail","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/firejail?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.72-2ubuntu3"],"ecosystem_specific":{"binaries":[{"binary_version":"0.9.72-2ubuntu3","binary_name":"firejail"},{"binary_name":"firejail-profiles","binary_version":"0.9.72-2ubuntu3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31214.json"}},{"package":{"name":"firejail","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/firejail?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.72-2ubuntu5","0.9.80-1"],"ecosystem_specific":{"binaries":[{"binary_name":"firejail","binary_version":"0.9.80-1"},{"binary_version":"0.9.80-1","binary_name":"firejail-profiles"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31214.json"}},{"package":{"name":"firejail","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/firejail?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.72-2ubuntu3","0.9.72-2ubuntu4","0.9.72-2ubuntu5"],"ecosystem_specific":{"binaries":[{"binary_name":"firejail","binary_version":"0.9.72-2ubuntu5"},{"binary_name":"firejail-profiles","binary_version":"0.9.72-2ubuntu5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31214.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}