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 216BF1BD9F0 for ; Thu, 18 Sep 2025 13:34:39 +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=1758202480; cv=none; b=aFssX2RxFuqRDhubzFyPiiWN/LEI8nIICF/q3D33nJGhMprHd/bvBruUKbpSxAlHcNCOnJnsZ8UCLzEBJFnMXOWQ462hkD83cSlUr3gmxvymMUc7lQtKlk+Hbo3fUhl1kGcr/cKN773phSmPRiin76jcviqITHNg1jQMaWn96d4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758202480; c=relaxed/simple; bh=t4epAwZxdbmHYhxTu1D9z48/GcXgx/Rye6zmkkLMV2U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XwfR3kXFR1BdOjIjT9xG5OD1NNat0bDQ1SQnIQ8CzZKH90PwXDD+kXcHjY+wS4MaRemmz8PhXaZ5zBxFiBXHUUoTZWcD9w83LRQm8MLP09OJsby8rLOIIDSAc/ig0y3dMauE6VbokHRPryJUnl0DUsNh4iMES5NVWUDPzC7795o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wJYpjBNI; 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="wJYpjBNI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D3D5C4CEE7; Thu, 18 Sep 2025 13:34:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758202479; bh=t4epAwZxdbmHYhxTu1D9z48/GcXgx/Rye6zmkkLMV2U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wJYpjBNIvnbed8REDwcbTg+L5Kj9sT0Jgr2MCHlsGUIPA2X5XezFs3GIxJWQ0k25i AZ1q34+xg8JRrHgpeG+ZJ2nTlkebHEwDCObIZL16LSFu4SguLW46JINwBPYXN+VUZ6 mT3qoMjMHUaOUn2EIT4q8tsceVEV282KInvOjXBE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50392: ASoC: mediatek: mt8183: fix refcount leak in mt8183_mt6358_ts3a227_max98357_dev_probe() Date: Thu, 18 Sep 2025 15:34:06 +0200 Message-ID: <2025091853-CVE-2022-50392-967e@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=2475; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7bPfsyfqByNkgQtOyQc1rh1NM6IxFMNNms7J4Jg+UH0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlnuBx5WNZUrZLbu9Mo4uPxeH0X60leBa2LsmdeePb/c v+dECamjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIB0WGeQo8dX+Wbu6+aFoj yuy5e0XcrtO86xkWnMotXf3gR5z0472OilJft35KXXBxLQA= 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: ASoC: mediatek: mt8183: fix refcount leak in mt8183_mt6358_ts3a227_max98357_dev_probe() The node returned by of_parse_phandle() with refcount incremented, of_node_put() needs be called when finish using it. So add it in the error path in mt8183_mt6358_ts3a227_max98357_dev_probe(). The Linux kernel CVE team has assigned CVE-2022-50392 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit 11c0269017b212fd47c593307d2dc3eb9713b2d0 and fixed in 5.15.86 with commit 82f7c814edda353b4781f356d3ab90e943d5eac4 Issue introduced in 5.2 with commit 11c0269017b212fd47c593307d2dc3eb9713b2d0 and fixed in 6.0.16 with commit 574bd4d14a9297a1c69ad41001caf00fdd17d305 Issue introduced in 5.2 with commit 11c0269017b212fd47c593307d2dc3eb9713b2d0 and fixed in 6.1.2 with commit 156b0c19c1a44153e34cfdfa5937546a93dcb288 Issue introduced in 5.2 with commit 11c0269017b212fd47c593307d2dc3eb9713b2d0 and fixed in 6.2 with commit 38eef3be38ab895959c442702864212cc3beb96c 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-50392 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/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.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/82f7c814edda353b4781f356d3ab90e943d5eac4 https://git.kernel.org/stable/c/574bd4d14a9297a1c69ad41001caf00fdd17d305 https://git.kernel.org/stable/c/156b0c19c1a44153e34cfdfa5937546a93dcb288 https://git.kernel.org/stable/c/38eef3be38ab895959c442702864212cc3beb96c