Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154268; b=yI78XE1VE1VWKfwDeeUfQeCfNmb7fIpVRfCsORO1StIuskgu9JSep7YFNprM5hSdZpht NRWZ7h+QtZ15XPzcrgoCl0377Vx8SbKgat01LeMnaIr1eFYxqKXLDajLRtzEvrrzsShVY ia2a9w5TvnSzVLN4RxGKFR3guNwQIALMWXd9FUZ1G/woRJfKK1lIZg7TqskSFPHEGDewV lRRmL5zQc1M2bUJztlO1o0c19BrBNOiFx/lV3ArE2eqnRMHbnMjIxpGHZtV0DIbmNbjF8 h/n8rex7mzHLYpUwaK/YsWofyKb+TJ6a7O/0dGe2atLSU4Ud2BLaDWhfGiGlMnt2wtA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154268; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=3Ve7d8r/uQJwd3XPiJaquxBGqXD5E/zWP1QfVXskzf4=; b=eIbgL8zBdMRxlCBG0lcgQwdI5ZWqgi/rYi67r2d/X0QvxdfIAUsudqhoPWw2QaTd5j1B mb6LY252sQo3puyo7b6gk34Bkv9Y2SfH52Tupe3drIPizRbuueZ8SzZ8c0GWjZa1SmPhP /qT8vWrfQ53Yv8l2ki9MyydAZIz67rOk8OjcQ013sHsIPrtHeIKi6+hrdNVgCBx10MjBr vOSYXcPdULwyrtluJ0eqlnJLckvNzxXA4k1QG1LprBy91rk04qImXh6ETcjd5n/t5rMEn RLoHIkbYcekBhDK3+EPXnPJIarDF/hNPSk3DP6Yh/5+6OOxDMGV8E1BsGpQPXyjXlLA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=uxz8p738; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A680E60A2603 for ; Fri, 20 Nov 2026 05:57:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=uxz8p738 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B275F1F000EB; Fri, 20 Nov 2026 05:57:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154268; bh=3Ve7d8r/uQJwd3XPiJaquxBGqXD5E/zWP1QfVXskzf4=; h=From:To:Cc:Subject:Date:Reply-To; b=uxz8p738XtBta7MCi9Oa8rXx+7Um/usawiM14FgR8fd5msDrXEEcgbdZjhxrfkv6O z7PM1QWuyH3IdzK3Bf9/rds+q+XnlL/TJobZf8yRrP7eC4C24Yy7yrKKNCK7U92IvI uSc4gOh6a0dNAJdHaSkRXH6a2l7Fy7DHF+LV1fus= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99685: iommu/virtio: Reset device before deleting virtqueues on probe failure Date: Fri, 20 Nov 2026 06:51:11 +0100 Message-ID: <2026112056-CVE-2026-99685-134e@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2889; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NrWF6ostyHwWKhm6Zo3JfvWqEh6LX0c78vylKnMqv6Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/77dM/VU08YXW7SVyipVrju1/98eWw0rBMXmnoeEpn hlNT9vXd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE/t5imGceMzXzi2q+a3rH thMCgV4WlxzmaDMs2LlH/3a5RLXDfkaLI5YfPm6afo/DDgA= 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: iommu/virtio: Reset device before deleting virtqueues on probe failure viommu_probe() marks the device DRIVER_OK before populating the event virtqueue and registering the IOMMU device in sysfs. viommu_fill_evtq() hands the device a set of device-writable buffers through virtqueue_add_inbuf(), so from that point on the device may write into them and into the rings. If either step fails, the error path deletes the virtqueues without resetting the device first. The event buffers are allocated with devm_kmalloc_array() and are released as probe unwinds, so the device can go on writing to memory that has been freed. Reset the device before deleting the virtqueues, the way viommu_remove() already does. The Linux kernel CVE team has assigned CVE-2026-99685 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit edcd69ab9a323b7ac7a86e1c44b6c9c46598391f and fixed in 6.12.118 with commit e09d65fd554b78c7277f6379517c773ff36d55d1 Issue introduced in 5.3 with commit edcd69ab9a323b7ac7a86e1c44b6c9c46598391f and fixed in 6.18.64 with commit e60e6db9d07b2ebaff2e055a086fa8e8d14f565c Issue introduced in 5.3 with commit edcd69ab9a323b7ac7a86e1c44b6c9c46598391f and fixed in 7.3.5 with commit cfdb3b6915299ebb6ffc98566f9cf73d4d1f1598 Issue introduced in 5.3 with commit edcd69ab9a323b7ac7a86e1c44b6c9c46598391f and fixed in 7.4-rc2 with commit 1f8efac19a0870cdfdf8477e447e5a07ddce9623 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-99685 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/iommu/virtio-iommu.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/e09d65fd554b78c7277f6379517c773ff36d55d1 https://git.kernel.org/stable/c/e60e6db9d07b2ebaff2e055a086fa8e8d14f565c https://git.kernel.org/stable/c/cfdb3b6915299ebb6ffc98566f9cf73d4d1f1598 https://git.kernel.org/stable/c/1f8efac19a0870cdfdf8477e447e5a07ddce9623