# CVE-2022-31214: A Privilege Context Switching issue was discovered in join.c in Firejail 0.9.68.

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2022-06-09T00:00:00.000Z
- Modified: 2026-06-17T04:45:08.170Z
- Weaknesses: CWE-269
- 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- firejail_project firejail: 0.9.68
- fedoraproject fedora: 35; 36; 37
- debian debian_linux: 9.0; 10.0

## Every score

- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.2 High `AV:L/AC:L/Au:N/C:C/I:C/A:C`

## 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

- CVE List: [CVE-2022-31214](https://www.cve.org/CVERecord?id=CVE-2022-31214), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2022-31214](https://nvd.nist.gov/vuln/detail/CVE-2022-31214), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31214 · Whole record: https://cve.day/CVE-2022-31214.json · Rebuilt by cve.day 2026-11-25T22:58:12.192Z
