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 B4F72212B3A for ; Wed, 26 Feb 2025 02:00:11 +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=1740535211; cv=none; b=uFCwaBZ4v+ebv5NqbsY9QN4hi7P9FCGjpT1hEox+4jlzvqH6Tx+MGNB+7xlcKRszJim7yhiPu4Ts4U8QqgHMUd8pRNA+2PGxiFB5RM47I1h9VGABKgVzAFjKacbEwWuCrbTTomoZiDcM2Q2LxuQK9/CxdmTo26ODKJGhqYPOe94= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535211; c=relaxed/simple; bh=JwqgYsMIBAyHjVN2IIivdHCIdPfmAaKMgwsb2Qd9aMM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nL3lLZTRyMzaM1Ds1gBsHwcDETAYb+pKbBxK+pQx5jbp79g3pWIaAEXvLqTbRTMOAVuB2nKkNHm8Wj7DtoZR2Hb59HOm3FRrOY3J/yBjgJ4X4+CPhmdk2nuY9IhWnVc2QjMsj3G5MN4I2P+0mvMan9iSbcXCY6BEWQG1KpomA74= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hlUw3Afv; 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="hlUw3Afv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82AA4C4CEE7; Wed, 26 Feb 2025 02:00:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535211; bh=JwqgYsMIBAyHjVN2IIivdHCIdPfmAaKMgwsb2Qd9aMM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hlUw3AfvssNAq//K2GK3ZnQwXThhJyO1sD1vN48dXcg4Evb0nvMe0zLXiNw0LhGmX S+GdIkGC2Hb0XrNGAXih0NDKRHoiTkqC9eu28V3seEA2UFG9z+80xgFOHJgFD8Hblq iRGNQyCQWR8JL8njEfCzSP0eyDchcayJm7ityJdk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49245: ASoC: rockchip: Fix PM usage reference of rockchip_i2s_tdm_resume Date: Wed, 26 Feb 2025 02:57:30 +0100 Message-ID: <2025022625-CVE-2022-49245-dcd4@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=2243; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JwqgYsMIBAyHjVN2IIivdHCIdPfmAaKMgwsb2Qd9aMM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SgJX6bOcDrr2OZsx4+TX6dvmzfRxFd053f3P1lStR B/J+oMvOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiN/cyzA9ynPrK0mlKxtLt TxyWXHSSTH4V/Y1hwYKPB+wu/Fbd5VZ8R33SooU6r6fu+AUA 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: rockchip: Fix PM usage reference of rockchip_i2s_tdm_resume pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in reference leak here. We fix it by replacing it with pm_runtime_resume_and_get to keep usage counter balanced. The Linux kernel CVE team has assigned CVE-2022-49245 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 081068fd641403994f0505e6b91e021d3925f348 and fixed in 5.16.19 with commit 4e5510219111607b1f1875ab3c3f0485ba3c381c Issue introduced in 5.16 with commit 081068fd641403994f0505e6b91e021d3925f348 and fixed in 5.17.2 with commit 5c1834aac759ddfd0f17c9f38db1b30adc8eb4e8 Issue introduced in 5.16 with commit 081068fd641403994f0505e6b91e021d3925f348 and fixed in 5.18 with commit cc5d8ac95663a5813c696008bc524b794d471215 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-49245 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/rockchip/rockchip_i2s_tdm.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/4e5510219111607b1f1875ab3c3f0485ba3c381c https://git.kernel.org/stable/c/5c1834aac759ddfd0f17c9f38db1b30adc8eb4e8 https://git.kernel.org/stable/c/cc5d8ac95663a5813c696008bc524b794d471215