Name | CVE-2022-31214 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-3061-1, DSA-5167-1 |
Debian Bugs | 1012510 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
firejail (PTS) | bullseye (security), bullseye | 0.9.64.4-2+deb11u1 | fixed |
sid, bookworm | 0.9.72-2 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
firejail | source | stretch | 0.9.58.2-2+deb9u1 | DLA-3061-1 | ||
firejail | source | buster | 0.9.58.2-2+deb10u3 | DSA-5167-1 | ||
firejail | source | bullseye | 0.9.64.4-2+deb11u1 | DSA-5167-1 | ||
firejail | source | (unstable) | 0.9.68-4 | 1012510 |
https://www.openwall.com/lists/oss-security/2022/06/08/10
https://github.com/netblue30/firejail/commit/27cde3d7d1e4e16d4190932347c7151dc2a84c50 (0.9.70)
https://github.com/netblue30/firejail/commit/04ff0edf74395ddcbbcec955279c74ed9a6c0f86 (0.9.70)
https://github.com/netblue30/firejail/commit/dab835e7a0eb287822016f5ae4e87f46e1d363e7 (0.9.70)
https://github.com/netblue30/firejail/commit/1884ea22a90d225950d81c804f1771b42ae55f54 (0.9.70)
https://github.com/netblue30/firejail/files/8913178/CVE-2022-31214.zip (0.9.58.2 - 0.9.68 backports)