CVE-2026-99785: Linux kernel 9p virtio mount tag overflows the sysfs buffer

ByLinuxtastic

November 30, 2026 #CVE, #Linux Kernel

A Linux guest that mounts a shared folder over 9p on virtio reads the mount tag from the device’s configuration space, and until this fix it accepted a tag of any length up to 65,535 bytes. When something later reads the tag’s sysfs attribute, the kernel copies the whole tag into a single-page buffer, so a hostile or compromised hypervisor can write up to about 64 KiB past that buffer inside the guest kernel. If you run Linux guests with virtio-9p devices on a host you do not fully trust, update the guest kernel to one from the 20 November 2026 stable releases and reboot it. Guests without a 9p device, and bare-metal hosts, are not exposed.

CVE-2026-99785 at a glance.

ComponentLinux kernel, 9p virtio transport (net/9p/trans_virtio.c, p9_virtio_probe() and p9_mount_tag_show())
Affected versions4.1 and later, up to the stable releases of 20 November 2026
Fixed in7.4-rc2 (commit 5bfef2b6dafe) and stable 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, 6.18.64, 7.3.5
SeverityCVSS 3.1 7.8 High (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, kernel CNA, mirrored by NVD). Red Hat rates it Important and scores it 8.4 (no user interaction), CWE-787; SUSE rates it moderate, 6.7 (privileged attacker)
Exploited in the wildNot on CISA’s KEV catalogue. EPSS 0.0019 (5th percentile) on 30 November 2026
Who is exposedLinux guests with a virtio-9p device (QEMU/KVM shared folders, some cloud and container-VM platforms) whose host, or whose device model, could be controlled by an attacker; the exposure is host-to-guest
PublishedCVE record 20 November 2026; this page built 30 November 2026, last updated 30 November 2026

What it is

9p over virtio is the old way of sharing a host directory with a guest: the hypervisor exposes a virtio device carrying a short mount tag, and the guest mounts it with mount -t 9p -o trans=virtio TAG /mnt. The tag is read at probe time. As the fix commit explains, p9_virtio_probe() takes a 16-bit tag length from the device configuration and allocates tag_len + 1 bytes for it with no upper bound, so the device can present a tag of up to 65,535 bytes and the guest will store it.

The overflow happens later. The tag is exposed through sysfs, and p9_mount_tag_show() copies it into the attribute buffer with a plain memcpy(buf, chan->tag, tag_len + 1). That buffer is one page, so a 64 KiB tag is a host-controlled out-of-bounds write of up to about 60 KiB past it, in guest kernel memory. The fix rejects an over-long tag at probe time, bounding it by NAME_MAX (255 bytes) on the reasoning that a mount tag is a name-like identifier; the commit notes that this limit is independent of the sysfs page size and far above any legitimate tag.

The vectors disagree about who the attacker is. The kernel CNA scores it as local with user interaction, which models the guest reading the sysfs file; Red Hat drops the interaction requirement and reaches 8.4, with a statement that an untrusted or compromised host can trigger memory corruption and that exposure is limited to guests with virtio-9p devices; SUSE treats the attacker as already privileged and scores 6.7. All three agree the trigger comes from the device side, not from an unprivileged process inside the guest.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 30 November 2026; the link in the row is the tracker page, which will be newer than this one.

DistributionStatusFixed package
Debian trixieFixed (DSA-6652-1)linux 6.12.118-1 in trixie-security
Debian bookwormVulnerablenone yet (6.1.192-2 is still affected)
Debian forky, sidforky vulnerable (7.3.4-1); sid fixed7.3.5-1
UbuntuTracker unreachablethe page refused automated readers on 30 November 2026; check the link
RHEL, Rocky, Alma, CentOS StreamImportant, but RHEL 7, 8, 9 and 10 listed as Not affectedonly the RHEL 6 ELS kernel row reads Affected; no erratum
SUSE / openSUSEmoderate, Pending (bug 1291099)every current SLE, SLE Micro and Leap kernel listed as Affected; only SLES 11 SP4 not affected
Fedora, Arch, Alpine, othersNot consultedfixed once the guest kernel is at or past the stable versions in the box

How to check

Inside the guest, three questions: is the kernel inside the affected range, is there a virtio-9p device at all, and is the 9p transport loaded. A machine with no 9p device has nothing to probe.

# 1. Kernel version: affected if 4.1 or later and older than 5.10.275 / 5.15.226 / 6.1.193 / 6.6.163 / 6.12.118 / 6.18.64 / 7.3.5
uname -r

# 2. Any virtio-9p device present? (virtio device id 9) — prints the tags the host offered
for d in /sys/bus/virtio/devices/*; do
  [ "$(cat $d/device 2>/dev/null)" = "0x0009" ] && echo "$d: tag=$(cat $d/mount_tag 2>/dev/null)"
done

# 3. Is the transport loaded, and is anything mounted over it?
lsmod | grep -E '^(9pnet_virtio|9pnet|9p)\b'
grep ' 9p ' /proc/mounts

If step 1 is outside the affected range you are done. If step 2 prints nothing, there is no 9p device and the vulnerable probe never runs, whatever the kernel version; note that this can change if the hypervisor adds a device later, and that a hostile host could do exactly that. A guest that lists a 9p device on an affected kernel should be patched, and the question of whether it needs patching urgently is a question about who controls the host.

How to fix it

Install the guest’s kernel update and reboot the guest; the fix is in the guest kernel, and nothing on the host side changes it.

# Debian trixie guest (DSA-6652-1)
sudo apt update && sudo apt install linux-image-amd64 && sudo reboot

# Ubuntu guest (when the USN lands)
sudo apt update && sudo apt install linux-generic && sudo reboot

# SUSE / openSUSE guest
sudo zypper patch && sudo reboot

Where a guest cannot be rebooted yet, the exposure can be removed by keeping the 9p transport from probing at all. Blacklisting 9pnet_virtio stops the kernel from binding to a 9p device the host presents, at the cost of the shared folder; virtiofs is the usual replacement for host directory sharing and does not use this code.

# Guest-side mitigation: stop the 9p virtio transport from binding (lose 9p shares until the kernel is updated)
echo 'blacklist 9pnet_virtio' | sudo tee /etc/modprobe.d/no-9p-virtio.conf
sudo umount -a -t 9p
sudo modprobe -r 9pnet_virtio 2>/dev/null

Sources

Related reading

This advisory page was assembled from the primary sources listed above on 30 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.