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 9AB7321A450 for ; Wed, 26 Feb 2025 02:24:47 +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=1740536687; cv=none; b=JtRSvt8qSR3dGI+ikxXhpRIucXPqqKuHIbYqJK3PxxH72DUJriRDq4RwU4MRt6XFjskz68h+pmXTWsm5q0HClxTZIg3Uid5YaOOD/myUqLPMazM4xxq2cST+GOsHaJiH0aS0RqQ9RuFob7UU7T4u0RzUw5RLWqChvjSWVRjQByY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536687; c=relaxed/simple; bh=cmPSXaBtmiAIFTnC6Mwfv4U7wfSA1L5m6XCVi5ldcjM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WH7G5Cz0ucNHnvBWszR1lyBYWc10sFG0emdTK372/zB0/y7tp6VkTaJoIs0GXZU2ljLY7ENZ5mDC7123Fop4LMPdvf3gEM0OFmuCesyxgS2RBsYXdJGaD5oXvut/yGUKiEq5nFuw9w29yEDPMsdjM9+99K1xlkE64HRSxX6/o8c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qGfdf09j; 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="qGfdf09j" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71C60C4CEDD; Wed, 26 Feb 2025 02:24:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536687; bh=cmPSXaBtmiAIFTnC6Mwfv4U7wfSA1L5m6XCVi5ldcjM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qGfdf09jgET655FBrGnZCLFufrB68wuvNGeRNtyPptInHYIJKrLbEVyJT4qx7Rsbg 9cVxPSwJoul1Zqhf1DO4jnQjIfwJtfeEffhKIukFh01Mpf1QR+nsTwwkJ+7bbzy02T 2weQ2hAtP1Spp2y/XanqocTkEZV//y9nFGfbCXSo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49650: dmaengine: qcom: bam_dma: fix runtime PM underflow Date: Wed, 26 Feb 2025 03:23:33 +0100 Message-ID: <2025022620-CVE-2022-49650-c3d8@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=2349; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cmPSXaBtmiAIFTnC6Mwfv4U7wfSA1L5m6XCVi5ldcjM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qu7cuuqYdaXmdPAb/sbq2F0yvx/Z7vNtr5ZmW88t/ CP/+XGzjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI11CGeVZGO/TsJr7Xs2A9 9a+UvY2P65OMOcP8aBG7v/keS88/WdEtLc+9b/ELfte1AA== 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: dmaengine: qcom: bam_dma: fix runtime PM underflow Commit dbad41e7bb5f ("dmaengine: qcom: bam_dma: check if the runtime pm enabled") caused unbalanced pm_runtime_get/put() calls when the bam is controlled remotely. This commit reverts it and just enables pm_runtime in all cases, the clk_* functions already just nop when the clock is NULL. Also clean up a bit by removing unnecessary bamclk null checks. The Linux kernel CVE team has assigned CVE-2022-49650 to this issue. Affected and fixed versions =========================== Issue introduced in 4.17 with commit dbad41e7bb5f4b9949ff5ea1d76c20711f326308 and fixed in 5.15.54 with commit 2f6ded79068cac8cff41d5d5632564165d98ee12 Issue introduced in 4.17 with commit dbad41e7bb5f4b9949ff5ea1d76c20711f326308 and fixed in 5.18.11 with commit b702a1077b51fcb39507cc3bd39206f539319a96 Issue introduced in 4.17 with commit dbad41e7bb5f4b9949ff5ea1d76c20711f326308 and fixed in 5.19 with commit 0ac9c3dd0d6fe293cd5044cfad10bec27d171e4e 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-49650 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/dma/qcom/bam_dma.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/2f6ded79068cac8cff41d5d5632564165d98ee12 https://git.kernel.org/stable/c/b702a1077b51fcb39507cc3bd39206f539319a96 https://git.kernel.org/stable/c/0ac9c3dd0d6fe293cd5044cfad10bec27d171e4e