Skip to contentSkip to conversation

CVE-2022-50889: dm integrity: Fix UAF in dm_integrity_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 integrity: Fix UAF in dm_integrity_dtr()

Dm_integrity also has the same UAF problem when dm_resume() and dm_destroy() are concurrent.

Therefore, cancelling timer again in dm_integrity_dtr().

The Linux kernel CVE team has assigned CVE-2022-50889 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.12 with commit 7eada909bfd7ac90a4522e56aa3179d1fd68cd14 and fixed in 5.4.229 with commit 792e51aac376cfb5bd527c2a30826223b82dd177
	Issue introduced in 4.12 with commit 7eada909bfd7ac90a4522e56aa3179d1fd68cd14 and fixed in 5.10.163 with commit a506b5c92757b034034ef683e667bffc456c600b
	Issue introduced in 4.12 with commit 7eada909bfd7ac90a4522e56aa3179d1fd68cd14 and fixed in 5.15.87 with commit 9215b25f2e105032114e9b92c9783a2a84ee8af9
	Issue introduced in 4.12 with commit 7eada909bfd7ac90a4522e56aa3179d1fd68cd14 and fixed in 6.0.18 with commit 9f8e1e54a3a424c6c4fb8742e094789d3ec91e42
	Issue introduced in 4.12 with commit 7eada909bfd7ac90a4522e56aa3179d1fd68cd14 and fixed in 6.1.4 with commit b6c93cd61afab061d80cc842333abca97b289774
	Issue introduced in 4.12 with commit 7eada909bfd7ac90a4522e56aa3179d1fd68cd14 and fixed in 6.2 with commit f50cb2cbabd6c4a60add93d72451728f86e4791c

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-50889

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-integrity.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/792e51aac376cfb5bd527c2a30826223b82dd177
	https://git.kernel.org/stable/c/a506b5c92757b034034ef683e667bffc456c600b
	https://git.kernel.org/stable/c/9215b25f2e105032114e9b92c9783a2a84ee8af9
	https://git.kernel.org/stable/c/9f8e1e54a3a424c6c4fb8742e094789d3ec91e42
	https://git.kernel.org/stable/c/b6c93cd61afab061d80cc842333abca97b289774
	https://git.kernel.org/stable/c/f50cb2cbabd6c4a60add93d72451728f86e4791c