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 8FC4B2C21CB for ; Wed, 14 Jan 2026 15:06:44 +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=1768403204; cv=none; b=tEgLfIbqVxEmPwNYdbi7PrUS++EzAs6pM6ST0RzSu9oh7h83uYUfWhBx9zQeVJJLH+L3q+1y6fDjTJ8tBOzU9t7iMRZQtVdKcLoarPkKH/4vyTT8jz9I2XMTQn643uh662/LNAgi9xq2fdTirdlnkJ5ZotDPlRIjPIK6zm2anO0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768403204; c=relaxed/simple; bh=8zMTHfEN8TKq1lhIg+Z3JCBNazu2Vy19O3OA/IbJm7k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WZ5QVkBPExjzeIHDQh8ctlkTxB+wQuh7DocDwRD3axOb8ae3qcTKXwJ5PKGrScPoFVSetSnLE+jcvWI77dKBz3+iE4VD7sR29qne9SVHr8il07Y1nUFROiu54WPZnYG67tMYx10mEtkQZ6SNb55Hrq9YHc5GF79JcGh0RzNuqWw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YVXgvMdD; 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="YVXgvMdD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4158C4CEF7; Wed, 14 Jan 2026 15:06:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768403204; bh=8zMTHfEN8TKq1lhIg+Z3JCBNazu2Vy19O3OA/IbJm7k=; h=From:To:Cc:Subject:Date:Reply-To:From; b=YVXgvMdD+l1iZOWW+w9zX7ZAU12JGqI/xj5bNdJsrU5hdzlOz0XFkUjcNbMtuaIdf y22YdwWYE3G3MQBi6fHGEvn6yGTw750uxYAkB8XNrpp57jSUs3vSzy9OrPZqXnJvfV 23nXBqF3ERJJ0pj8N+miE/Zh6bCD+3ctrgS3jf1Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71117: block: Remove queue freezing from several sysfs store callbacks Date: Wed, 14 Jan 2026 16:06:22 +0100 Message-ID: <2026011414-CVE-2025-71117-0e3e@gregkh> X-Mailer: git-send-email 2.52.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=3776; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=231Dfh0NxHijSoPbxjZM1quUQa/GI2RX6nMqLRwmIUw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnpG5573T4UemHyPOZP5wO3fzt42+rYWcb9vrnukiyzd ize803zfkcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBM5OYRhrmyMvb3DI7tL/gb 8P7iK8/XicdfPAhjmKfNEW6QrXFZbUrbIsHotKtNBZeU/wMA 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: block: Remove queue freezing from several sysfs store callbacks Freezing the request queue from inside sysfs store callbacks may cause a deadlock in combination with the dm-multipath driver and the queue_if_no_path option. Additionally, freezing the request queue slows down system boot on systems where sysfs attributes are set synchronously. Fix this by removing the blk_mq_freeze_queue() / blk_mq_unfreeze_queue() calls from the store callbacks that do not strictly need these callbacks. Add the __data_racy annotation to request_queue.rq_timeout to suppress KCSAN data race reports about the rq_timeout reads. This patch may cause a small delay in applying the new settings. For all the attributes affected by this patch, I/O will complete correctly whether the old or the new value of the attribute is used. This patch affects the following sysfs attributes: * io_poll_delay * io_timeout * nomerges * read_ahead_kb * rq_affinity Here is an example of a deadlock triggered by running test srp/002 if this patch is not applied: task:multipathd Call Trace: __schedule+0x8c1/0x1bf0 schedule+0xdd/0x270 schedule_preempt_disabled+0x1c/0x30 __mutex_lock+0xb89/0x1650 mutex_lock_nested+0x1f/0x30 dm_table_set_restrictions+0x823/0xdf0 __bind+0x166/0x590 dm_swap_table+0x2a7/0x490 do_resume+0x1b1/0x610 dev_suspend+0x55/0x1a0 ctl_ioctl+0x3a5/0x7e0 dm_ctl_ioctl+0x12/0x20 __x64_sys_ioctl+0x127/0x1a0 x64_sys_call+0xe2b/0x17d0 do_syscall_64+0x96/0x3a0 entry_SYSCALL_64_after_hwframe+0x4b/0x53 task:(udev-worker) Call Trace: __schedule+0x8c1/0x1bf0 schedule+0xdd/0x270 blk_mq_freeze_queue_wait+0xf2/0x140 blk_mq_freeze_queue_nomemsave+0x23/0x30 queue_ra_store+0x14e/0x290 queue_attr_store+0x23e/0x2c0 sysfs_kf_write+0xde/0x140 kernfs_fop_write_iter+0x3b2/0x630 vfs_write+0x4fd/0x1390 ksys_write+0xfd/0x230 __x64_sys_write+0x76/0xc0 x64_sys_call+0x276/0x17d0 do_syscall_64+0x96/0x3a0 entry_SYSCALL_64_after_hwframe+0x4b/0x53 The Linux kernel CVE team has assigned CVE-2025-71117 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit af2814149883e2c1851866ea2afcd8eadc040f79 and fixed in 6.18.3 with commit 3997b3147c7b68b0308378fa95a766015f8ceb1c Issue introduced in 6.11 with commit af2814149883e2c1851866ea2afcd8eadc040f79 and fixed in 6.19-rc1 with commit 935a20d1bebf6236076785fac3ff81e3931834e9 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-2025-71117 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-sysfs.c include/linux/blkdev.h 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/3997b3147c7b68b0308378fa95a766015f8ceb1c https://git.kernel.org/stable/c/935a20d1bebf6236076785fac3ff81e3931834e9