CVE-2022-31214
Last modified
CVE-2022-31214 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.38% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Firejail Project | Firejail | 0.9.68 |
| Fedoraproject | Fedora | 35 |
| Fedoraproject | Fedora | 36 |
| Fedoraproject | Fedora | 37 |
| Debian | Debian Linux | 9.0 |
| Debian | Debian Linux | 10.0 |
References
- https://firejail.wordpress.com/download-2/release-notes/Release Notes, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/06/msg00023.htmlMailing List, Third Party Advisory
- https://www.debian.org/security/2022/dsa-5167Third Party Advisory
- https://www.openwall.com/lists/oss-security/2022/06/08/10Mailing List, Patch, Third Party Advisory
- https://firejail.wordpress.com/download-2/release-notes/Release Notes, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/06/msg00023.htmlMailing List, Third Party Advisory
- https://www.debian.org/security/2022/dsa-5167Third Party Advisory
- https://www.openwall.com/lists/oss-security/2022/06/08/10Mailing List, Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-31214?
How severe is CVE-2022-31214?
How do I fix CVE-2022-31214?
Are you affected by CVE-2022-31214?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
