{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99785","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.434Z","datePublished":"2026-11-20T05:51:47.026Z","dateUpdated":"2026-11-22T11:10:07.018Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-22T11:10:07.018Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\n9p/trans_virtio: reject mount tags longer than NAME_MAX at probe\n\np9_virtio_probe() reads a 16-bit mount tag length (tag_len) from the\ndevice config and kzalloc()s tag_len + 1 bytes for chan->tag with no\nupper bound. A malicious or compromised host can present a tag of up to\n65535 bytes; that tag is later copied into the single-page sysfs buffer\nby p9_mount_tag_show() (memcpy(buf, chan->tag, tag_len + 1)), a\nhost-controlled out-of-bounds write of up to ~64 KiB past the PAGE_SIZE\nattribute buffer.\n\nReject an overlong tag at probe time. A 9p mount tag is a name-like\nidentifier, so bound it by NAME_MAX (255): that limit is independent of\nthe sysfs/seq_file page size and is far above any legitimate mount tag,\nwhich keeps p9_mount_tag_show() safe at the root without hard-coding a\nseq_file implementation detail."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - p9_virtio_probe(), reached from virtio_dev_probe() after virtio_pci_probe() or virtio_mmio_probe(), copies tag_len and the tag from virtio device config with virtio_cread() and virtio_cread_bytes(); those bytes are not a 9P message from a remote peer.\nAC:L - The host presents a legacy virtio-pci device so virtio_pci_probe() falls through on modern -ENODEV, or a virtio-mmio device, with a config region large enough for the tag; legacy vp_get() and vm_get() do not cap the read, so p9_virtio_probe() stores it every time.\nPR:N - The device backend supplies struct virtio_9p_config.tag_len in p9_virtio_probe() with no credential check, and the resulting mount_tag attribute is created mode 0444; no guest capability or login is required.\nUI:R - The out-of-bounds memcpy is in p9_mount_tag_show(), invoked only when userspace reads mount_tag (seq_read_iter to sysfs_kf_seq_show to dev_attr_show); the KOBJ_CHANGE uevent from p9_virtio_probe() does not read that file.\nS:U - The corrupted object is the guest kernel seq_file buffer filled by p9_mount_tag_show(); the fault stays in that kernel and is not a guest-to-host or IOMMU boundary crossing.\nC:H - p9_mount_tag_show() memcpy()s strlen(chan->tag)+1 host-chosen bytes into the PAGE_SIZE buffer seq_read_iter allocated with seq_buf_alloc(), so a tag_len above PAGE_SIZE overruns the heap object and can leak adjacent kernel memory.\nI:H - That memcpy writes the device-supplied tag, up to 65535 bytes from virtio_cread_bytes(), past the seq_file page; the host chooses both the length and the bytes, which is a controlled kernel heap write.\nA:H - p9_mount_tag_show() memcpy()s past the PAGE_SIZE seq_file buffer from seq_buf_alloc(); that fault runs in the read syscall's kernel context and oopses the guest."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/9p/trans_virtio.c"],"versions":[{"version":"179a5bc4b8cbe68ca675057b960dd805867e41c4","lessThan":"1b8a525573d15370d441c8a25fd27161f1d084c2","status":"affected","versionType":"git"},{"version":"179a5bc4b8cbe68ca675057b960dd805867e41c4","lessThan":"030cebd51fcfa46eeb916a599fee447c9d3d1170","status":"affected","versionType":"git"},{"version":"179a5bc4b8cbe68ca675057b960dd805867e41c4","lessThan":"b8779990399009d73f8d039a149c398a9b879839","status":"affected","versionType":"git"},{"version":"179a5bc4b8cbe68ca675057b960dd805867e41c4","lessThan":"5bfef2b6dafe83fe2d8d210d54093a8f48cfc97e","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/9p/trans_virtio.c"],"versions":[{"version":"4.1","status":"affected"},{"version":"0","lessThan":"4.1","status":"unaffected","versionType":"semver"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.5","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"7.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"7.4-rc2"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/1b8a525573d15370d441c8a25fd27161f1d084c2"},{"url":"https://git.kernel.org/stable/c/030cebd51fcfa46eeb916a599fee447c9d3d1170"},{"url":"https://git.kernel.org/stable/c/b8779990399009d73f8d039a149c398a9b879839"},{"url":"https://git.kernel.org/stable/c/5bfef2b6dafe83fe2d8d210d54093a8f48cfc97e"}],"title":"9p/trans_virtio: reject mount tags longer than NAME_MAX at probe","x_generator":{"engine":"bippy-1.2.0"}}}}