CVE-2022-50541: dmaengine: ti: k3-udma: Reset UDMA_CHAN_RT byte counters to prevent overflow
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: ti: k3-udma: Reset UDMACHANRT byte counters to prevent overflow
UDMACHANRTBCNTREG 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.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2022-50541?
CVE-2022-50541 has a medium severity rating due to potential byte counter overflow in the Linux kernel.
How do I fix CVE-2022-50541?
Fix CVE-2022-50541 by updating to the latest version of the Linux kernel that addresses this vulnerability.
What components are affected by CVE-2022-50541?
CVE-2022-50541 affects the dmaengine module in the Linux kernel.
Can CVE-2022-50541 be exploited remotely?
CVE-2022-50541 does not present a remote exploit vector; it primarily affects local system operations.
What are the potential impacts of CVE-2022-50541?
The potential impact of CVE-2022-50541 includes inaccurate channel byte count statistics, which can affect resource management.