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 7FBAC4E73CD for ; Thu, 17 Sep 2026 16:18:56 +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=1789661937; cv=none; b=lLEMUExO8UUzYHtXCMLp73Rdqw1zxAWLU1/cVagCzVO9u//7wRjQyVC7T4YIBM5ljiYd9LSrY9M0OdscCKLdre+WSv/D9PHZN7sv09CiKgMj1KZ0GBIGahZuDjcTKd57x1pwpRcZf5LOZPQpmqhMrL5mNba6vUQf9lbLS8JxVxY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789661937; c=relaxed/simple; bh=BfXDTfDeiBmmb0YATSSm+ougNdPyNjwHvvOy5l1ara4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dP7HiaPzWDEJIu7lHl0N4WT1bTOReLlYnonalVLNokZcPRhSCtnUIcrrJih6gwpYpg+W+0EdkjRgeigsXdQSZroyeVkJNOp7qiugpzj4jtFqO+G4XoFp1i4VqUGsfvfV0p4pLvFE+NTF+bDkf/v1U2U2WAXtvxukBWCI0ocnPsk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gWGURx1b; 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="gWGURx1b" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7381F1F000FF; Thu, 17 Sep 2026 16:18:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789661936; bh=w/4qhE1lYFfEkGRGwt467TXWIWzyqp5ggBHgU0FIa5U=; h=From:To:Cc:Subject:Date:Reply-To; b=gWGURx1b+4lyjx0kSck1Ye6dxtK6LzxSe+NxovKfkKme2WVe9nhgzfzDgQfxxvbCH mYsQkk3g4qz8HxnZyjdoWj/QGAceMGF+JwY4j8Z2pJ4e03Pn1vWtzIs3UYsPdX3Iu0 aJAxiqT+vg/c5MddqNaycGPfQY83odLcQtSm6YRk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90186: null_blk: reject per-device queue resize for shared tag set Date: Thu, 17 Sep 2026 17:10:16 +0100 Message-ID: <2026091731-CVE-2026-90186-df37@gregkh> X-Mailer: git-send-email 2.55.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=4996; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Be7py3uFMFLcJluG1R3ptRL/HnK6Noc2BEYzZmKp7is=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBOr5ZPc1qm35qO9lkpepvnuF2w/dyvx2kehv6r+Y6 jU6gpZ2xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwESefWdYcFGBcdK0c+kyS948 MCvZLXVG41GNG8Mspm/L+5YdmfzsV/4sV8G4g/svzOz4CAA= 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: null_blk: reject per-device queue resize for shared tag set When shared_tags is enabled, null_setup_tagset() makes the device use the global tag_set, whose driver_data stays NULL. null_map_queues() therefore falls back to the module-wide g_submit_queues/g_poll_queues instead of any per-device value. Resizing submit_queues or poll_queues via configfs on such a device calls blk_mq_update_nr_hw_queues() on the shared set, shrinking set->nr_hw_queues. __blk_mq_realloc_hw_ctxs() only grows the q->queue_hw_ctx[] allocation, so on shrink it merely exits and NULLs the now-excess hctx slots. null_map_queues(), however, keeps mapping CPUs with the unchanged g_submit_queues/g_poll_queues, so mq_map[] ends up pointing at those NULLed hctx slots. blk_mq_map_swqueue() then dereferences the NULL hctx (hctx->cpumask), crashing the kernel: [ 460.218374] KASAN: null-ptr-deref in range [0x0000000000000098-0x000000000000009f] [ 460.219003] CPU: 24 UID: 0 PID: 1492 Comm: sh Not tainted 7.2.0-rc2+ #67 PREEMPT(full) [ 460.219792] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.17.0-4.fc41 04/01/2014 [ 460.220452] RIP: 0010:blk_mq_map_swqueue+0x4db/0x1430 ...... [ 460.228977] Call Trace: [ 460.229175] [ 460.229354] blk_mq_update_nr_hw_queues+0xd49/0x11c0 [ 460.229779] ? __pfx_blk_mq_update_nr_hw_queues+0x10/0x10 [ 460.230200] nullb_update_nr_hw_queues+0x1a9/0x370 [null_blk] [ 460.230694] nullb_device_submit_queues_store+0xd9/0x170 [null_blk] [ 460.231190] ? __pfx_nullb_device_submit_queues_store+0x10/0x10 [null_blk] [ 460.231776] ? configfs_write_iter+0x35c/0x4e0 [ 460.232122] configfs_write_iter+0x286/0x4e0 [ 460.232460] vfs_write+0x52d/0xd00 [ 460.232779] ? __x64_sys_openat+0x108/0x1d0 [ 460.233106] ? __pfx_vfs_write+0x10/0x10 [ 460.233413] ? fdget_pos+0x1cf/0x4c0 [ 460.233745] ? fput_close+0x133/0x190 [ 460.234038] ? __pfx_expand_files+0x10/0x10 [ 460.234368] ksys_write+0xfc/0x1d0 Reproducer: modprobe null_blk shared_tags=1 submit_queues=64 poll_queues=1 mkdir /sys/kernel/config/nullb/dev echo 1 > /sys/kernel/config/nullb/dev/power echo 1 > /sys/kernel/config/nullb/dev/submit_queues A per-device resize of a shared tag set is meaningless anyway, so reject it with -EINVAL in nullb_update_nr_hw_queues() when the device is bound to the global tag_set. The Linux kernel CVE team has assigned CVE-2026-90186 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit 45919fbfe1c487c17ea1d198534339a5e8abeae3 and fixed in 6.1.188 with commit 9c7bae099ddc92676ad1b7e29dd6c089e5f6196c Issue introduced in 5.5 with commit 45919fbfe1c487c17ea1d198534339a5e8abeae3 and fixed in 6.6.157 with commit fcd53f3e8b758c79c3f2420d28a2a1dce6fda61a Issue introduced in 5.5 with commit 45919fbfe1c487c17ea1d198534339a5e8abeae3 and fixed in 6.12.110 with commit f609f7bf9ce8c2fc427705c4a9f623a281239d06 Issue introduced in 5.5 with commit 45919fbfe1c487c17ea1d198534339a5e8abeae3 and fixed in 6.18.52 with commit 3e35ad503386a2e8a0e0460530dcbf421c79f6f2 Issue introduced in 5.5 with commit 45919fbfe1c487c17ea1d198534339a5e8abeae3 and fixed in 7.2.6 with commit baff300541a0012907cdde349728739fe16176d7 Issue introduced in 5.5 with commit 45919fbfe1c487c17ea1d198534339a5e8abeae3 and fixed in 7.3-rc1 with commit 1cdfe2fa62b48728a9b436fbbd3dbe4c11593e24 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-90186 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/null_blk/main.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/9c7bae099ddc92676ad1b7e29dd6c089e5f6196c https://git.kernel.org/stable/c/fcd53f3e8b758c79c3f2420d28a2a1dce6fda61a https://git.kernel.org/stable/c/f609f7bf9ce8c2fc427705c4a9f623a281239d06 https://git.kernel.org/stable/c/3e35ad503386a2e8a0e0460530dcbf421c79f6f2 https://git.kernel.org/stable/c/baff300541a0012907cdde349728739fe16176d7 https://git.kernel.org/stable/c/1cdfe2fa62b48728a9b436fbbd3dbe4c11593e24