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=1795154366; b=RcxzMsAUezqkymwlX1joDJHQojq3/1C902AYo4VjggnN4IHKTAdu6Ig0RYib4YVVO73j mQKvyUFB5QmTXutOR4uQ3J2LO1AF4j+1mHPCUw2ZOoQegSdqZGMSEwhHebGGpNu065sjx d+jS2UgpMJvelHeqxksLR7MLa8ddjgp/1j0YoUJC2VmB2GZbxwM0brmKRfH/dD+2QuLGx 6wjapAFrWxIrRS+uzMQOepykzY2DlNW33huFkn38sxnvnfRYtCZ1a4RAJ0gC6uESRXzYQ Cq80UciZcg1dJMm8fsk/Acgg+8M1iABYGrcQCUjOuQKKzVLacGzdWRvvzWIp9LG6teA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154366; 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=c9ErSfCAmot8AcPA9aYDkMZpFaewBvvKJJ40a+lpdxQ=; b=gNfRpUFNPDgDMpkZW4c1zdvsrU07OEs+9+UXnvC44XMfhlgLAvVx5qpM0fA2Y280kfSH 46xntoUFwGztyvJD2UYQXYz5EEfGkBtSI0uAURXfSR2I3XFlXeo7iX+3Chuh8CekeCwRv W/agDhCM6/bFGvOl21AlgZFK3YektXG4jBTaOUIxRMpaoXU4+73ty/hfgN+YLTKmS2F+M o2sqQ9VICBbb75WfdHncdL+nplOX7w6EhEnNYo4JhaQ5JzH0CtPytg7+aK1/GTpQCaEZP MAF7fINXwHsdYMXcTcFDZPVHHTKaYFG3zRcbyDOR6EwxDSH6LoM92oP2DXiyNxDbNqQ== 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=MDaLiYBZ; 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 00DC8606A50B for ; Fri, 20 Nov 2026 05:59:26 +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=MDaLiYBZ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51CB81F000C4; Fri, 20 Nov 2026 05:59:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154365; bh=c9ErSfCAmot8AcPA9aYDkMZpFaewBvvKJJ40a+lpdxQ=; h=From:To:Cc:Subject:Date:Reply-To; b=MDaLiYBZB7nemV/Yvb5b+pSxDkVTBTOMVFf2cmlaX/eM3rEI/2sHEkWeXtwhlC/r3 cmq0goyCOTiI38CRccBrMj8BYOcVPtnCxGYcm51mlIuVHEWgdGVtBYUmZEXIgjWvPm v5HRnC4YB83KM4pxWGfuULXEaMmoVit7FoTMwN3Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99681: blk-mq: fix out-of-bounds read in blk_mq_free_rqs Date: Fri, 20 Nov 2026 06:51:07 +0100 Message-ID: <2026112055-CVE-2026-99681-1853@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=3767; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WWGYWohohJqgRD4YLRDI9OcR/ttP+V8CkSOPAvDsyQQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/7zc3vN2/YdNMH4dVNyT/SHqnn3zF/HyBYpWSglVq/ H/jsHdPOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAih10YFpywj/h+0XJLyrND O15bHnW7K2Q/dw7DTMa/ntcs599iasjxcvgjUW21IVPHGgA= 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: fix out-of-bounds read in blk_mq_free_rqs A KASAN slab-out-of-bounds read can occur in blk_mq_free_rqs() when there is a mismatch between the number of hardware queues allocated for the IO scheduler (et->nr_hw_queues) and the number of hardware queues in the block tag set (set->nr_hw_queues). This mismatch can happen if blk_mq_update_nr_hw_queues() fails halfway through (e.g., due to memory pressure during blk_mq_prealloc_tag_set_tags()). In this error path, the elevator is restored with a larger number of hardware queues than the block tag set actually has. When the elevator is later freed, blk_mq_free_sched_tags() iterates up to the new et->nr_hw_queues and calls blk_mq_free_rqs(). In blk_mq_free_rqs(), it attempts to access set->tags[hctx_idx] to get the driver tags. Because set->nr_hw_queues was not updated due to the earlier failure, set->tags still has the old (smaller) size, leading to an out-of-bounds read. BUG: KASAN: slab-out-of-bounds in blk_mq_free_rqs+0xde/0x680 Read of size 8 at addr ffff88818d67fc28 by task syz-executor117/5839 Call Trace: blk_mq_free_rqs+0xde/0x680 blk_mq_free_map_and_rqs+0x40/0xf0 blk_mq_free_sched_tags blk_mq_free_sched_res+0xeb/0x280 elevator_change_done+0x1d2/0x5c0 elevator_change+0x34f/0x480 elv_iosched_store+0x504/0x630 queue_attr_store+0x207/0x2b0 To fix this, explicitly check if hctx_idx < set->nr_hw_queues before accessing set->tags[hctx_idx]. If hctx_idx >= set->nr_hw_queues, the hardware queue doesn't exist in the tag set, meaning there are no driver tags to clear mappings from. In this case, safely set drv_tags to NULL. The subsequent call to blk_mq_clear_rq_mapping() already handles a NULL drv_tags pointer and will safely return. The Linux kernel CVE team has assigned CVE-2026-99681 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit 04225d13aef11b2a539014def5e47d8c21fd74a5 and fixed in 6.18.64 with commit a66d71dddc041ddf02c0476778573c5dba30f758 Issue introduced in 6.17 with commit 04225d13aef11b2a539014def5e47d8c21fd74a5 and fixed in 7.3.5 with commit 92ea40ca224ca9909dc7a5ac80dfb3e7cb0e6cae Issue introduced in 6.17 with commit 04225d13aef11b2a539014def5e47d8c21fd74a5 and fixed in 7.4-rc2 with commit 894e4e6084924cfd590968d45fad20908e02ddae Issue introduced in 6.16.4 with commit e01facfb54a9b2e1ad7bbb00601a42b16d276d81 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-99681 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/a66d71dddc041ddf02c0476778573c5dba30f758 https://git.kernel.org/stable/c/92ea40ca224ca9909dc7a5ac80dfb3e7cb0e6cae https://git.kernel.org/stable/c/894e4e6084924cfd590968d45fad20908e02ddae