Skip to contentSkip to conversation

CVE-2022-50843: dm clone: Fix UAF in clone_dtr()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 30, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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