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 31BD22586EB for ; Tue, 20 May 2025 16:58:48 +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=1747760328; cv=none; b=fiBT7kRlzqkiuPK7zuwSipgxh2vfqGAs0czgAoSIKs+evoMfel7HVMccfB/9TvCnCB5aDpOM0+fadKM3GaqZmOsJ2xdEjkuNl5S2Zu9Mp6aziPKCgSkwBfHobNdN/gTTt/L5HargRP3hNQ0IzWr2cDNCo0QIQ2o4AmFVfqNj9ec= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747760328; c=relaxed/simple; bh=CSsEC8uz+psnUMizNAtYbMf2CGMlQEMd1Rzrbpfu2qY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZVEAcLbKOTAs30+0h4WpR7ONlAmyPoHLkhlI8eEnaLY0RZGaIAf6O1EZiXj/NP/e3iNAfqZNfZzM9XAuEHJZPkYM2T4Sa4MNsPcuxPtb5TX+CKW3FUki15YuxtnTmVWzyGT1ITc/09UQxB+65mkI/BbEdMTMNFRX+kZHfx70iN0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WgUNKvjd; 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="WgUNKvjd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8DE4C4CEE9; Tue, 20 May 2025 16:58:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747760328; bh=CSsEC8uz+psnUMizNAtYbMf2CGMlQEMd1Rzrbpfu2qY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=WgUNKvjdvMr61U284HLIsQzf4epb0NXkE6SbDPYnRVqdHnLMy5seAWkp28vSBwOsL X2bk+v9osJyaq7eDdE1sQsQt4AcuS+bmYm0W2SAFuaHDB3LK791RjOhjDqQvaik2Nx 1IojC2Tov7rfDE4HRTIbHtcBOvTqkhD9GHKva1zc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37980: block: fix resource leak in blk_register_queue() error path Date: Tue, 20 May 2025 18:56:44 +0200 Message-ID: <2025052040-CVE-2025-37980-561f@gregkh> X-Mailer: git-send-email 2.49.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=2522; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ztz/7LNIB/E2zyrpSsWXBfBvPDkN/0pLQUyg2AUxe3k=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk6Wzxa5r0pZkoU01N+/kjoi8+txpWi3vncJX7rVor6n j3Ucpu1I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaSdYFhnqLCAkGR0py/3LUv XL8p97V3BP72Z1iweJeH9cva5cz/a4U+7vYyv+c6/dQsAA== 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: fix resource leak in blk_register_queue() error path When registering a queue fails after blk_mq_sysfs_register() is successful but the function later encounters an error, we need to clean up the blk_mq_sysfs resources. Add the missing blk_mq_sysfs_unregister() call in the error path to properly clean up these resources and prevent a memory leak. The Linux kernel CVE team has assigned CVE-2025-37980 to this issue. Affected and fixed versions =========================== Issue introduced in 3.13 with commit 320ae51feed5c2f13664aa05a76bec198967e04d and fixed in 6.6.88 with commit 549cbbd14bbec12469ceb279b79c763c8a24224e Issue introduced in 3.13 with commit 320ae51feed5c2f13664aa05a76bec198967e04d and fixed in 6.12.25 with commit 41e43134ddda35949974be40520460a12dda3502 Issue introduced in 3.13 with commit 320ae51feed5c2f13664aa05a76bec198967e04d and fixed in 6.14.4 with commit 55a7bb2708f7c7c5b366d4e40916113168a3824c Issue introduced in 3.13 with commit 320ae51feed5c2f13664aa05a76bec198967e04d and fixed in 6.15-rc3 with commit 40f2eb9b531475dd01b683fdaf61ca3cfd03a51e 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-37980 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 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/549cbbd14bbec12469ceb279b79c763c8a24224e https://git.kernel.org/stable/c/41e43134ddda35949974be40520460a12dda3502 https://git.kernel.org/stable/c/55a7bb2708f7c7c5b366d4e40916113168a3824c https://git.kernel.org/stable/c/40f2eb9b531475dd01b683fdaf61ca3cfd03a51e