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 4D40126F44C for ; Sat, 4 Oct 2025 15:19:35 +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=1759591175; cv=none; b=SYrw4ypZmsj6IMTiUVJsM4DyePN9kfEdbwBN0tj753yEQKwd3Xdt/Wl9pAASY78LrYWJIUOCDNRLkY9sLX/znvmHdaJCW9wlGH9+Rmg6k+kW/LQlzsChwcdwWcoNEZqrfTLYZxZOVXLd5IItdx7UX9JUJ6P9Bob1E6jjXe6eW0I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759591175; c=relaxed/simple; bh=fKI3j5RGumFuucn/uSfhZ2HAHdbFGSbIuyRY7uVde7E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KLxR0X3dtc2Uk/dMuvbTwNa6WrmFKvvLkPQJlR8yXdl1aEvTbu1atIHj4PQdJj28dNblbvPZlRhMifFKqkweICg/VTWXerqBhv407RcD9vhU4J3T1tBFxwSsy6VcfiJa8di25Cvw5OFNPV7a3FQFK6rz/3QUPc+orRwGeJ0j8/M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UmE07ZDs; 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="UmE07ZDs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFE78C4CEF1; Sat, 4 Oct 2025 15:19:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759591175; bh=fKI3j5RGumFuucn/uSfhZ2HAHdbFGSbIuyRY7uVde7E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=UmE07ZDs3KnLEsX/xLnRMRRsbYoBF/PzxYVwBiAdg6mFnlW4Re8JRDsFbkUA4jlCG KmZU8q64r17wm6892jh97gQaK/+35vRDiRpl1bbqA+13ygmn0fG57rVnDF48Sa0mKP 8boyIUEo2ds6SGZJtr9nOMHnnhLUY/q/DU1FFArU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53576: null_blk: Always check queue mode setting from configfs Date: Sat, 4 Oct 2025 17:17:30 +0200 Message-ID: <2025100454-CVE-2023-53576-c5dd@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=4682; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=U36F0X2jGLNEng0/GRhPtXgxhAvYRXj207mhMK5+8Bw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPrdLZNqVw75G9In3p0wO2IA73ra2FYftT10deEQ+0v tZ+/eSMjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIcDvD/LJzH89rnvf/MVVl aca3Dm6dpuzjkQwL5hse0/PavX5ibNT+HbdXXpRoLnziAAA= 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: Always check queue mode setting from configfs Make sure to check device queue mode in the null_validate_conf() and return error for NULL_Q_RQ as we don't allow legacy I/O path, without this patch we get OOPs when queue mode is set to 1 from configfs, following are repro steps :- modprobe null_blk nr_devices=0 mkdir config/nullb/nullb0 echo 1 > config/nullb/nullb0/memory_backed echo 4096 > config/nullb/nullb0/blocksize echo 20480 > config/nullb/nullb0/size echo 1 > config/nullb/nullb0/queue_mode echo 1 > config/nullb/nullb0/power Entering kdb (current=0xffff88810acdd080, pid 2372) on processor 42 Oops: (null) due to oops @ 0xffffffffc041c329 CPU: 42 PID: 2372 Comm: sh Tainted: G O N 6.3.0-rc5lblk+ #5 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 RIP: 0010:null_add_dev.part.0+0xd9/0x720 [null_blk] Code: 01 00 00 85 d2 0f 85 a1 03 00 00 48 83 bb 08 01 00 00 00 0f 85 f7 03 00 00 80 bb 62 01 00 00 00 48 8b 75 20 0f 85 6d 02 00 00 <48> 89 6e 60 48 8b 75 20 bf 06 00 00 00 e8 f5 37 2c c1 48 8b 75 20 RSP: 0018:ffffc900052cbde0 EFLAGS: 00010246 RAX: 0000000000000001 RBX: ffff88811084d800 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888100042e00 RBP: ffff8881053d8200 R08: ffffc900052cbd68 R09: ffff888105db2000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000002 R13: ffff888104765200 R14: ffff88810eec1748 R15: ffff88810eec1740 FS: 00007fd445fd1740(0000) GS:ffff8897dfc80000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000060 CR3: 0000000166a00000 CR4: 0000000000350ee0 DR0: ffffffff8437a488 DR1: ffffffff8437a489 DR2: ffffffff8437a48a DR3: ffffffff8437a48b DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: nullb_device_power_store+0xd1/0x120 [null_blk] configfs_write_iter+0xb4/0x120 vfs_write+0x2ba/0x3c0 ksys_write+0x5f/0xe0 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x72/0xdc RIP: 0033:0x7fd4460c57a7 Code: 0d 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24 RSP: 002b:00007ffd3792a4a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fd4460c57a7 RDX: 0000000000000002 RSI: 000055b43c02e4c0 RDI: 0000000000000001 RBP: 000055b43c02e4c0 R08: 000000000000000a R09: 00007fd44615b4e0 R10: 00007fd44615b3e0 R11: 0000000000000246 R12: 0000000000000002 R13: 00007fd446198520 R14: 0000000000000002 R15: 00007fd446198700 The Linux kernel CVE team has assigned CVE-2023-53576 to this issue. Affected and fixed versions =========================== Fixed in 5.10.181 with commit e732a266b973cd4e115e2cc2ea5007119e8a7fbc Fixed in 5.15.113 with commit 35e304dbcefa95237a3d6f94c007bfb10f012b17 Fixed in 6.1.30 with commit fd35b7bb6d5a329c427924886949ab51f210200a Fixed in 6.3.4 with commit 651260e563d9f50827dac496dc8a0b9b23d5db1a Fixed in 6.4 with commit 63f8793ee60513a09f110ea460a6ff2c33811cdb 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-2023-53576 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/e732a266b973cd4e115e2cc2ea5007119e8a7fbc https://git.kernel.org/stable/c/35e304dbcefa95237a3d6f94c007bfb10f012b17 https://git.kernel.org/stable/c/fd35b7bb6d5a329c427924886949ab51f210200a https://git.kernel.org/stable/c/651260e563d9f50827dac496dc8a0b9b23d5db1a https://git.kernel.org/stable/c/63f8793ee60513a09f110ea460a6ff2c33811cdb