# CVE-2022-0358: A flaw was found in the QEMU virtio-fs shared file system daemon (virtiofsd) implementation.

- 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.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2022-08-29T00:00:00.000Z
- Modified: 2026-06-17T04:20:27.297Z
- Weaknesses: CWE-273
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- QEMU/virtiofsd: Fixed in qemu v6.2.0-7
- qemu qemu: before 6.2.0-7
- redhat enterprise_linux: 8.0

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2044863> (issue-tracking, patch, third-party-advisory)
- <https://gitlab.com/qemu-project/qemu/-/commit/449e8171f96a6a944d1f3b7d3627ae059eae21ca> (patch, third-party-advisory)
- <https://access.redhat.com/security/cve/CVE-2022-0358> (third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20221007-0008/> (third-party-advisory)

## Sources

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

---

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