Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD15348AE1B for ; Fri, 25 Sep 2026 10:34:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332450; cv=none; b=EJ03DLmVzxrR6zMhn8rjIVREVnkg78//Z5+A7W59aUH9hvrhywqQVL9grJYZlT6IvlGvVG+fs0PxwAqAnWbI+DNcGVgzVKy7hWy2Z3vlgWHZoEeJjFKgRsQ2qLqzrNQZ9vHO7rkJHm4EBgPqxMAbxeLH+nsTRuuBxAETsU9bHmk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332450; c=relaxed/simple; bh=gdjI+D+pZ0nIKYZdfEVHg/7nAqbxjFb31JYgcPQd068=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=naFdzpuz6xFvyTyAVyxRDslpFR7BfpKYaNNt1FbXXlr/ukRUB6aL+B+mzQK8C52lcRIYhA/JpVwJ2taFbhy87kgZhugjf2M5N9//pKVGdVVip5oisnip32uta2mWGApGj1ZtMcZIWvBfm1IZNG4xX/aus8Tfa/uJ0qs79HXR1Nw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jvjWQ8VI; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jvjWQ8VI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3483E1F000FF; Fri, 25 Sep 2026 10:34:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332448; bh=orLHiAETt722ZGDVJMo1x7T/4tUXQCy9pX3jZlGUCf4=; h=From:To:Cc:Subject:Date:Reply-To; b=jvjWQ8VIOAc5awR1ea2rnmkS/R+7W48GVJKYD+gt84os5BSctnRbVwV/pbUcp4ZqH 3Ilu+9q8y2m1r6uoijkaKfZPFHCHM9BrmufHQblTdTlOSGg1vbwXu3F28kfqURe7rX KqAObXggWPv7CuTjL9ckC2Xwm45sAVyy+dahrPC8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97995: virtio_console: do not free control-out buffers on remove Date: Fri, 25 Sep 2026 12:24:58 +0200 Message-ID: <2026092522-CVE-2026-97995-2621@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3413; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=j7xqlRgk6OVAzMp7W9oiEsYZzhj4dy6FbdzLydenayc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvOO4Z+12iyk4oJl46cva8911Jjf7Qk9LXuvt6UpuP SUp7Lq+I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYyQZVhruSq9Ze+CS7ZsNkh wffnx853B/d23GFYsGqft/0HE4kJvIUPrm44ZXNfMLN9LwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: virtio_console: do not free control-out buffers on remove __send_control_msg() publishes &portdev->cpkt as the control-out virtqueue cookie. remove_vqs() walks every virtqueue and passes leftover cookies to free_buf(), which treats them as struct port_buffer and reads sgpages. If a control message is still on c_ovq when the device is unbound, free_buf() reads past the ports_device object. KASAN reported slab-out-of-bounds in free_buf(): free_buf remove_vqs virtcons_remove unbind_store The object was the ports_device allocated in virtcons_probe(). Drain c_ovq without freeing. The packet lives in portdev and is released with it. The Linux kernel CVE team has assigned CVE-2026-97995 to this issue. Affected and fixed versions =========================== Issue introduced in 4.17 with commit a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b and fixed in 6.12.111 with commit 177ee901aa2bab02e7f1f8edbb814fd5e386ed62 Issue introduced in 4.17 with commit a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b and fixed in 6.18.53 with commit a80c33488e0bbe642ed803b13a4ac8078a70b507 Issue introduced in 4.17 with commit a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b and fixed in 7.2.7 with commit f620c40ea6862feed84deb105568b21ec53a7830 Issue introduced in 4.17 with commit a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b and fixed in 7.3-rc3 with commit 894f98e73983f37354214a89a3a7fd35bf9e3072 Issue introduced in 3.16.60 with commit f92b16b815efe8207090a9b5a767618fd89542ca Issue introduced in 3.18.108 with commit d2bbfac82b7942afc5d8e564d7087835280df495 Issue introduced in 4.1.52 with commit a88e13d9a092fbb772d380944b44eb549ef131fe Issue introduced in 4.4.131 with commit dd807a784fd36f4136516d5858efb6473dda422c Issue introduced in 4.9.98 with commit 47cb14192bcbba3f15b1c3561e05e084e56fdef6 Issue introduced in 4.14.39 with commit 6b1c41a0f7183702abb7a104c6c7e196ad69a6b3 Issue introduced in 4.16.7 with commit 9037306163a6ba5587e4b5ca511ac7be4fb7295b Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-97995 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/char/virtio_console.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/177ee901aa2bab02e7f1f8edbb814fd5e386ed62 https://git.kernel.org/stable/c/a80c33488e0bbe642ed803b13a4ac8078a70b507 https://git.kernel.org/stable/c/f620c40ea6862feed84deb105568b21ec53a7830 https://git.kernel.org/stable/c/894f98e73983f37354214a89a3a7fd35bf9e3072