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 1FF0E2DE719 for ; Tue, 7 Oct 2025 15:19:40 +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=1759850381; cv=none; b=rU6Y9vlwP3A8oyhmKBsS2X3yD1gMB6hrG0Xr/0LIeoHdKy/WDjf7cMQo2PaN24O/ND1JyLNiem+bx2cDtCsIkjm6yzZKPVR6JN7qzdKpeKHNGSAYSU5xXXHAz3t3QF8SPl9pbrPV8jNogyVnzvI5npxNKNniS34FD6KRMKlvulw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850381; c=relaxed/simple; bh=XzxxwwZ2kNlKgt+dthKeRbs31TE3L7Rn6hzAlz6Obl0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=o64mounGSkghiIG8WnNfyiybXslwKsMcrXsywpF5vzSOL1M5s9OV9Nz7PegbW0NPUi2Yv/r+gazIMRXGLVwaAGchk5QOwITZB4gEj4NzEkKnq26OJL2eCEJjqFRiPJpUoKU6vAKqC5sMIWlo+Zr5jTDgm+r2ox+7yWdMwE3/p0U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CFhlvCQw; 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="CFhlvCQw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4EA2CC4CEF1; Tue, 7 Oct 2025 15:19:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850380; bh=XzxxwwZ2kNlKgt+dthKeRbs31TE3L7Rn6hzAlz6Obl0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CFhlvCQwyYnJQ/pgmguqUVnfGc8udhMP3hARoSYSHDy72A3TQNT+Hv/IFrlPn2WTR wY28r9gBpgiZrCyA4JeubLlLJqXWv9kfCj9WP6r/ITPU20CDe5blQ7j9wPDoiSitYb BVNAa1u2O5QjUlBFgib1KD5G2QUN+kT9qgVjN93Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50510: perf/smmuv3: Fix hotplug callback leak in arm_smmu_pmu_init() Date: Tue, 7 Oct 2025 17:18:57 +0200 Message-ID: <2025100701-CVE-2022-50510-c055@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=2985; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UodE7ss/U1YzY9KzQjutbWK796gGUnaKqi6Q8GxLgDA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9VMn5ly93WTJ3TSBQ0J6bpeBoEmS40v77p/Lu2e/P Hi53H95RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwk9gPDgilWZ9V7fjJu5LSd nbeE6UQm372ImwwLjqkvFp1xuWL6uVmT3mw93TFt662vpQA= 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: perf/smmuv3: Fix hotplug callback leak in arm_smmu_pmu_init() arm_smmu_pmu_init() won't remove the callback added by cpuhp_setup_state_multi() when platform_driver_register() failed. Remove the callback by cpuhp_remove_multi_state() in fail path. Similar to the handling of arm_ccn_init() in commit 26242b330093 ("bus: arm-ccn: Prevent hotplug callback leak") The Linux kernel CVE team has assigned CVE-2022-50510 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit 7d839b4b9e00645e49345d6ce5dfa8edf53c1a21 and fixed in 5.4.229 with commit d69bdb61d577297d3851fc9f6403574bf73ef41f Issue introduced in 5.2 with commit 7d839b4b9e00645e49345d6ce5dfa8edf53c1a21 and fixed in 5.10.163 with commit 359286f886feef38536eaa7e673dc3440f03b0a1 Issue introduced in 5.2 with commit 7d839b4b9e00645e49345d6ce5dfa8edf53c1a21 and fixed in 5.15.86 with commit b131304fe722853cf26e55c4fa21fc58a36e7f21 Issue introduced in 5.2 with commit 7d839b4b9e00645e49345d6ce5dfa8edf53c1a21 and fixed in 6.0.16 with commit f245ca9a0fe7f794a8187ad803d5e2ced5a11cb2 Issue introduced in 5.2 with commit 7d839b4b9e00645e49345d6ce5dfa8edf53c1a21 and fixed in 6.1.2 with commit 582babe17ea878ec1d76f30e03f3a6ce6e30eb91 Issue introduced in 5.2 with commit 7d839b4b9e00645e49345d6ce5dfa8edf53c1a21 and fixed in 6.2 with commit 6f2d566b46436a50a80d6445e82879686b89588c 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-50510 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/perf/arm_smmuv3_pmu.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/d69bdb61d577297d3851fc9f6403574bf73ef41f https://git.kernel.org/stable/c/359286f886feef38536eaa7e673dc3440f03b0a1 https://git.kernel.org/stable/c/b131304fe722853cf26e55c4fa21fc58a36e7f21 https://git.kernel.org/stable/c/f245ca9a0fe7f794a8187ad803d5e2ced5a11cb2 https://git.kernel.org/stable/c/582babe17ea878ec1d76f30e03f3a6ce6e30eb91 https://git.kernel.org/stable/c/6f2d566b46436a50a80d6445e82879686b89588c