CVE-2026-99785: 9p/trans_virtio: reject mount tags longer than NAME_MAX at probe

Published Nov 20, 2026
·
Updated

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

3 affected componentsFixes available
linux/kernel>=4.1.0<6.12.118
6.12.118
linux/kernel>=6.13.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.5
7.3.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.118
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5
  4. Compensating control

    In p9_virtio_probe(), reject mount tags longer than NAME_MAX (255) at probe time.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203