Skip to content
Heist/ feed
Back to feed
UnratedFix available

dmaengine: ti: k3-udma: Reset UDMA_CHAN_RT byte counters to prevent overflow

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.75, 5.19.17, 6.0.3
CVEs
CVE-2022-50541
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 03:23 UTC · Revision 1

Source evidence

dmaengine: ti: k3-udma: Reset UDMA_CHAN_RT byte counters to prevent overflow

core-osv · Original source

Published 7 Oct 2025, 15:21 UTC

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.

osv:CVE-2022-50541

Kernel

Fixed versions: 5.15.75, 5.19.17, 6.0.3

Complete source record
{
  "id": "ae3106b6da760e556b4cd99ada525fefa4bdc1401062bf4982d93b11e21c0887",
  "url": "https://osv.dev/vulnerability/CVE-2022-50541",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "dmaengine: ti: k3-udma: Reset UDMA_CHAN_RT byte counters to prevent overflow",
    "summary": "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.",
    "evidence": "osv:CVE-2022-50541",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.75",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.19.17",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.0.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-50541",
      "aliases": [
        "CVE-2022-50541"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "25dcb5dd7b7ce5587c1df18f584ff78f51a68a94"
                },
                {
                  "fixed": "d68da10b0cceb4177b653833e794b2923a4ffbd7"
                },
                {
                  "fixed": "e0b16bfbd3a4a8d09614046335f4482313e7c0c4"
                },
                {
                  "fixed": "a065657643a62a24b4435ddcaea45f1e9378749e"
                },
                {
                  "fixed": "7c94dcfa8fcff2dba53915f1dabfee49a3df8b88"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50541.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.6.0"
                },
                {
                  "fixed": "5.15.75"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "5.19.17"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.20.0"
                },
                {
                  "fixed": "6.0.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50541.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.370972953Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/7c94dcfa8fcff2dba53915f1dabfee49a3df8b88",
        "https://git.kernel.org/stable/c/a065657643a62a24b4435ddcaea45f1e9378749e",
        "https://git.kernel.org/stable/c/d68da10b0cceb4177b653833e794b2923a4ffbd7",
        "https://git.kernel.org/stable/c/e0b16bfbd3a4a8d09614046335f4482313e7c0c4",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50541.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-50541",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50541.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-50541",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 517721,
  "published_at": "2025-10-07T15:21:06.548+00:00"
}