From mboxrd@z Thu Jan 1 00:00:00 1970 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 C6D0621771D for ; Wed, 26 Feb 2025 02:14:49 +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=1740536089; cv=none; b=KeClcQxYtWR8xs0RfUTi/m+Ef/C5Zv8O627dDiWt23ratV/0sIXX5ba5Lbkl6rz+0a1yZj7tLXAEDK7xJwxfnbOeVi8q9oX1tao6+3vFIq4zBi6SyClfOaTm8hwM0eUyicZr+6lsMIekMfAyXAHBuFSyB/SzITK5WsXpoTNk34g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536089; c=relaxed/simple; bh=hUeVmOmGbnZBn11Ti3VmCC2qUm1wqKMTNGUpvx2gjuE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=foL7JqAuWKyExNT1Yt7F20H66aK4dp4YZwmviAsdb58npjcxK8VicqgwoYRwYXRN/8YtLwkpVxQFbFYK9s6vOoeEqRNDlECOt5fk1QoQsAbqChRJEkOsN9ABngZdfMwQUo5tA+8yJxkiJdzJgvbAI3seqr1CxJhC+dBXJUS2fYY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1yLad5R+; 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="1yLad5R+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9494DC4CEE7; Wed, 26 Feb 2025 02:14:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536089; bh=hUeVmOmGbnZBn11Ti3VmCC2qUm1wqKMTNGUpvx2gjuE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1yLad5R+hFLKL7OYB6rCzO1jeqcJajXey57c++/YT58C2b/lbSZTAqzK4d8eKuF1w Z2H4tJEbukKDBdI26jDaxw4homkfMU58PEuWNC4fA6aflq/ds5F8I6II88QwHuSaL9 QwHgYoTalinNenDbnwWEK5htrAWoa0f7TZU/w1iU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49480: ASoC: imx-hdmi: Fix refcount leak in imx_hdmi_probe Date: Wed, 26 Feb 2025 03:12:34 +0100 Message-ID: <2025022604-CVE-2022-49480-1f86@gregkh> X-Mailer: git-send-email 2.48.1 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=2429; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hUeVmOmGbnZBn11Ti3VmCC2qUm1wqKMTNGUpvx2gjuE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yv/E8LoWz5GrqHOy8jeT/rzRaZ/UevUb7IZTi3/uS 2B5K5nTEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABP5UsQwP+b6OT0lm8vTFpTr zJkhwm70TVz7MMOCWXsMeS125G+pYuue3ygiZZ+Rsf0JAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ASoC: imx-hdmi: Fix refcount leak in imx_hdmi_probe of_find_device_by_node() takes reference, we should use put_device() to release it. when devm_kzalloc() fails, it doesn't have a put_device(), it will cause refcount leak. Add missing put_device() to fix this. The Linux kernel CVE team has assigned CVE-2022-49480 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 6a5f850aa83a1d844d27e3e53ca2f247e55d438b and fixed in 5.15.46 with commit cf760e494ee5fa6bc2dc222f0098c741ad460801 Issue introduced in 5.11 with commit 6a5f850aa83a1d844d27e3e53ca2f247e55d438b and fixed in 5.17.14 with commit 8205a0114db10ec41bd2b748cdd7528632082eca Issue introduced in 5.11 with commit 6a5f850aa83a1d844d27e3e53ca2f247e55d438b and fixed in 5.18.3 with commit 81b7edaabd44ba133006ad72056914eb36828d60 Issue introduced in 5.11 with commit 6a5f850aa83a1d844d27e3e53ca2f247e55d438b and fixed in 5.19 with commit ed46731d8e86c8d65f5fc717671e1f1f6c3146d2 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-49480 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: sound/soc/fsl/imx-hdmi.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/cf760e494ee5fa6bc2dc222f0098c741ad460801 https://git.kernel.org/stable/c/8205a0114db10ec41bd2b748cdd7528632082eca https://git.kernel.org/stable/c/81b7edaabd44ba133006ad72056914eb36828d60 https://git.kernel.org/stable/c/ed46731d8e86c8d65f5fc717671e1f1f6c3146d2