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=1795154368; b=cG5OEBwd+YAezykckeujN8jLedbQ19TgD1vvHTeEmAbTEJbLprGerBUIAhXwpKIk96s6 Pro1fwGGpF7r49FNrhQ8+PdT/kEO7E+oW7KFQBPQB9cJ9WIqpQfYepiYF3kLEsGQ/JstM HGtrpjm4gkNX7xvAc6pGqPkJdjR670emMgKx072/bovL5J37cYibVSee/2B2HNgAYqqpS m8UkSnaAyYOR63h/tk/YMcJltRe+ecNvwxaDrLemmwFETggtSX6S5TP7lXNFkEdk4UcXQ efBJ9HLwHnK7nhKKhlQL6yFWfSfMrwH5pBwzcDHpgrgLCy9dvVmZvFGYgJ5F6TNoLgg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154368; 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=pZki3TjBrLQSQxh77TeWXo2VihqkGu4cKnuqahJvWNc=; b=dhHbG2rgGVCb4xPk6QisJgIofzjd6451o32AalMtscRyjzV3tt4CdmZaWI7R+yJ/LQd3 p65gvwRXmPwcPjN/1/EN6n26sbfq1fwzOMZJGAqe9j3YUjwTNT3OgLMyqwo/N9BRFifoC /gRAQ8M2ZeiuQlDiG/7KsaTAVA3/LtCcUPX1x34GyLxeD8AXVmdJxWphvAdJe2yJWmuCk ZIa+5IQmYU79MsDvjg8D1/mb81q9nC9e4LsdkLXvycNmSqYHSXysp7CRf7DTTaKR+je/x NYfnpfn+6BUV6G2N/MSqPxbCbxIllIguXEM1Jwo4aQKkumn/qQzP31l84bUOX29cs/g== 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=FFRzCJAz; 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 CE254606A514 for ; Fri, 20 Nov 2026 05:59:28 +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=FFRzCJAz Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C1231F000CA; Fri, 20 Nov 2026 05:59:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154368; bh=pZki3TjBrLQSQxh77TeWXo2VihqkGu4cKnuqahJvWNc=; h=From:To:Cc:Subject:Date:Reply-To; b=FFRzCJAzS93wBLxeHlWxoDCGrICyTwFe4KcyRFo1wnnl0Qk3zubBqyeUj2uQTOC30 JpNMgy2MQhqlXyrOcqLbYE9GSlNSMwnWPOv8fhZ+Dilk9wBQD1quwVlMEaC+8hUoG8 diAXP0+Xr2Joys7nakPUIpoA0CmW1I+JwESys4XA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99682: virtio_blk: use synchronous quiesce in virtblk_freeze_priv() Date: Fri, 20 Nov 2026 06:51:08 +0100 Message-ID: <2026112055-CVE-2026-99682-f1ec@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=3496; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+av4TQ/ADJr9FsCJxwn913X9uAwbqDjYDrPtssGh4hs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/7ze3cq+b9+K5uMUC6dq1AaIL69qlgr28v8UU9idd/ a6751d9RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkhyrDgo1f/zGlONX3Wj3Z stpLf9e6y3MLVRnmcMnxrpheFOyg7jkheWuipvE+jWM/AA== 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_blk: use synchronous quiesce in virtblk_freeze_priv() blk_mq_run_work_fn() can call blk_mq_sched_dispatch_requests() through blk_mq_run_dispatch_ops(). The dispatcher checks QUEUE_FLAG_QUIESCED while the flag is clear. It can then be preempted before it gets a request. At that time, it has no queue usage reference, so blk_mq_freeze_queue() does not wait for it. virtblk_freeze_priv() then calls blk_mq_quiesce_queue_nowait() and blk_mq_unfreeze_queue(). A new request can enter the queue. The old dispatcher can run again, use its old flag check, get the new request, and call virtio_queue_rq(). At the same time, virtblk_freeze_priv() can reset the device, delete the virtqueues, and free vblk->vqs. The old dispatcher can then use a deleted virtqueue or a NULL vblk->vqs, and the kernel can crash. Fix this by using blk_mq_quiesce_queue(), which waits for dispatch code that was already running. Keep the existing freeze and unfreeze order. The queue remains quiesced until virtblk_restore_priv() calls blk_mq_unquiesce_queue(). The Linux kernel CVE team has assigned CVE-2026-99682 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 7678abee0867e6b7fb89aa40f6e9f575f755fb37 and fixed in 6.18.64 with commit 55cc03a17478e7da75df133a4d94ffa47856fee6 Issue introduced in 6.13 with commit 7678abee0867e6b7fb89aa40f6e9f575f755fb37 and fixed in 7.3.5 with commit 76f6e24c08a613361fb636d492934cda705d8890 Issue introduced in 6.13 with commit 7678abee0867e6b7fb89aa40f6e9f575f755fb37 and fixed in 7.4-rc2 with commit 6c6dec7883f8eb10b326bc9d109a4990c885d949 Issue introduced in 5.4.289 with commit d738f3215bb4f88911ff4579780a44960c8e0ca5 Issue introduced in 5.10.233 with commit 9ca428c6397abaa8c38f5c69133a2299e1efbbf2 Issue introduced in 5.15.176 with commit 6dea8e3de59928974bf157dd0499d3958d744ae4 Issue introduced in 6.1.123 with commit 9e323f856cf4963120e0e3892a84ef8bd764a0e4 Issue introduced in 6.6.69 with commit 12c0ddd6c551c1e438b087f874b4f1223a75f7ea Issue introduced in 6.12.8 with commit 92d5139b91147ab372a17daf5dc27a5b9278e516 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-99682 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/block/virtio_blk.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/55cc03a17478e7da75df133a4d94ffa47856fee6 https://git.kernel.org/stable/c/76f6e24c08a613361fb636d492934cda705d8890 https://git.kernel.org/stable/c/6c6dec7883f8eb10b326bc9d109a4990c885d949