Skip to content
Heist/ feed
Back to feed
High

firejail — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2022-31214

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.

Products
firejail
Affected versions
0.9.28-1, 0.9.32-1, 0.9.34-1, 0.9.36-1, 0.9.38-1, 0.9.38-1ubuntu0.1, 0.9.38.10-0ubuntu0.16.04.1, 0.9.50-3, 0.9.52-1, 0.9.52-2, 0.9.60-2, 0.9.62-1, 0.9.62-2, 0.9.62-3, 0.9.62-3ubuntu0.1, 0.9.64.4-2, 0.9.66-2, 0.9.72-2, 0.9.72-2ubuntu3, 0.9.72-2ubuntu4, 0.9.72-2ubuntu5, 0.9.80-1
Fixed versions
Not specified
CVEs
CVE-2022-31214
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:01 UTC · Revision 1

Source evidence

UBUNTU-CVE-2022-31214

core-osv · Original source

Published 9 Jun 2022, 16:15 UTC

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.

osv:UBUNTU-CVE-2022-31214

firejail

Fixed versions: Not specified

firejail

Fixed versions: Not specified

firejail

Fixed versions: Not specified

firejail

Fixed versions: Not specified

firejail

Fixed versions: Not specified

firejail

Fixed versions: Not specified

firejail

Fixed versions: Not specified

firejail

Fixed versions: Not specified

Complete source record
{
  "id": "98f4d42c45b310ba888e5c2f619e138539492596b01206fe1c2d9d4bf96bf014",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-31214",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2022-31214",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2022-31214",
    "products": [
      {
        "name": {
          "value": "firejail",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.9.28-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.9.32-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.9.34-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.9.36-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.9.38-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.9.38-1ubuntu0.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.9.38.10-0ubuntu0.16.04.1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "firejail",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.9.50-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.9.52-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.9.52-2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "firejail",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.9.60-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.9.62-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.9.62-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.9.62-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.9.62-3ubuntu0.1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "firejail",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.9.64.4-2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.9.66-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "firejail",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.9.72-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.9.72-2ubuntu3",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "firejail",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.9.72-2ubuntu3",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "firejail",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.9.72-2ubuntu5",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "0.9.80-1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "firejail",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.9.72-2ubuntu3",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "0.9.72-2ubuntu4",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "0.9.72-2ubuntu5",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2022-31214",
      "aliases": [
        "UBUNTU-CVE-2022-31214"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "firejail",
            "purl": "pkg:deb/ubuntu/firejail?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "0.9.28-1",
            "0.9.32-1",
            "0.9.34-1",
            "0.9.36-1",
            "0.9.38-1",
            "0.9.38-1ubuntu0.1",
            "0.9.38.10-0ubuntu0.16.04.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31214.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "firejail",
                "binary_version": "0.9.38.10-0ubuntu0.16.04.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "firejail",
            "purl": "pkg:deb/ubuntu/firejail?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "0.9.50-3",
            "0.9.52-1",
            "0.9.52-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31214.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "firejail",
                "binary_version": "0.9.52-2"
              },
              {
                "binary_name": "firejail-profiles",
                "binary_version": "0.9.52-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "firejail",
            "purl": "pkg:deb/ubuntu/firejail?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "0.9.60-2",
            "0.9.62-1",
            "0.9.62-2",
            "0.9.62-3",
            "0.9.62-3ubuntu0.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31214.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "firejail",
                "binary_version": "0.9.62-3ubuntu0.1"
              },
              {
                "binary_name": "firejail-profiles",
                "binary_version": "0.9.62-3ubuntu0.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "firejail",
            "purl": "pkg:deb/ubuntu/firejail?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.9.64.4-2",
            "0.9.66-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31214.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "firejail",
                "binary_version": "0.9.66-2"
              },
              {
                "binary_name": "firejail-profiles",
                "binary_version": "0.9.66-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "firejail",
            "purl": "pkg:deb/ubuntu/firejail?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.9.72-2",
            "0.9.72-2ubuntu3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31214.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "firejail",
                "binary_version": "0.9.72-2ubuntu3"
              },
              {
                "binary_name": "firejail-profiles",
                "binary_version": "0.9.72-2ubuntu3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "firejail",
            "purl": "pkg:deb/ubuntu/firejail?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.9.72-2ubuntu3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31214.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "firejail",
                "binary_version": "0.9.72-2ubuntu3"
              },
              {
                "binary_name": "firejail-profiles",
                "binary_version": "0.9.72-2ubuntu3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "firejail",
            "purl": "pkg:deb/ubuntu/firejail?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.9.72-2ubuntu5",
            "0.9.80-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31214.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "firejail",
                "binary_version": "0.9.80-1"
              },
              {
                "binary_name": "firejail-profiles",
                "binary_version": "0.9.80-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "firejail",
            "purl": "pkg:deb/ubuntu/firejail?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.9.72-2ubuntu3",
            "0.9.72-2ubuntu4",
            "0.9.72-2ubuntu5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31214.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "firejail",
                "binary_version": "0.9.72-2ubuntu5"
              },
              {
                "binary_name": "firejail-profiles",
                "binary_version": "0.9.72-2ubuntu5"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:21.854947526Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-31214"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2022-31214",
        "https://marc.info/?i=YqCar9IFTyPnq2o0@f195.suse.de",
        "https://www.cve.org/CVERecord?id=CVE-2022-31214"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-31214",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 355434,
  "published_at": "2022-06-09T16:15:00+00:00"
}