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 B95361A23B9 for ; Wed, 26 Feb 2025 01:58:33 +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=1740535113; cv=none; b=XQOZtS6U+ILlot8EWjmnm8dSBhs9QrBe8WXEZZwMFnyeuE2HPXWLsKBVUKHqIQdZkZ+TeWKTzWRCWVzVp0rp6yruNP5D667zYx0YwhML/I6CIEixy45fdBI+A3vonufK0RKLez81sdoCFF040736xlX6dtu1SzdMmtirn2ULOMk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535113; c=relaxed/simple; bh=Cj/AZNdAbHEC6jDk2V0dcSktSvKxGEF9SAgrGHTpiu4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IvU1lPMvYJGNI89uPrdkrRtwqgkt9sjzumAlY5nexun/c3wti8ktH+GrtMyFCsS3AJ3/+shC1c9cLmwsexHVIzEOcQnkcySPUoVMD8qojDHHHGDYx8SmgWzLAKbJf0Cc/8bJ5a7DbYMkzs0e/jqoJETH59JPCM5pBzEinBnd3CU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=l5S00UJv; 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="l5S00UJv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DBE7C4CEDD; Wed, 26 Feb 2025 01:58:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535113; bh=Cj/AZNdAbHEC6jDk2V0dcSktSvKxGEF9SAgrGHTpiu4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=l5S00UJvBg/3RIHAPELBlUEq76ow1HKAi8BwrEnVvhC9yBbpAmYJuJkDItn5kmzSk NDAy94C/bNln5nGfLT4VoHt29bQFuESPRiL9Z1RuQE15VpI1GF2HhDwjySiyY+PTvI odgofsqNYR4Hynx9Cn0BJR2dl9bPAX3FFci7gp6g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49128: drm/bridge: Add missing pm_runtime_put_sync Date: Wed, 26 Feb 2025 02:55:33 +0100 Message-ID: <2025022605-CVE-2022-49128-8459@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=2261; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Cj/AZNdAbHEC6jDk2V0dcSktSvKxGEF9SAgrGHTpiu4=; b=kA0DAAIRMUfUDdst+ykByyZiAGe+dD2gEVL0Guys58b0fpAk76bD5BbkueFLPoek2Chefg+kT YhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAme+dD0ACgkQMUfUDdst+ymecQCeNyLL 2HW/lJkwy+YNZ65wdfpqSZYAoLS140Ygrg+y7xuvCdsRuizQXPp6 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: drm/bridge: Add missing pm_runtime_put_sync pm_runtime_get_sync() will increase the rumtime PM counter even when it returns an error. Thus a pairing decrement is needed to prevent refcount leak. Fix this by replacing this API with pm_runtime_resume_and_get(), which will not change the runtime PM counter on error. Besides, a matching decrement is needed on the error handling path to keep the counter balanced. The Linux kernel CVE team has assigned CVE-2022-49128 to this issue. Affected and fixed versions =========================== Fixed in 5.15.34 with commit ff13c90d7f7ab606b37be6d15140d19013d6736c Fixed in 5.16.20 with commit 792533e54cd6e89191798ccd1abd590c62b9077e Fixed in 5.17.3 with commit 9df80dc738926a2ea4bd1ce5993c3d0f4b0e855c Fixed in 5.18 with commit 46f47807738441e354873546dde0b000106c068a 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-49128 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/gpu/drm/bridge/nwl-dsi.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/ff13c90d7f7ab606b37be6d15140d19013d6736c https://git.kernel.org/stable/c/792533e54cd6e89191798ccd1abd590c62b9077e https://git.kernel.org/stable/c/9df80dc738926a2ea4bd1ce5993c3d0f4b0e855c https://git.kernel.org/stable/c/46f47807738441e354873546dde0b000106c068a