CVE-2022-50541 PUBLISHED

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

Assigner: Linux
Reserved: 07.10.2025 Published: 07.10.2025 Updated: 07.10.2025

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to d68da10b0cceb4177b653833e794b2923a4ffbd7 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to e0b16bfbd3a4a8d09614046335f4482313e7c0c4 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to a065657643a62a24b4435ddcaea45f1e9378749e (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 7c94dcfa8fcff2dba53915f1dabfee49a3df8b88 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • unaffected from 5.15.75 to 5.15.* (incl.)
  • unaffected from 5.19.17 to 5.19.* (incl.)
  • unaffected from 6.0.3 to 6.0.* (incl.)
  • unaffected from 6.1 to * (incl.)

References