Name | CVE-2022-0358 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DSA-5133-1 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
qemu (PTS) | jessie, jessie (lts) | 1:2.1+dfsg-12+deb8u23 | fixed |
| stretch (security) | 1:2.8+dfsg-6+deb9u17 | fixed |
| stretch (lts), stretch | 1:2.8+dfsg-6+deb9u19 | fixed |
| buster (security), buster, buster (lts) | 1:3.1+dfsg-8+deb10u12 | fixed |
| bullseye | 1:5.2+dfsg-11+deb11u3 | fixed |
| bullseye (security) | 1:5.2+dfsg-11+deb11u2 | fixed |
| bookworm | 1:7.2+dfsg-7+deb12u7 | fixed |
| sid, trixie | 1:9.2.0+ds-2 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
qemu | source | jessie | (not affected) | | | |
qemu | source | stretch | (not affected) | | | |
qemu | source | buster | (not affected) | | | |
qemu | source | bullseye | 1:5.2+dfsg-11+deb11u2 | | DSA-5133-1 | |
qemu | source | (unstable) | 1:7.0+dfsg-1 | | | |
Notes
[buster] - qemu <not-affected> (Vulnerable code not present)
[stretch] - qemu <not-affected> (virtiofsd added in 5.0)
https://bugzilla.redhat.com/show_bug.cgi?id=2044863
https://gitlab.com/qemu-project/qemu/-/commit/449e8171f96a6a944d1f3b7d3627ae059eae21ca
[jessie] - qemu <not-affected> (virtiofsd added in 5.0)