{"id":"CVE-2026-99785","aliases":["CVE-2026-99785"],"related":[],"kind":"vulnerability","state":"published","title":"9p/trans_virtio: reject mount tags longer than NAME_MAX at probe","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-20T05:51:47.026Z","modified":"2026-11-23T08:18:20.407Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"179a5bc4b8cbe68ca675057b960dd805867e41c4","fixed":"6801a2dbe6014fb12ac32ab8f93f271d911cbfef","status":"affected"},{"type":"git","introduced":"179a5bc4b8cbe68ca675057b960dd805867e41c4","fixed":"493ac68dbb533b8be6c938376b3d80c0bf819884","status":"affected"},{"type":"git","introduced":"179a5bc4b8cbe68ca675057b960dd805867e41c4","fixed":"a5eddf875437a313a9229415d8fe8caa39a65481","status":"affected"},{"type":"git","introduced":"179a5bc4b8cbe68ca675057b960dd805867e41c4","fixed":"42eef160f82496e416597cf9ef8c686545286d12","status":"affected"},{"type":"git","introduced":"179a5bc4b8cbe68ca675057b960dd805867e41c4","fixed":"1b8a525573d15370d441c8a25fd27161f1d084c2","status":"affected"},{"type":"git","introduced":"179a5bc4b8cbe68ca675057b960dd805867e41c4","fixed":"030cebd51fcfa46eeb916a599fee447c9d3d1170","status":"affected"},{"type":"git","introduced":"179a5bc4b8cbe68ca675057b960dd805867e41c4","fixed":"b8779990399009d73f8d039a149c398a9b879839","status":"affected"},{"type":"git","introduced":"179a5bc4b8cbe68ca675057b960dd805867e41c4","fixed":"5bfef2b6dafe83fe2d8d210d54093a8f48cfc97e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.1","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.118","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.64","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.5","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/6801a2dbe6014fb12ac32ab8f93f271d911cbfef","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/493ac68dbb533b8be6c938376b3d80c0bf819884","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a5eddf875437a313a9229415d8fe8caa39a65481","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/42eef160f82496e416597cf9ef8c686545286d12","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1b8a525573d15370d441c8a25fd27161f1d084c2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/030cebd51fcfa46eeb916a599fee447c9d3d1170","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b8779990399009d73f8d039a149c398a9b879839","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5bfef2b6dafe83fe2d8d210d54093a8f48cfc97e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99785","url":"https://www.cve.org/CVERecord?id=CVE-2026-99785","licence":"CVE Terms of Use","modified":"2026-11-23T08:07:22.443Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99785","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99785","licence":"Public domain","modified":"2026-11-23T08:18:20.407Z"}],"updatedAt":"2026-11-25T22:59:52.345Z","epss":{"score":0.00192,"percentile":0.09283,"date":"2026-12-01T12:00:22.000Z"}}