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 A29072D12F5 for ; Tue, 30 Dec 2025 12:14:12 +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=1767096852; cv=none; b=E4wF7EKXRHwpDQObdsCHNlilVekRDHjyoY08fZgv0YAzo+TS3Cvr/voy8A/coUJ+M+mWCnwjlS4NapyJECGgRUBxpjudD48rhsxhzq3tQ28A4iPSuMXzV+PiSgPnA5Su0cJ6mkEdNj7f523GIFx6CvXH2qygyVF/IIRdmUeyn3w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096852; c=relaxed/simple; bh=bkSoJs5rrMvy/S9zRtyf33iXD7RSo2QmO9Ju0c+KO0E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jgExn30TwU26tETYKr4qUrq9nan43Ti33peK/AAxxL1htpSgDZGlaQY5YQKIex1qzG/fqMpVi8v5n65behFQGUaBxMHOz9GmF1oQ8EvzcJizdsm/ZqDl85Mo7vxRXAXUX2L2DGTLKkVvSzHfg3aX1rWOK71KIZ9BuI8zrkTj3X4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mzFl/byA; 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="mzFl/byA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2BA8DC4CEFB; Tue, 30 Dec 2025 12:14:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096852; bh=bkSoJs5rrMvy/S9zRtyf33iXD7RSo2QmO9Ju0c+KO0E=; h=From:To:Cc:Subject:Date:Reply-To:From; b=mzFl/byAO6EjGkv3ipOD+9qIYY6LUztpg2VCLmchanEB8aRw475rdA9RR8yQDqYqn aio4Ne/0NndF8t3L/vamu0cGVbfx55hUS61jZdRwxA1kgnUGWX7+1yqOOhx17pjtBW 2TwT1y86Is9u1omvfsy3KVdPzYKX8bi9yTKsAJMg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50843: dm clone: Fix UAF in clone_dtr() Date: Tue, 30 Dec 2025 13:13:29 +0100 Message-ID: <2025123020-CVE-2022-50843-ae87@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=2794; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CYG2nhqch/lqCHb2y5KugSCQXmnt/b/TVSImtwSCDtE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBBx9IVHuq+Kze0RUePDX3MEev/JyEZv2F7X6pXFMSc 5ZXbefpiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIm4ZDLMlTt48GbtruOWizP6 mCriXh58/30HD8M83bmlx2+VBZ2xTuO9/Lu9xZv/W1IqAA== 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 clone: Fix UAF in clone_dtr() Dm_clone also has the same UAF problem when dm_resume() and dm_destroy() are concurrent. Therefore, cancelling timer again in clone_dtr(). The Linux kernel CVE team has assigned CVE-2022-50843 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit 7431b7835f554f8608b415a02cf3c3f086309e02 and fixed in 5.4.229 with commit 520b56cfd9faee7683f081c3a38f11a81b13a68e Issue introduced in 5.4 with commit 7431b7835f554f8608b415a02cf3c3f086309e02 and fixed in 5.10.163 with commit 342cfd8426dff4228e6c714bcb9fc8295a2748dd Issue introduced in 5.4 with commit 7431b7835f554f8608b415a02cf3c3f086309e02 and fixed in 5.15.87 with commit 856edd0e92f3fe89606b704c86a93daedddfe6ec Issue introduced in 5.4 with commit 7431b7835f554f8608b415a02cf3c3f086309e02 and fixed in 6.0.18 with commit b1ddb666073bb5f36390aaabaa1a4d48d78c52ed Issue introduced in 5.4 with commit 7431b7835f554f8608b415a02cf3c3f086309e02 and fixed in 6.1.4 with commit 9e113cd4f61f3b0000843b2d0a90ce8b40a1fcff Issue introduced in 5.4 with commit 7431b7835f554f8608b415a02cf3c3f086309e02 and fixed in 6.2 with commit e4b5957c6f749a501c464f92792f1c8e26b61a94 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-2022-50843 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-clone-target.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/520b56cfd9faee7683f081c3a38f11a81b13a68e https://git.kernel.org/stable/c/342cfd8426dff4228e6c714bcb9fc8295a2748dd https://git.kernel.org/stable/c/856edd0e92f3fe89606b704c86a93daedddfe6ec https://git.kernel.org/stable/c/b1ddb666073bb5f36390aaabaa1a4d48d78c52ed https://git.kernel.org/stable/c/9e113cd4f61f3b0000843b2d0a90ce8b40a1fcff https://git.kernel.org/stable/c/e4b5957c6f749a501c464f92792f1c8e26b61a94