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 D86B1390CBA for ; Sun, 18 Oct 2026 16:20:28 +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=1792340432; cv=none; b=CDPAmh1Vu5SCIFftmRgzBG3cwE3YeoRR7bnhNA1ZcXodn8rdMU9sZ7iXbPVrlqOst0GWtnmabpuXfRC2zXNTX0+yq0PReMo9MX8/cnCoKg+aiDYqGJnbCAgXi/ogkhLf1wcfPSdii+YlBzqDnGjCf7IjL2jsUMiKvjdcZnVn24I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792340432; c=relaxed/simple; bh=6auS0z9pBvOGrowJp21kHWmiTFgUScJveTKOOP4fgbs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KS6FRn+WQ8cUuhc7nnZ35BPSS6GEUZqBpOYSrhh1GI9cqbUPqLHemAbEj57QbuJjEMNThpmEaF/NWdoLue/qsXl97EDzGoO0E9s+rH2O/ylGYws7KFfq0M89MYbjjIjTBQShHMMa3ikeaJ3+lqaByokwNmxfMeTzjF+/bEmGGwM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bjx7gPnV; 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="bjx7gPnV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C07D41F000C5; Sun, 18 Oct 2026 16:20:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792340428; bh=aKKouPML3udeAq4Qcw12gmc1AjDu6vx3n0QpmBN9RPk=; h=From:To:Cc:Subject:Date:Reply-To; b=bjx7gPnV08Q41K0WOUZ7AOqh0KBlm/AVdgd/jYtXYOECoB37Pw6NQqe7kwprUyUTC sd1DA3Ha741P4YjpLLNNMmQC74mfgDDFCUC3vzOd3+FGp//wbb80kqxT5j/99va/Ly pTwzxT4QNWlMfFcAyvHgNV2uS+/91I9sb/1AIOQQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98820: blk-mq: set RQF_USE_SCHED when the operation is known Date: Sun, 18 Oct 2026 17:46:35 +0200 Message-ID: <2026101828-CVE-2026-98820-5fbf@gregkh> X-Mailer: git-send-email 2.56.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=2663; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hW43vdCF3DjeWHRTphyscZgHcFEwiudjiwEdqKMVdpU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXsZc2ikkuXfaUtfmvHkL1km9FTM0XNxl8pbj4cGkq 0vOyXqs74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJOKkyzLPSfOv7zpNf9Zj6 0kXn+fiFxE46hTAsWPbS82zZuSdHQwzWbXz6/AXnsXbR1QA= 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: set RQF_USE_SCHED when the operation is known The cached requests are allocated for one operation but can be handed out for another. A passthrough command has RQF_USE_SCHED cleared, so using those flags for a subsequent read/write bio will insert it into the scheduler without ->prepare_request() and frees it without ->finish_request(). For kyber, this leaks the domain token acquired at dispatch and stalls the queue. Don't set RQF_USE_SCHED based on the first operation the batch happened to be allocated for. Instead, set it after the request is claimed by an operation. Introduce a helper function, blk_mq_rq_late_init() for this, and absorb blk_mq_rq_time_init() since the two run together. The Linux kernel CVE team has assigned CVE-2026-98820 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit 4b6a5d9cea911424e84107df8c4eb8317938d2cd and fixed in 6.18.56 with commit 790730e4d95de8356a573d4b4864486bba731863 Issue introduced in 6.1 with commit 4b6a5d9cea911424e84107df8c4eb8317938d2cd and fixed in 7.2.10 with commit 2c47ebc27fa72078e26177cd458cdaf3006a9685 Issue introduced in 6.1 with commit 4b6a5d9cea911424e84107df8c4eb8317938d2cd and fixed in 7.3-rc6 with commit ab6c756f28c741d704a7c3e04814bfc3adf6f818 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-98820 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 block/mq-deadline.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/790730e4d95de8356a573d4b4864486bba731863 https://git.kernel.org/stable/c/2c47ebc27fa72078e26177cd458cdaf3006a9685 https://git.kernel.org/stable/c/ab6c756f28c741d704a7c3e04814bfc3adf6f818