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 246DA4E535D for ; Thu, 17 Sep 2026 16:18:50 +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=1789661931; cv=none; b=WM3rWA9SP45MN4nCLdHUehWl47PHH7h0aUXR2v2k0n2nNSRIKm0SWPiF2SU2bqqHrHy65w1Lo8W1HgwWgDGWLOpJzKEjnXNGAU19wl8nY+NEG/CEYTrltIjF7++T6h1p0yAOECx4WSF41LDTt3JfXfjuOWM9Pl+tQZqxJ7DGuFA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789661931; c=relaxed/simple; bh=Hzj6QAo5QiOYZ5Bx9w6JfudDJENKuBu3S8Jni4Xl2Xs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=e0GgHGyerfMD6U+cKCnaveMv8caNs58hESQRFwU4lLockWQM9HyJqgtEpDurj93drG09+Pbqr2o8pL/Xch6t9Aq8ppZBvlvXPggcOhg3S3nxGfz6aJ/13g2jeguI1JFUjt7/Xj/SKMKD1qVZklF4aIpM0HSvsVFwjyMerQtyPnE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iGLZcNjo; 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="iGLZcNjo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7ABFE1F000FF; Thu, 17 Sep 2026 16:18:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789661930; bh=/1/siG2/WTCpn+W9ySAsU8oTnHDFsvbrTPy25xZEcxs=; h=From:To:Cc:Subject:Date:Reply-To; b=iGLZcNjohactxuEhKPPZplYvirGq0py0VM8lXLLvzLb1lrWN68+1mvtKDUHgMtpJQ uLF4YswVF/o4miDQk+H1DmrTJ6y50aVhPqGCaV9BE7oHbKMile+9K8bqoM2tFeKfjf dKa7XYETCoHTy1CeRlEpM+gjLWvgEIXVvGKEP0xo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90184: null_blk: serialize configfs attribute updates with device setup Date: Thu, 17 Sep 2026 17:10:14 +0100 Message-ID: <2026091730-CVE-2026-90184-5719@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=5075; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=m/U68bhM+BkmXdBOYbIDQQX1JRDdZ3jhGbqXr2sEqw4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBOrMVzfukA6vnvbzvpeq1KJYn1c1c9s+JO1YsIS1/ 0ehwOmmjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIABfDfL/Q+oKNsxaXnTwc e27fQjb2tN2m9gxzhQ4+TeIQqlg4yUrxm1HaobfLLi8PBQA= 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: serialize configfs attribute updates with device setup The attribute store methods generated with NULLB_DEVICE_ATTR() refuse to change the configuration of a live device by testing NULLB_DEV_FL_CONFIGURED, but that flag is only set by nullb_device_power_store() after null_add_dev() has returned, and the store methods take no lock at all. configfs only serializes writes to the same open file (buffer->mutex), so a write to any attribute can run concurrently with null_add_dev() and change the device configuration while it is being used. null_add_dev() reads the configuration several times, e.g. dev->zoned is read once to set up the queue limits and once to initialize the zone resources: CPU0: echo 1 > nullb0/power CPU1: echo 1 > nullb0/zoned nullb_device_power_store() mutex_lock(&lock) null_add_dev() if (dev->zoned) -> false /* no BLK_FEAT_ZONED */ nullb_device_zoned_store() test_bit(FL_CONFIGURED) -> 0 dev->zoned = true blk_mq_alloc_disk() /* queue is not zoned */ if (nullb->dev->zoned) -> true null_register_zoned_dev() blk_revalidate_disk_zones() blk_revalidate_disk_zones() is then called for a queue that does not have BLK_FEAT_ZONED set, which triggers its WARN_ON_ONCE() and fails the device setup with -EIO: WARNING: CPU: 2 PID: 322 at block/blk-zoned.c:2357 blk_revalidate_disk_zones+0x4c/0x560 Clearing dev->zoned in the same window is worse: the queue is created with BLK_FEAT_ZONED but the zone resources are never initialized, so add_disk() succeeds for a zoned disk that has no zones. And a store that lands after the last dev->zoned test leaves dev->zoned set while dev->zones is still NULL, which null_process_zoned_cmd() dereferences on the first write. Fix this by taking the global lock, which nullb_device_power_store() already holds across null_add_dev() and null_del_dev(), around both the NULLB_DEV_FL_CONFIGURED test and the update of the device configuration. The submit_queues and poll_queues apply callbacks are now called with that lock held, so remove the locking they did themselves. Since the store methods can run as soon as configfs_register_subsystem() returns, that is, before null_init() gets to mutex_init(&lock), also initialize the lock statically with DEFINE_MUTEX(). The Linux kernel CVE team has assigned CVE-2026-90184 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14 with commit 3bf2bd20734e3e6ffda53719a9c10fb3ee9c5ffa and fixed in 6.1.188 with commit 6352e7ead2d8111802a554eeb94886f5a9894bb9 Issue introduced in 4.14 with commit 3bf2bd20734e3e6ffda53719a9c10fb3ee9c5ffa and fixed in 6.6.157 with commit 7de792b4c48fba02a36a8077032f7d5093c925e5 Issue introduced in 4.14 with commit 3bf2bd20734e3e6ffda53719a9c10fb3ee9c5ffa and fixed in 6.12.110 with commit aed8af338a09a64d63b068a803c4ecfc5701dd4c Issue introduced in 4.14 with commit 3bf2bd20734e3e6ffda53719a9c10fb3ee9c5ffa and fixed in 6.18.52 with commit 32456a85995579e56c60cc53c357cda75a9d4f7c Issue introduced in 4.14 with commit 3bf2bd20734e3e6ffda53719a9c10fb3ee9c5ffa and fixed in 7.2.6 with commit d3d35dd045a35991bf6fd13de5f293e6dd7bf3b3 Issue introduced in 4.14 with commit 3bf2bd20734e3e6ffda53719a9c10fb3ee9c5ffa and fixed in 7.3-rc1 with commit 4e1f23f9c33c156be7e313b40695af5a3a834739 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-90184 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/6352e7ead2d8111802a554eeb94886f5a9894bb9 https://git.kernel.org/stable/c/7de792b4c48fba02a36a8077032f7d5093c925e5 https://git.kernel.org/stable/c/aed8af338a09a64d63b068a803c4ecfc5701dd4c https://git.kernel.org/stable/c/32456a85995579e56c60cc53c357cda75a9d4f7c https://git.kernel.org/stable/c/d3d35dd045a35991bf6fd13de5f293e6dd7bf3b3 https://git.kernel.org/stable/c/4e1f23f9c33c156be7e313b40695af5a3a834739