CVE-2022-0358

Source
https://cve.org/CVERecord?id=CVE-2022-0358
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-0358.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-0358
Downstream
AZL (2)
DEBIAN (1)
OESA (1)
openSUSE (2)
RHSA (5)
RLSA (1)
SUSE (2)
UBUNTU (1)
Related
Published
2022-08-29T00:00:00Z
Modified
2026-10-22T07:18:46Z
Summary
[none]
Details

A flaw was found in the QEMU virtio-fs shared file system daemon (virtiofsd) implementation. This flaw is strictly related to CVE-2018-13405. A local guest user can create files in the directories shared by virtio-fs with unintended group ownership in a scenario where a directory is SGID to a certain group and is writable by a user who is not a member of the group. This could allow a malicious unprivileged user inside the guest to gain access to resources accessible to the root group, potentially escalating their privileges within the guest. A malicious local user in the host might also leverage this unexpected executable file created by the guest to escalate their privileges on the host system.

Database specific
{
    "cna_assigner":  "redhat",
    "cwe_ids":  [
        "CWE-273"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0358.json",
    "unresolved_ranges":  [
        {
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "introduced":  "Fixed in qemu v6.2.0-7"
                        },
                        {
                            "last_affected":  "Fixed in qemu v6.2.0-7"
                        }
                    ],
                    "source":  "AFFECTED_FIELD",
                    "strategy":  "StandaloneSingleVersion"
                }
            ]
        }
    ]
}
References

Affected packages

Git / gitlab.com/qemu-project/qemu

Affected ranges

Type
GIT
Repo
https://gitlab.com/qemu-project/qemu
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "cpe":  "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:advanced_virtualization:*:*:*",
            "range":  [
                {
                    "introduced":  "8.0"
                },
                {
                    "last_affected":  "8.0"
                }
            ],
            "source":  "CPE_STRING"
        },
        {
            "range":  [
                {
                    "fixed":  "449e8171f96a6a944d1f3b7d3627ae059eae21ca"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

8.*
8.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-0358.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "302744531140615624852398485415115787939",
                "79488242875555874406244692487447543669",
                "54993752283591408625803543982954136445",
                "296848869420297648612894062423751011378",
                "321190977610121332206507786484912906120",
                "96468402481531211804829970676617099666",
                "162131700049634049016222100105217357312",
                "60882616724414873124283531094951134433",
                "167377636730820718430661922098317479089",
                "277010097093721354642499543200327550277"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2022-0358-7e50f8d8",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://gitlab.com/qemu-project/qemu@449e8171f96a6a944d1f3b7d3627ae059eae21ca",
        "target":  {
            "file":  "tools/virtiofsd/passthrough_ll.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "263390199775715885756993363120077698073",
            "length":  3513
        },
        "id":  "CVE-2022-0358-f06ac984",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://gitlab.com/qemu-project/qemu@449e8171f96a6a944d1f3b7d3627ae059eae21ca",
        "target":  {
            "file":  "tools/virtiofsd/passthrough_ll.c",
            "function":  "main"
        }
    }
]
vanir_signatures_modified
"2026-10-22T07:18:46Z"