i3c: mipi-i3c-hci: Fix race in DMA ring dequeue
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9ad9a52cce2828d932ae9495181e3d6414f72c07 · < 1dca8aee80eea76d2aae21265de5dd64f6ba0f09| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
i3c: mipi-i3c-hci: Fix race in DMA ring dequeue
The HCI DMA dequeue path (hci_dma_dequeue_xfer()) may be invoked for multiple transfers that timeout around the same time. However, the function is not serialized and can race with itself.
When a timeout occurs, hci_dma_dequeue_xfer() stops the ring, processes incomplete transfers, and then restarts the ring. If another timeout triggers a parallel call into the same function, the two instances may interfere with each other - stopping or restarting the ring at unexpected times.
Add a mutex so that hci_dma_dequeue_xfer() is serialized with respect to itself.
From the CVE record · Linux
The Linux kernel's MIPI I3C HCI driver has a race in its DMA dequeue path. If multiple transfers time out around the same time, concurrent dequeue calls can stop or restart the DMA ring unexpectedly. The input does not specify an attack route, authentication requirement, or user interaction.
Engineers running Linux kernels with the MIPI I3C HCI driver should check their kernel version; affected versions are not specified.