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 E48AB2E0939 for ; Tue, 30 Dec 2025 12:37:34 +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=1767098255; cv=none; b=YgDE2hJTH+60EdF3LYCZi/sQ0lv5oGXBFqZc2ITubP7KVIYCAkBEFSpn5BTAoiXnnPmDLzSn4+Rkhdi0yGcNRZUrWgxUhoig4Z6CJmysfyUcm1AtaPgNU4eO+WQ5av6MgVxdpQVv7TIuXXEOFIio9oDIqNNQgfDItAdaCG3F3zw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767098255; c=relaxed/simple; bh=u/LP7a/8yZroRhDW897HdT2KKvxa8GJB5NKx7YjyLhI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=R5cwpbfTo4DvQxyAU7QtNYX5O345lHTwre/usL178oGNOxlI4h+afFZYNqZTGdMGvWNhGjkxpctQgfYY7xMrpBVIEoDharpcJs5j7hu2yjAFvR3Z2HNy1LL6Qj3JVUow7e/FwImL09JvnXBPznuxh3Ls6aQ4P49MdIzAupARCpY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Oz7LxnAl; 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="Oz7LxnAl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27464C4CEFB; Tue, 30 Dec 2025 12:37:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767098254; bh=u/LP7a/8yZroRhDW897HdT2KKvxa8GJB5NKx7YjyLhI=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Oz7LxnAl6LiTM9KfbJmkSC/ZbjiRoud3H9pKwfxkPxFPsKVCxx+IQE7xO4Qt/SFWn OVIUweUPH9Ld6KHmLi4a6m4ys6i/s4syyyafnq5SwZQyqvAYvGCH8AnxJaurwFcSAQ IWsB/yYq7tmr2q3ZXsgomlAHKix+Av0N6LFTblvU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54324: dm: fix a race condition in retrieve_deps Date: Tue, 30 Dec 2025 13:37:19 +0100 Message-ID: <2025123015-CVE-2023-54324-7149@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=2437; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BFHqt1hGp/KJZYh5Dgm7GmpV7pi15m3NVFmNuO8mzec=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBx2vE1zy+cMPDY9vJO75+AbfTbA89Kyhb8+Rt9CP5b /s4ImM/d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEXL4wLNhpvrhMjtfgDS+7 5pbHS29fW15h4sewYNY0gagDF3bqXDBuvpcaZSbAs3bhTgA= 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: dm: fix a race condition in retrieve_deps There's a race condition in the multipath target when retrieve_deps races with multipath_message calling dm_get_device and dm_put_device. retrieve_deps walks the list of open devices without holding any lock but multipath may add or remove devices to the list while it is running. The end result may be memory corruption or use-after-free memory access. See this description of a UAF with multipath_message(): https://listman.redhat.com/archives/dm-devel/2022-October/052373.html Fix this bug by introducing a new rw semaphore "devices_lock". We grab devices_lock for read in retrieve_deps and we grab it for write in dm_get_device and dm_put_device. The Linux kernel CVE team has assigned CVE-2023-54324 to this issue. Affected and fixed versions =========================== Fixed in 6.1.56 with commit dbf1a719850577bb51fc7512a3972994b797a17b Fixed in 6.5.5 with commit 38f6e5ae5d9ff4a4050ea6f7b543d5d5a4e087cf Fixed in 6.6 with commit f6007dce0cd35d634d9be91ef3515a6385dcee16 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-54324 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/md/dm-core.h drivers/md/dm-ioctl.c drivers/md/dm-table.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/dbf1a719850577bb51fc7512a3972994b797a17b https://git.kernel.org/stable/c/38f6e5ae5d9ff4a4050ea6f7b543d5d5a4e087cf https://git.kernel.org/stable/c/f6007dce0cd35d634d9be91ef3515a6385dcee16