CVE-2026-63318: QEMU 9pfs Read-Only Share Bypass via Incorrect Open-Mode Checks
CVE-2026-63318 is a read-only enforcement bypass in QEMU's 9pfs implementation for the 9P2000.u protocol. The read-only check compares the raw 9P open-mode byte against Linux O_TRUNC and O_APPEND constants. The protocol flags Otrunc (0x10) and Oappend (0x80) differ from the Linux constants O_TRUNC (0x200) and O_APPEND (0x400), causing the check to miss these flags. Subsequent conversion by omode_to_uflags() correctly translates the protocol flags, allowing a host open() call with O_TRUNC to truncate files despite the share being configured read-only. The 9P2000.L protocol is unaffected because it supplies Linux flags directly.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
A guest can bypass a QEMU 9pfs share's read-only protection and truncate accessible host files. This can destroy file contents and disrupt host applications or other guests that depend on those files. The demonstrated impact is loss of integrity and potentially availability; arbitrary code execution or access outside the exported share is not established.
Mitigation
If you can’t patch tonight, do this now.
Disable guest access to affected 9pfs exports until patched. Where compatible, restrict sharing to the unaffected 9P2000.L protocol and prevent use of 9P2000.u. Independently enforce read-only access at the host filesystem or mount layer rather than relying solely on QEMU's share-level read-only setting.
Remediation
Patch, then assume compromise.
Install the vendor-provided QEMU security update. For Amazon Linux 2, update QEMU to package version 3.1.0-8 or later using 'yum update qemu' or 'yum update --advisory ALAS2-2026-4009'. For Oracle Linux 9, apply the affected QEMU/KVM package updates supplied by ELSA-2026-500245.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-63318 exploited in the wild?
- As of Oct 25, 2026, Mallory has no reports of CVE-2026-63318 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-63318?
- As of Oct 25, 2026, Mallory has found no public exploit for CVE-2026-63318.
- Is there a patch for CVE-2026-63318?
- Install the vendor-provided QEMU security update. For Amazon Linux 2, update QEMU to package version 3.1.0-8 or later using 'yum update qemu' or 'yum update --advisory ALAS2-2026-4009'.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.