Vulnerability · Published Jul 24, 2023 · Assigned by redhat
CVE-2023-1386Qemu: 9pfs: suid/sgid bits not dropped on file write
Low 3.3
In plain English
A low-severity security flaw in Extra Packages for Enterprise Linux from Fedora. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 15% of all known vulnerabilities).
Official description
A flaw was found in the 9p passthrough filesystem (9pfs) implementation in QEMU. When a local user in the guest writes an executable file with SUID or SGID, none of these privileged bits are correctly dropped. As a result, in rare circumstances, this flaw could be used by malicious users in the guest to elevate their privileges within the guest and help a host local user to elevate privileges on the host.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | qemu | no fix listed | DEBIAN-CVE-2023-1386 |
| Debian:13 | qemu | no fix listed | DEBIAN-CVE-2023-1386 |
| Debian:14 | qemu | no fix listed | DEBIAN-CVE-2023-1386 |
| Ubuntu:22.04:LTS | qemu | no fix listed | UBUNTU-CVE-2023-1386 |
| Ubuntu:24.04:LTS | qemu | no fix listed | UBUNTU-CVE-2023-1386 |
| Ubuntu:25.10 | qemu | no fix listed | UBUNTU-CVE-2023-1386 |
| Ubuntu:26.04:LTS | qemu | no fix listed | UBUNTU-CVE-2023-1386 |
| Ubuntu:26.10 | qemu | no fix listed | UBUNTU-CVE-2023-1386 |
| Ubuntu:26.04:LTS | qemu-hwe | no fix listed | UBUNTU-CVE-2023-1386 |
| Ubuntu:26.10 | qemu-hwe | no fix listed | UBUNTU-CVE-2023-1386 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | qemu | see references |
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 8 Advanced Virtualization | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Fedora | Fedora | see references |
| Fedora | Extra Packages for Enterprise Linux | see references |
Weakness: CWE-281 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
References
- https://access.redhat.com/security/cve/CVE-2023-1386 vdb-entry, x_refsource_REDHAT
- RHBZ#2223985 issue-tracking, x_refsource_REDHAT
- https://github.com/advisories/GHSA-ppj8-867g-rgjr
- https://github.com/v9fs/linux/issues/29
- https://security.netapp.com/advisory/ntap-20230831-0005/