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 2D73914658D for ; Thu, 1 May 2025 14:17:29 +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=1746109049; cv=none; b=ka/JvuA0coEhKojiWujlgfIRm2w5Q13dMde9OvKcSQ3tXDCJ6Mpbl+kixau5t+FVBfQj6TTwJRclW2KfnrJ3kK7lSuB4MvsjOP740mwQ3ceppzYk2d+RJWtJBgBo3bQ5b2o6onrkpzkft/yvWRP8XyRs6fAb4jqdqXWetrblPXA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746109049; c=relaxed/simple; bh=VZsQA3lSQ5VgcsW/G2XUTia0icrJs3GxJjp8ocOGBhQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YbsGrZ6iPWXeexlQsYYdSMSIvPuwMdJyBXuO+fr7l9WhpHO3rV64ZVyojvRb4wBq6pqdk4qH/GOZESC3BmlHcyT9VKYkEgq4A+IVmYgr7y0JS5/pPkJ1n2JKhJUH4bGDU9sJr7Nwpc8B7jy/nxLVmjIgUY9DfKElWDN43Q+sHZQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vRm4EAbd; 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="vRm4EAbd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97BF5C4CEE3; Thu, 1 May 2025 14:17:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746109049; bh=VZsQA3lSQ5VgcsW/G2XUTia0icrJs3GxJjp8ocOGBhQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vRm4EAbdh223W4sm3WRw12Y7zjJZjLw0Jnitoeg/fRcx0HAGglfg819TKevrfXKBJ U7Slkd9gwmWPvtKoNmg+DUDA6broqXvjOi9tg4MuPJoeghvlKWrk+g7BjPKBgiMfBI sYJO6osk9KFixEaP4dqmRvKOnJs/0pII2sjAvXjw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49893: cxl/region: Fix cxl_region leak, cleanup targets at region delete Date: Thu, 1 May 2025 16:11:23 +0200 Message-ID: <2025050158-CVE-2022-49893-209a@gregkh> X-Mailer: git-send-email 2.49.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=2095; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iBuMAsIEHDaPwmWzafYsH3GSfS9tZumyDfcDZU1lBl8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDdvf3uB6Ubjh9I/rR7P0M9vVQ5a0qO0TOMfL2/O79 a/PzRsJHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR2EMM8522T4l2MJ9Ux8YZ VSyxbbPBqj6xCoYFR0Q2Xe94lPdlY/m+8nu9STHGD1g9AQ== 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: cxl/region: Fix cxl_region leak, cleanup targets at region delete When a region is deleted any targets that have been previously assigned to that region hold references to it. Trigger those references to drop by detaching all targets at unregister_region() time. Otherwise that region object will leak as userspace has lost the ability to detach targets once region sysfs is torn down. The Linux kernel CVE team has assigned CVE-2022-49893 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit b9686e8c8e39d4072081ef078c04915ee51c8af4 and fixed in 6.0.8 with commit 45d9fb4b758b9d602ee7776eb6754b0349946aad Issue introduced in 6.0 with commit b9686e8c8e39d4072081ef078c04915ee51c8af4 and fixed in 6.1 with commit 0d9e734018d70cecf79e2e4c6082167160a0f13f 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-49893 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/cxl/core/region.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/45d9fb4b758b9d602ee7776eb6754b0349946aad https://git.kernel.org/stable/c/0d9e734018d70cecf79e2e4c6082167160a0f13f