Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 CA9CB2E5B0C for ; Tue, 7 Oct 2025 15:24:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850661; cv=none; b=m2pg62QPXxcEcK1rnGt+sz7kcBPATsVYDoGJNJf3mP+UI/H5Oh7ppd5qhtX+fTO7t4hBLW4/PJVvVbwEjB4A4+PXr+AfUukLx+nTItCJXxK2REsLnHZ2KvwM2xcckdfDOs5XH5C73ORhKMMWmSjdsSLRAGRhjNuJps+0zRZt4vg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850661; c=relaxed/simple; bh=1puhVcdRVcaRnrbTgDybr1DOusjGxFGzlmuMQN8gy/4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gwz6YossF1KVDwa3mCFT1DCAcr+eWwwS5jd0IYMpl0XMYLDSaK0RgGo58NQQwjdjMDj1Staj7QAI2NNlp5MEJKE4201+0v9duy3cDPUTk4UnnLOaC3CqvmhzU84PoLzxZfWDMexWr1bgLDLmzhr69STR1AS3NtecsUSMawU+T9I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AO8ZQuR+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="AO8ZQuR+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C257C4CEF1; Tue, 7 Oct 2025 15:24:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850661; bh=1puhVcdRVcaRnrbTgDybr1DOusjGxFGzlmuMQN8gy/4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=AO8ZQuR+ulXW6m5oJZoV6a4WQmCw1vpudS0aHBBrSA5GdZWfg6iX5BzTll+SrFhZS NfSIOXJha6GIDwOwhA3aGQ5V3xyANaE6eBawy3AV61I2MLEv/mrl/UeDOwi0n70aE7 JMTyZEEgDUxuTEM3TnhlqONbcuBnYjJ7vEi5zcuc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50554: blk-mq: avoid double ->queue_rq() because of early timeout Date: Tue, 7 Oct 2025 17:21:12 +0200 Message-ID: <2025100700-CVE-2022-50554-f4fb@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2629; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0KOber4b8AhCOglp06Mx8seGZzvZCAGa9VaaD0l63XQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9e/oSJUs3vrsQ/5t2aXrYtRPJPpuFtl+xzea95L1o Tx/Xu0pHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARpg6GBQfuabC9v/1C61uJ +UXWizvcZyUFRDIsmHmvVUMsVqchsYrD6NXZ9+VnNKfVAgA= 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: blk-mq: avoid double ->queue_rq() because of early timeout David Jeffery found one double ->queue_rq() issue, so far it can be triggered in VM use case because of long vmexit latency or preempt latency of vCPU pthread or long page fault in vCPU pthread, then block IO req could be timed out before queuing the request to hardware but after calling blk_mq_start_request() during ->queue_rq(), then timeout handler may handle it by requeue, then double ->queue_rq() is caused, and kernel panic. So far, it is driver's responsibility to cover the race between timeout and completion, so it seems supposed to be solved in driver in theory, given driver has enough knowledge. But it is really one common problem, lots of driver could have similar issue, and could be hard to fix all affected drivers, even it isn't easy for driver to handle the race. So David suggests this patch by draining in-progress ->queue_rq() for solving this issue. The Linux kernel CVE team has assigned CVE-2022-50554 to this issue. Affected and fixed versions =========================== Fixed in 6.0.16 with commit 7a73c54a3750895888ab586896736c9434e062a1 Fixed in 6.1.2 with commit 8b3d6b029a552d2978bbac275303d11419826a69 Fixed in 6.2 with commit 82c229476b8f6afd7e09bc4dc77d89dc19ff7688 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-2022-50554 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: block/blk-mq.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/7a73c54a3750895888ab586896736c9434e062a1 https://git.kernel.org/stable/c/8b3d6b029a552d2978bbac275303d11419826a69 https://git.kernel.org/stable/c/82c229476b8f6afd7e09bc4dc77d89dc19ff7688