dmaengine: ti: k3-udma: Reset UDMA_CHAN_RT byte counters to prevent overflow
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s TI K3 UDMA driver uses 32-bit hardware byte counters that can overflow during transfers of more than 4 GB, disrupting completion calculations and causing a transfer to hang indefinitely. The input does not describe an attacker action or specify network, authentication, or user-interaction requirements.
Engineers running Linux kernels that use the TI K3 UDMA driver should check their deployments; affected versions are not specified.