CVE-2022-0358
NixOS vulnerability analysis and mitigation

Overview

A vulnerability was discovered in the QEMU virtio-fs shared file system daemon (virtiofsd) implementation, identified as CVE-2022-0358. This flaw is related to CVE-2018-13405 and was reported by Jietao Xiao, Jinku Li, Wenbo Shen, and Nanzi Yang. The vulnerability was disclosed in January 2022 and affects QEMU versions prior to 6.2.0-7 (Bugzilla Report, QEMU Commit).

Technical details

The vulnerability exists in the virtiofsd implementation where the daemon retains membership of existing supplementary groups after switching uid/gid using setresuid/setsgid. This retention of group membership can allow operations that should normally be restricted. The vulnerability has a CVSS score of 7.8 (HIGH) with a vector of CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NetApp Security).

Impact

When successfully exploited, this vulnerability could lead to privilege escalation within the guest system. A malicious local user could potentially gain access to resources accessible to the root group, and a malicious local user in the host might leverage unexpected executable files created by the guest to escalate their privileges on the host system (Rapid7).

Mitigation and workarounds

The vulnerability was patched in QEMU version 6.2.0-7 with a fix that drops membership of all supplementary groups at the start of the daemon. The patch was implemented through commit 449e8171f96a6a944d1f3b7d3627ae059eae21ca in the QEMU project. After applying the update, all QEMU virtual machines need to be restarted to implement the necessary changes (Ubuntu Security Notice, QEMU Commit).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-16412CRITICAL9.8
  • NixOS logoNixOS
  • rhel10::thunderbird-flatpak
NoYesJul 21, 2026
CVE-2026-16411CRITICAL9.8
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesJul 21, 2026
CVE-2026-16410CRITICAL9.8
  • NixOS logoNixOS
  • mozjs38
NoYesJul 21, 2026
CVE-2026-16408CRITICAL9.8
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesJul 21, 2026
CVE-2026-16409HIGH7.5
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesJul 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management