cve.bz

CVE-2022-0358 Improper Check for Dropped Privileges

7.8 highEPSS 0.3%Fix available

High (7.8). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 19th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-273 Improper Check for Dropped Privileges
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-0358 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-0358?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-0358?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-0358 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
qemu:qemubefore 6.2.0-7
redhat:enterprise_linux8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11qemu1:5.2+dfsg-11+deb11u2DSA-5133-1
Debian12, 13, 14qemu1:7.0+dfsg-1DEBIAN-CVE-2022-0358
Ubuntu18.04:LTSqemu1:2.11+dfsg-1ubuntu7.39USN-5307-1
Ubuntu18.04:LTSqemu1:2.11+dfsg-1ubuntu7.40USN-5489-1
Ubuntu20.04:LTSqemu1:4.2-3ubuntu6.21USN-5307-1
Ubuntu20.04:LTSqemu1:4.2-3ubuntu6.23USN-5489-1
Ubuntu22.04:LTSqemu1:6.2+dfsg-2ubuntu6.2UBUNTU-CVE-2022-0358 USN-5489-1
Red Hatadvanced_virtualization:8.2::el8SLOF0:20191022-3.git899d9883.module+el8.2.0+5449+efc036ddRHSA-2022:0973
Red Hatadvanced_virtualization:8.2::el8hivex, perl-hivex, ruby-hivex and 10 more0:1.3.18-20.module+el8.2.0+5588+63a201c3RHSA-2022:0973
Red Hatadvanced_virtualization:8.2::el8libguestfs-winsupport0:8.2-2.module+el8.2.1+12663+d52ebc0dRHSA-2022:0973
Red Hatadvanced_virtualization:8.2::el8libiscsi, libiscsi-devel, libiscsi-utils and 3 more0:1.18.0-8.module+el8.2.0+4793+b09dd2fbRHSA-2022:0973
Red Hatadvanced_virtualization:8.2::el8libnbd, nbdfuse, libnbd-devel and 8 more0:1.2.2-1.module+el8.2.0+5644+32ac38d4RHSA-2022:0973
Red Hatadvanced_virtualization:8.2::el8libtpms, libtpms-devel, libtpms-debuginfo and 1 more0:0.7.0-1.20191018gitdc116933b7.module+el8.2.0+4793+b09dd2fbRHSA-2022:0973
Red Hatadvanced_virtualization:8.2::el8libvirt, libvirt-nss, libvirt-docs and 49 more0:6.0.0-25.6.module+el8.2.1+12457+868e9540RHSA-2022:0973
Red Hatadvanced_virtualization:8.2::el8libvirt-dbus, libvirt-dbus-debuginfo, libvirt-dbus-debugsource0:1.3.0-2.module+el8.2.0+4793+b09dd2fbRHSA-2022:0973
Red Hatadvanced_virtualization:8.2::el8libvirt-python, python3-libvirt, python3-libvirt-debuginfo and 1 more0:6.0.0-1.module+el8.2.0+5453+31b2b136RHSA-2022:0973
Red Hatadvanced_virtualization:8.2::el8nbdkit, nbdkit-devel, nbdkit-server and 24 more0:1.16.2-4.module+el8.2.1+6710+effcb1dfRHSA-2022:0973
Red Hatadvanced_virtualization:8.2::el8netcf, netcf-libs, netcf-devel and 3 more0:0.2.8-12.module+el8.2.0+4793+b09dd2fbRHSA-2022:0973
Red Hatadvanced_virtualization:8.2::el8perl-Sys-Virt, perl-Sys-Virt-debuginfo, perl-Sys-Virt-debugsource0:6.0.0-1.module+el8.2.0+5488+267def79RHSA-2022:0973
93 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Server Applications 15 SP3qemu5.2.0-150300.112.4SUSE-SU-2022:0930-1
SUSELinux Enterprise Micro 5.2qemu5.2.0-150300.112.4SUSE-SU-2022:0930-2
openSUSELeap 15.3qemu5.2.0-150300.112.4openSUSE-SU-2022:0930-1
openSUSELeap 15.3qemu-linux-user5.2.0-150300.112.3openSUSE-SU-2022:0930-1
openSUSELeap 15.3qemu-testsuite5.2.0-150300.112.7openSUSE-SU-2022:0930-1
openSUSETumbleweedqemu6.2.0-41.1openSUSE-SU-2024:11907-1
AlmaLinux8libiscsi, libiscsi-devel, libiscsi-utils1.18.0-8.module_el8.6.0+2880+7d9e3703ALSA-2022:0886
AlmaLinux8libvirt-dbus1.3.0-2.module_el8.6.0+2880+7d9e3703ALSA-2022:0886
AlmaLinux8netcf, netcf-libs, netcf-devel0.2.8-12.module_el8.6.0+2880+7d9e3703ALSA-2022:0886
AlmaLinux8qemu-img, qemu-kvm, qemu-kvm-core and 7 more15:4.2.0-59.module_el8.5.0+2629+68d2f392.2ALSA-2022:0886
AlmaLinux8sgabios, sgabios-bin1:0.20170427git-3.module_el8.6.0+2880+7d9e3703ALSA-2022:0886
Rocky Linux8hivex0:1.3.18-21.module+el8.4.0+642+7e26f5e1RLSA-2022:0886
Rocky Linux8hivex0:1.3.18-21.module+el8.5.0+670+c4aa478cRLSA-2022:0886
Rocky Linux8libguestfs1:1.40.2-28.module+el8.5.0+670+c4aa478cRLSA-2022:0886
Rocky Linux8libguestfs-winsupport0:8.2-1.module+el8.4.0+534+4680a14eRLSA-2022:0886
Rocky Linux8libiscsi0:1.18.0-8.module+el8.4.0+534+4680a14eRLSA-2022:0886
Rocky Linux8libiscsi0:1.18.0-8.module+el8.6.0+847+b490afddRLSA-2022:0886
Rocky Linux8libiscsi0:1.18.0-8.module+el8.7.0+1084+97b81f61RLSA-2022:0886
Rocky Linux8libnbd0:1.2.2-1.module+el8.4.0+534+4680a14eRLSA-2022:0886
Rocky Linux8libvirt0:6.0.0-37.1.module+el8.5.0+732+d204e9f7RLSA-2022:0886
Rocky Linux8libvirt-dbus0:1.3.0-2.module+el8.4.0+534+4680a14eRLSA-2022:0886
Rocky Linux8libvirt-dbus0:1.3.0-2.module+el8.6.0+847+b490afddRLSA-2022:0886
Rocky Linux8libvirt-dbus0:1.3.0-2.module+el8.7.0+1084+97b81f61RLSA-2022:0886
11 more for Rocky Linux in the JSON.
Azure Linux2qemu6.2.0-5AZL-10763
Azure Linux3qemu6.2.0-18AZL-35156

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue does not affect the versions of the `qemu-kvm` package as shipped with Red Hat Enterprise Linux 6 and 7. Virtio-fs is a fairly new feature (introduced upstream in QEMU v5.0) which is not built in Red Hat Enterprise Linux 6 and 7.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Advanced Virtualization for RHEL 8.2.1virt:8.2-8020120220211042301.863bb0dbFixed 2022-03-21RHSA-2022:0973
Advanced Virtualization for RHEL 8.2.1virt-devel:8.2-8020120220211042301.863bb0dbFixed 2022-03-21RHSA-2022:0973
Advanced Virtualization for RHEL 8.4.0.EUSvirt:av-8040020220210233846.522a0ee4Fixed 2022-03-21RHSA-2022:0971
Advanced Virtualization for RHEL 8.4.0.EUSvirt-devel:av-8040020220210233846.522a0ee4Fixed 2022-03-21RHSA-2022:0971
Advanced Virtualization for RHEL 8.5.0.Zvirt:av-8050020220210180726.c5368500Fixed 2022-03-16RHSA-2022:0949
Advanced Virtualization for RHEL 8.5.0.Zvirt-devel:av-8050020220210180726.c5368500Fixed 2022-03-16RHSA-2022:0949
Red Hat Enterprise Linux 8virt-devel:rhel-8050020220208234339.c5368500Fixed 2022-03-15RHSA-2022:0886
Red Hat Enterprise Linux 8virt:rhel-8050020220208234339.c5368500Fixed 2022-03-15RHSA-2022:0886
Red Hat Enterprise Linux 8.4 Extended Update Supportvirt-devel:rhel-8040020220214155039.522a0ee4Fixed 2022-03-07RHSA-2022:0759
Red Hat Enterprise Linux 8.4 Extended Update Supportvirt:rhel-8040020220214155039.522a0ee4Fixed 2022-03-07RHSA-2022:0759
Red Hat Enterprise Linux 6qemu-kvmNot affected
Red Hat Enterprise Linux 7qemu-kvmNot affected
Red Hat Enterprise Linux 7qemu-kvm-maNot affected
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:8.2/qemu-kvmAffected
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:av/qemu-kvmAffected
Red Hat Enterprise Linux 9qemu-kvmNot affected
Red Hat OpenStack Platform 10 (Newton)qemu-kvm-rhevOut of support scope
Red Hat OpenStack Platform 13 (Queens)qemu-kvm-rhevOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-0358.

References

Check your stackJSON