CVE-2026-99785: 9p/trans_virtio: reject mount tags longer than NAME_MAX at probe
In the Linux kernel, the following vulnerability has been resolved:
9p/transvirtio: reject mount tags longer than NAMEMAX at probe
p9virtioprobe() reads a 16-bit mount tag length (taglen) from the device config and kzalloc()s taglen + 1 bytes for chan->tag with no upper bound. A malicious or compromised host can present a tag of up to 65535 bytes; that tag is later copied into the single-page sysfs buffer by p9mounttagshow() (memcpy(buf, chan->tag, taglen + 1)), a host-controlled out-of-bounds write of up to ~64 KiB past the PAGESIZE attribute buffer.
Reject an overlong tag at probe time. A 9p mount tag is a name-like identifier, so bound it by NAMEMAX (255): that limit is independent of the sysfs/seqfile page size and is far above any legitimate mount tag, which keeps p9mounttagshow() safe at the root without hard-coding a seqfile implementation detail.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.118 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.64 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.5 - Compensating control
In p9_virtio_probe(), reject mount tags longer than NAME_MAX (255) at probe time.