From mboxrd@z Thu Jan 1 00:00:00 1970 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 2ED932FD1D5 for ; Wed, 12 Nov 2025 10:24:37 +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=1762943077; cv=none; b=O2YNiBz/Uc2/F9JSVN+ol8bVJceXc+hEHylb4ibt7Xxusu5ta76fVxoODnnJjKlKMKoURxooPYe5Gl0lNKSv5GSa3orbpqLFs2Qi5KMi9Jv28blZFFoMeN+LN09LZeEURNuN7UBXp6e06crtPxCGyl04INNG2G8RACYelZFj3XI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762943077; c=relaxed/simple; bh=nPtheJhZ2T2PL0oy44fNwewMJrcBam+MrIuaWFNeJ50=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Uhyp4ogp7IcnPWaJ3d/mpsRadLlPdaj7f6TuBtc8zAjY8N8V4sbgCsk5AKvIgLqSfi36xplECHFUo4FdX0Y+nabMhn3/MRdc9q2wWjBYMlzx3WV+VKWcdB7SGKWdIgSKnitBusVYDPg9pWRu7gA0aLiKGgfrwSna4sXlrJ5LcBA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=n0WPFnPN; 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="n0WPFnPN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE21AC4CEF7; Wed, 12 Nov 2025 10:24:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762943077; bh=nPtheJhZ2T2PL0oy44fNwewMJrcBam+MrIuaWFNeJ50=; h=From:To:Cc:Subject:Date:Reply-to:From; b=n0WPFnPN2irAWOko44H4JeNBdwOcg9nBoVX0jQJFU00H6wdHUmh78cNooobVLKsnj 8QcfV5yG7XU3pB2X5R5vzBHq+zgj+SZfVct8mMax7mcPcmIn35O4hrhHQJtf9EK85J ue8+hTSIvklO9RBCovGNshGzwQF86HUowu9/HFwo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40146: blk-mq: fix potential deadlock while nr_requests grown Date: Wed, 12 Nov 2025 19:24:22 +0900 Message-ID: <2025111256-CVE-2025-40146-b919@gregkh> X-Mailer: git-send-email 2.51.2 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=2065; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=n87kcHF2oPssr47PX7rnrjruRGfahLgz125YhiUUp5w=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkiCTYh3zuMfkw6W+9z+WbwtH9arEe2LvnjWOWZ982w8 FvmYyemjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIsz3D/AzfJNFrMckOrxk8 J1y9KfIyTcXCkWG+w91k9s6k0k1l19ry3+hfecZsFHAPAA== 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 potential deadlock while nr_requests grown Allocate and free sched_tags while queue is freezed can deadlock[1], this is a long term problem, hence allocate memory before freezing queue and free memory after queue is unfreezed. [1] https://lore.kernel.org/all/0659ea8d-a463-47c8-9180-43c719e106eb@linux.ibm.com/ The Linux kernel CVE team has assigned CVE-2025-40146 to this issue. Affected and fixed versions =========================== Issue introduced in 3.16 with commit e3a2b3f931f59d5284abd13faf8bded726884ffd and fixed in 6.17.3 with commit 8d26acf8477174d8ef690eb6affe13a630f586ae Issue introduced in 3.16 with commit e3a2b3f931f59d5284abd13faf8bded726884ffd and fixed in 6.18-rc1 with commit b86433721f46d934940528f28d49c1dedb690df1 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-40146 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 block/blk-mq.h block/blk-sysfs.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/8d26acf8477174d8ef690eb6affe13a630f586ae https://git.kernel.org/stable/c/b86433721f46d934940528f28d49c1dedb690df1