Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Firejail Project | Firejail | 0.9.68 |
| Fedoraproject | Fedora | 35 |
| Debian | Debian Linux | 9.0 |
Related Weaknesses (CWE)
References
- https://firejail.wordpress.com/download-2/release-notes/Release NotesThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/06/msg00023.htmlMailing ListThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://security.gentoo.org/glsa/202305-19
- https://www.debian.org/security/2022/dsa-5167Third Party Advisory
- https://www.openwall.com/lists/oss-security/2022/06/08/10Mailing ListPatchThird Party Advisory
- https://firejail.wordpress.com/download-2/release-notes/Release NotesThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/06/msg00023.htmlMailing ListThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://security.gentoo.org/glsa/202305-19
- https://www.debian.org/security/2022/dsa-5167Third Party Advisory
FAQ
What is CVE-2022-31214?
CVE-2022-31214 is a vulnerability with a CVSS score of 7.8 (HIGH). 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 a...
How severe is CVE-2022-31214?
CVE-2022-31214 has been rated HIGH with a CVSS base score of 7.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-31214?
Check the references section above for vendor advisories and patch information. Affected products include: Firejail Project Firejail, Fedoraproject Fedora, Debian Debian Linux.