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 D5E2E2E5412 for ; Tue, 7 Oct 2025 15:24:38 +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=1759850678; cv=none; b=uLfee0uUCDE7KHHt9bgzupbTLhGtotjnee9A5o7aj8IAqxRg12wMwMzIoPxAnxjCthin0hba0GzdpuoZrNrXUbLiG1MntZtl11yCt7amWSP8WglAZIAfEnhAvid08egD8DPIvyAl/tB03sIwY7hOPg0FlsB8OCHsg51KEeeA3gI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850678; c=relaxed/simple; bh=brXgbsK3Fbm0i2j4x5YF3cunwk4TrYM1dI0o7u5+9Zs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PzFYiHmdipjG9Ay9LIRh0OOtN/I1nEbVj8E5hzOfjrAQyj0GfmeFacl4ercyFRwX3COLYbfFeZy7nmsc9xdOMWpTcGRJ82iMy3y6eB/6F/ObopRD0mC0D5oYsdtCtORtszGyO6GvuAOGjLat0hkGNX7RnXeCNn+asQrmrOrDrGM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=z6p/iX6t; 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="z6p/iX6t" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66125C4CEF1; Tue, 7 Oct 2025 15:24:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850678; bh=brXgbsK3Fbm0i2j4x5YF3cunwk4TrYM1dI0o7u5+9Zs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=z6p/iX6tGxH+EytTlLtFXayh4Tc5kFJG64f4lZNiep4GyE7rttq2PMWlwHtfsrs2W 6DEdhKdmyfsTegLxgY+aSm5QchjjFtCaRZ6VScfZn3qhoEBbJg5hbnLdMKAwlFFJVR j4EJ/P71lg9a2MGb2bJCYTMEikxcxvuGhLFzYwJM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50541: dmaengine: ti: k3-udma: Reset UDMA_CHAN_RT byte counters to prevent overflow Date: Tue, 7 Oct 2025 17:20:59 +0200 Message-ID: <2025100756-CVE-2022-50541-e1fe@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=2734; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HefWGQU3JmE4QLomaGQezSUCB2LH253zEEvlSKiQWVU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9W9s9ks5VHtbJUZx4fID2yfdu3XhjdsXZibF/XX6P +dbuE0M7IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJPM1hmJ/JkVeytrG5sLWG XaFq8j0thvR/qQzzFN+2PLLdr9T+Ou7crWdX39k9ver1GAA= 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: dmaengine: ti: k3-udma: Reset UDMA_CHAN_RT byte counters to prevent overflow UDMA_CHAN_RT_*BCNT_REG stores the real-time channel bytecount statistics. These registers are 32-bit hardware counters and the driver uses these counters to monitor the operational progress status for a channel, when transferring more than 4GB of data it was observed that these counters overflow and completion calculation of a operation gets affected and the transfer hangs indefinitely. This commit adds changes to decrease the byte count for every complete transaction so that these registers never overflow and the proper byte count statistics is maintained for ongoing transaction by the RT counters. Earlier uc->bcnt used to maintain a count of the completed bytes at driver side, since the RT counters maintain the statistics of current transaction now, the maintenance of uc->bcnt is not necessary. The Linux kernel CVE team has assigned CVE-2022-50541 to this issue. Affected and fixed versions =========================== Fixed in 5.15.75 with commit d68da10b0cceb4177b653833e794b2923a4ffbd7 Fixed in 5.19.17 with commit e0b16bfbd3a4a8d09614046335f4482313e7c0c4 Fixed in 6.0.3 with commit a065657643a62a24b4435ddcaea45f1e9378749e Fixed in 6.1 with commit 7c94dcfa8fcff2dba53915f1dabfee49a3df8b88 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-50541 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/ti/k3-udma.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/d68da10b0cceb4177b653833e794b2923a4ffbd7 https://git.kernel.org/stable/c/e0b16bfbd3a4a8d09614046335f4482313e7c0c4 https://git.kernel.org/stable/c/a065657643a62a24b4435ddcaea45f1e9378749e https://git.kernel.org/stable/c/7c94dcfa8fcff2dba53915f1dabfee49a3df8b88