CVE-2022-0358 json
A flaw was found in the QEMU virtio-fs shared file system daemon (virtiofsd) implementation.
published 2022-08-29 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-15514
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 26%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- qemu qemu 6.2.0-7
- qemu Debian 14, Debian 13, Debian 12 1:7.0+dfsg-1
debian advisories DEBIAN-CVE-2022-0358
- qemu Ubuntu 22.04 LTS 1:6.2+dfsg-2ubuntu6.2
ubuntu advisories UBUNTU-CVE-2022-0358
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- SLOF advanced virtualization 8.4 20200717-1.gite18ddad8.module+el8.4.0+8855+a9e237a9
- hivex advanced virtualization 8.4 1.3.18-21.module+el8.4.0+11609+2eba841a
- netcf advanced virtualization 8.5, advanced virtualization 8.4 0.2.8-12.module+el8.4.0+8855+a9e237a9
- swtpm advanced virtualization 8.4 0.4.2-1.20201201git2df14e3.module+el8.4.0+9341+96cf2672
- libnbd advanced virtualization 8.4 1.6.0-5.module+el8.4.0+14155+dec4a5c7
- nbdkit advanced virtualization 8.4 1.24.0-1.module+el8.4.0+9341+96cf2672
- libtpms advanced virtualization 8.4 0.7.4-4.20201106git2452a24dab.module+el8.4.0+10596+32ba7df3
- libvirt advanced virtualization 8.4 7.0.0-14.6.module+el8.4.0+13801+378af433
red hat advisories RHSA-2022:0971RHSA-2022:0973RHSA-2022:0949RHSA-2022:0759RHSA-2022:0886
- qemu SLE Module for Server Applications 15 SP3, SLE Module for Basesystem 15 SP3, SLE Micro 5.2 +1 more 5.2.0-150300.112.4
suse advisories SUSE-SU-2022:0930-2SUSE-SU-2022:0930-1
- qemu openSUSE Tumbleweed 6.2.0-41.1
- qemu openSUSE Leap 15.3 5.2.0-150300.112.4
- qemu-testsuite openSUSE Leap 15.3 5.2.0-150300.112.7
- qemu-linux-user openSUSE Leap 15.3 5.2.0-150300.112.3
opensuse advisories openSUSE-SU-2024:11907-1openSUSE-SU-2022:0930-1
- netcf AlmaLinux 8 0.2.8-12.module_el8.6.0+2880+7d9e3703
- sgabios AlmaLinux 8 1:0.20170427git-3.module_el8.6.0+2880+7d9e3703
- libiscsi AlmaLinux 8 1.18.0-8.module_el8.6.0+2880+7d9e3703
- qemu-img AlmaLinux 8 15:4.2.0-59.module_el8.5.0+2629+68d2f392.2
- qemu-kvm AlmaLinux 8 15:4.2.0-59.module_el8.5.0+2629+68d2f392.2
- netcf-libs AlmaLinux 8 0.2.8-12.module_el8.6.0+2880+7d9e3703
- sgabios-bin AlmaLinux 8 1:0.20170427git-3.module_el8.6.0+2880+7d9e3703
- libvirt-dbus AlmaLinux 8 1.3.0-2.module_el8.6.0+2880+7d9e3703
almalinux advisories ALSA-2022:0886
- hivex Rocky Linux 8 1.3.18-21.module+el8.4.0+642+7e26f5e1
- hivex Rocky Linux 8 1.3.18-21.module+el8.5.0+670+c4aa478c
- netcf Rocky Linux 8 0.2.8-12.module+el8.7.0+1084+97b81f61
- netcf Rocky Linux 8 0.2.8-12.module+el8.4.0+534+4680a14e
- netcf Rocky Linux 8 0.2.8-12.module+el8.6.0+847+b490afdd
- libnbd Rocky Linux 8 1.2.2-1.module+el8.4.0+534+4680a14e
- nbdkit Rocky Linux 8 1.16.2-4.module+el8.4.0+534+4680a14e
- libvirt Rocky Linux 8 6.0.0-37.1.module+el8.5.0+732+d204e9f7
rocky linux advisories RLSA-2022:0886
- qemu CBL-Mariner 2.0 6.2.0-5
- qemu Azure Linux 3.0 6.2.0-18
azure linux advisories AZL-10763AZL-35156
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-0358 updated cvss 7.0
QEMU: virtiofsd: potential privilege escalation via CVE-2018-13405
-
Red Hat Enterprise Linux 8 Advanced Virtualization qemu-img, qemu-kvm, qemu-kiwi, qemu-kvm-core, qemu-kvm-tests, qemu-kvm-common, +9 moreaffected: workaround, no fix available
-
Red Hat OpenStack Platform 10 (Newton) qemu-img-rhev, qemu-kvm-rhev, qemu-kvm-tools-rhev, qemu-kvm-common-rhev Red Hat OpenStack Platform 13 (Queens) qemu-img-rhev, qemu-kvm-rhev, qemu-kvm-tools-rhev, qemu-kvm-common-rhevaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Advanced Virtualization CodeReady Builder for RHEL 8.2.1 libnbd 1.2.2-1.module+el8.2.0+5644+32ac38d4, netcf 0.2.8-12.module+el8.2.0+4793+b09dd2fb, hivex 1.3.18-20.module+el8.2.0+5588+63a201c3, nbdfuse 1.2.2-1.module+el8.2.0+5644+32ac38d4, seabios 1.13.0-2.module+el8.2.1+7284+aa32a2c4, libiscsi 1.18.0-8.module+el8.2.0+4793+b09dd2fb, +45 more Red Hat Advanced Virtualization for RHEL 8.2.1 libnbd 1.2.2-1.module+el8.2.0+5644+32ac38d4, netcf 0.2.8-12.module+el8.2.0+4793+b09dd2fb, hivex 1.3.18-20.module+el8.2.0+5588+63a201c3, nbdfuse 1.2.2-1.module+el8.2.0+5644+32ac38d4, nbdkit 1.16.2-4.module+el8.2.1+6710+effcb1df, seabios 1.13.0-2.module+el8.2.1+7284+aa32a2c4, +96 morefixed: vendor fix RHSA-2022:0973
-
Red Hat Advanced Virtualization for RHEL 8.4.0.EUS netcf 0.2.8-12.module+el8.4.0+8855+a9e237a9, libnbd 1.6.0-5.module+el8.4.0+14155+dec4a5c7, nbdkit 1.24.0-1.module+el8.4.0+9341+96cf2672, hivex 1.3.18-21.module+el8.4.0+11609+2eba841a, nbdfuse 1.6.0-5.module+el8.4.0+14155+dec4a5c7, seabios 1.14.0-1.module+el8.4.0+8855+a9e237a9, +110 morefixed: vendor fix RHSA-2022:0971
-
Red Hat Advanced Virtualization for RHEL 8.5.0.Z netcf 0.2.8-12.module+el8.4.0+8855+a9e237a9, libnbd 1.6.0-5.module+el8.5.0+14157+bc4e6fb1, hivex 1.3.18-22.module+el8.5.0+12087+2208d04c, libvirt 7.6.0-6.module+el8.5.0+13051+7ddbe958, nbdfuse 1.6.0-5.module+el8.5.0+14157+bc4e6fb1, nbdkit 1.24.0-3.module+el8.5.0+13900+a08c0464, +110 morefixed: vendor fix RHSA-2022:0949
-
Red Hat CodeReady Linux Builder (v. 8) libnbd 1.2.2-1.module+el8.3.0+7353+9de0a3cc, netcf 0.2.8-12.module+el8.1.0+4066+0f1aadab, nbdfuse 1.2.2-1.module+el8.3.0+7353+9de0a3cc, hivex 1.3.18-21.module+el8.5.0+10709+b3edb581, seabios 1.13.0-2.module+el8.3.0+7353+9de0a3cc, libiscsi 1.18.0-8.module+el8.1.0+4066+0f1aadab, +39 more Red Hat Enterprise Linux AppStream (v. 8) libnbd 1.2.2-1.module+el8.3.0+7353+9de0a3cc, netcf 0.2.8-12.module+el8.1.0+4066+0f1aadab, nbdfuse 1.2.2-1.module+el8.3.0+7353+9de0a3cc, nbdkit 1.16.2-4.module+el8.3.0+6922+fd575af8, hivex 1.3.18-21.module+el8.5.0+10709+b3edb581, seabios 1.13.0-2.module+el8.3.0+7353+9de0a3cc, +88 morefixed: vendor fix RHSA-2022:0886
-
Red Hat Enterprise Linux AppStream EUS (v.8.4) libnbd 1.2.2-1.module+el8.3.0+7353+9de0a3cc, netcf 0.2.8-12.module+el8.1.0+4066+0f1aadab, nbdfuse 1.2.2-1.module+el8.3.0+7353+9de0a3cc, nbdkit 1.16.2-4.module+el8.3.0+6922+fd575af8, hivex 1.3.18-21.module+el8.4.0+10770+19c037f9, seabios 1.13.0-2.module+el8.3.0+7353+9de0a3cc, +88 more Red Hat Enterprise Linux CRB EUS (v.8.4) libnbd 1.2.2-1.module+el8.3.0+7353+9de0a3cc, netcf 0.2.8-12.module+el8.1.0+4066+0f1aadab, nbdfuse 1.2.2-1.module+el8.3.0+7353+9de0a3cc, hivex 1.3.18-21.module+el8.4.0+10770+19c037f9, seabios 1.13.0-2.module+el8.3.0+7353+9de0a3cc, libiscsi 1.18.0-8.module+el8.1.0+4066+0f1aadab, +39 morefixed: vendor fix RHSA-2022:0759
-
Red Hat Enterprise Linux 6 qemu-img, qemu-kvm, qemu-kvm-tools, qemu-guest-agent, qemu-guest-agent-win32 Red Hat Enterprise Linux 7 qemu-img, qemu-kvm, libcacard, qemu-img-ma, qemu-kvm-ma, qemu-kvm-tools, +5 more Red Hat Enterprise Linux 9 qemu-img, qemu-kvm, qemu-kvm-core, qemu-kvm-tools, qemu-pr-helper, qemu-kvm-common, +16 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.33% chance of exploitation in the next 30 days, higher than 26% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- n/a QEMU/virtiofsd
Classification
- Weakness
-
- CWE-273 Improper Check for Dropped Privileges
References
-
gitlab.com
/qemu-project/qemu/-/commit/449e8171f96a6a944d1f3b7d3627ae059eae21ca
patch, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=2044863
issue-tracking, patch, third-party-advisory
-
access.redhat.com
/security/cve/CVE-2022-0358
third-party-advisory
-
security.netapp.com
/advisory/ntap-20221007-0008/
third-party-advisory
Sources
- CVE List CVE-2022-0358
- NVD CVE-2022-0358
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.