7.8high
A Privilege Context Switching issue was discovered in join.c in Firejail 0.9.68.
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.40% (higher than 36% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| firejail_project firejail | 0.9.68 | NVD |
| fedoraproject fedora | 35, 36, 37 | NVD |
| debian debian_linux | 9.0, 10.0 | NVD |
All scores
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.2high CVSS:2.0 | AV:L/AC:L/Au:N/C:C/I:C/A:C |
Classification
What each source says
CVE List
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.
NVD (es)
Se ha detectado un problema de cambio de contexto de privilegios en el archivo join.c en Firejail versión 0.9.68. Al diseñar un contenedor Firejail falso que es aceptado por el programa Firejail setuid-root como objetivo de join, un atacante local puede entrar en un entorno en el que el espacio de nombres de usuario de Linux sigue siendo el espacio de nombres de usuario inicial, el prctl NO_NEW_PRIVS no está activado, y el espacio de nombres de montaje introducido está bajo el control del atacante. De esta manera, la disposición del sistema de archivos puede ser ajustada para alcanzar privilegios de root mediante la ejecución de binarios setuid-root disponibles como su o sudo
References
| https://firejail.wordpress.com/download-2/release-notes/ | release-notes, third-party-advisory | |
| https://www.openwall.com/lists/oss-security/2022/06/08/10 | mailing-list, patch, third-party-advisory | |
| https://www.debian.org/security/2022/dsa-5167 | third-party-advisory, vendor-advisory | |
| https://lists.debian.org/debian-lts-announce/2022/06/msg00023.html | mailing-list, third-party-advisory | |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SIBEBE3KFINMGJATBQQS7D2VQQ62ZVMF/ | vendor-advisory | |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KUZZ5M6LIBYRKTKGROXC47TDC3FRTGJF/ | vendor-advisory | |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6RZOTZ36RUSL6DOVHITY25ZYKWTG5HN3/ | vendor-advisory | |
| https://security.gentoo.org/glsa/202305-19 | vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-31214 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2022-31214 changed 2026-06-17 | Public domain |