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 9E9A5278754 for ; Sat, 4 Oct 2025 15:53:26 +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=1759593206; cv=none; b=Nmx9s2MVnay7XvOL1oonvHLTAdx10O/mMLlRvRzchGEHWbTTt7PmqAjVNJM4XEChwZrQDXgLQ9R/5ZT3NQLsIh0bXpRS9E1BAE07ti5nHmKx7FT686/3HssBA/r/MoUIgRwT/Bc2dRTRN22w9zEe7xw0y3FNjoqy8fg75X9Uj/U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759593206; c=relaxed/simple; bh=oZ69+softOzBsmqXhZsdp0gAcn1/muJ/IuK7nKvwsBA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Tq8/Jtz6L2xIxQmM+ZGEpvnEfaALGCikM+16gNOFQDIKzO15nJodENfNasIMl050e8LnG9RtJxSc4+3EfuyasssHTZEx2rjgMXM9ZXMS5mNPpHZ7h5wr2xAvt82VlRBNHaXe5SrXRDATnHrAJBIJlqUQXCCBJxtw+qLPBM7ZfIk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=P5TrMXdB; 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="P5TrMXdB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C55DC4CEF1; Sat, 4 Oct 2025 15:53:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759593206; bh=oZ69+softOzBsmqXhZsdp0gAcn1/muJ/IuK7nKvwsBA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=P5TrMXdBFm9t95Qh8JTlcxePYYwy+TRGev/iw9Vexf7Bfdz2JOZnTwFBFPibWZNTh otZ2IjGeSV+CO5fI1G769XXBUTgvJInFRleMxAqbC63eapyd3Enlv/GGf12UV1rnpw gMuWLdDhQ7C0xXkZ8aqo85z7KQScUbcE9Pm7NV9E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50496: dm cache: Fix UAF in destroy() Date: Sat, 4 Oct 2025 17:51:21 +0200 Message-ID: <2025100419-CVE-2022-50496-6e44@gregkh> X-Mailer: git-send-email 2.51.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=3476; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GXX/GpQssMLaIPD8YZfbcI71B/KiK+dBSKYsrtiwwlU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPncrLn3eGn954iWlRe9XBLl7Zs2zOLze773+Qu5hB8 eWTkji7jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI9TyGBT0bX8Qc83h5nLu7 TkB8oee5x3lP3zHMMz/z+EX3Z/4fzOv3zN4nPU29grnpCgA= 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 cache: Fix UAF in destroy() Dm_cache also has the same UAF problem when dm_resume() and dm_destroy() are concurrent. Therefore, cancelling timer again in destroy(). The Linux kernel CVE team has assigned CVE-2022-50496 to this issue. Affected and fixed versions =========================== Issue introduced in 3.9 with commit c6b4fcbad044e6fffcc75bba160e720eb8d67d17 and fixed in 4.9.337 with commit 034cbc8d3b47a56acd89453c29632a9c117de09d Issue introduced in 3.9 with commit c6b4fcbad044e6fffcc75bba160e720eb8d67d17 and fixed in 4.14.303 with commit 993406104d2b28fe470126a062ad37a1e21e792e Issue introduced in 3.9 with commit c6b4fcbad044e6fffcc75bba160e720eb8d67d17 and fixed in 4.19.270 with commit 4d20032dd90664de09f2902a7ea49ae2f7771746 Issue introduced in 3.9 with commit c6b4fcbad044e6fffcc75bba160e720eb8d67d17 and fixed in 5.4.229 with commit 2f097dfac7579fd84ff98eb1d3acd41d53a485f3 Issue introduced in 3.9 with commit c6b4fcbad044e6fffcc75bba160e720eb8d67d17 and fixed in 5.10.163 with commit 2b17026685a270b2beaf1cdd9857fcedd3505c7e Issue introduced in 3.9 with commit c6b4fcbad044e6fffcc75bba160e720eb8d67d17 and fixed in 5.15.87 with commit d2a0b298ebf83ab6236f66788a3541e91ce75a70 Issue introduced in 3.9 with commit c6b4fcbad044e6fffcc75bba160e720eb8d67d17 and fixed in 6.0.18 with commit 6ac4f36910764cb510bafc4c3768544f86ca48ca Issue introduced in 3.9 with commit c6b4fcbad044e6fffcc75bba160e720eb8d67d17 and fixed in 6.1.4 with commit 6a3e412c2ab131c54945327a7676b006f000a209 Issue introduced in 3.9 with commit c6b4fcbad044e6fffcc75bba160e720eb8d67d17 and fixed in 6.2 with commit 6a459d8edbdbe7b24db42a5a9f21e6aa9e00c2aa 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-50496 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-cache-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/034cbc8d3b47a56acd89453c29632a9c117de09d https://git.kernel.org/stable/c/993406104d2b28fe470126a062ad37a1e21e792e https://git.kernel.org/stable/c/4d20032dd90664de09f2902a7ea49ae2f7771746 https://git.kernel.org/stable/c/2f097dfac7579fd84ff98eb1d3acd41d53a485f3 https://git.kernel.org/stable/c/2b17026685a270b2beaf1cdd9857fcedd3505c7e https://git.kernel.org/stable/c/d2a0b298ebf83ab6236f66788a3541e91ce75a70 https://git.kernel.org/stable/c/6ac4f36910764cb510bafc4c3768544f86ca48ca https://git.kernel.org/stable/c/6a3e412c2ab131c54945327a7676b006f000a209 https://git.kernel.org/stable/c/6a459d8edbdbe7b24db42a5a9f21e6aa9e00c2aa