CVE-2023-1386 Qemu: 9pfs: suid/sgid bits not dropped on file write

Low 3.3 Published Updated

A flaw in QEMU's 9pfs allows guest users to retain SUID/SGID bits on written files, potentially enabling privilege escalation within the guest or on the host.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-1386?

CVE-2023-1386 is a low-severity vulnerability in Fedoraproject Fedora, published on 24 Jul 2023. It can only be exploited from the same machine or local network, with no action from the victim.

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.

Weakness: CWE-281

Which versions are affected by CVE-2023-1386?

It affects 2 products.

Products include Fedoraproject Fedora, Qemu Qemu.

How do I fix CVE-2023-1386?

Apply the vendor's patch.

Is CVE-2023-1386 being exploited?

There is no known exploitation of CVE-2023-1386 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as AZL-27767, AZL-35165, BELL-CVE-2023-1386, DEBIAN-CVE-2023-1386, ECHO-11bd-2260-c895, GHSA-ppj8-867g-rgjr and 4 more.

Is CVE-2023-1386 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free