bus: mhi: ep: Update read pointer only after buffer is written
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
bus: mhi: ep: Update read pointer only after buffer is written
Inside mhi_ep_ring_add_element, the read pointer (rd_offset) is updated before the buffer is written, potentially causing race conditions where the host sees an updated read pointer before the buffer is actually written. Updating rd_offset prematurely can lead to the host accessing an uninitialized or incomplete element, resulting in data corruption.
Invoke the buffer write before updating rd_offset to ensure the element is fully written before signaling its availability.
From the CVE record · Linux
The Linux kernel’s MHI endpoint ring can update its read pointer before a buffer write completes. This can let the host access an uninitialized or incomplete element, causing data corruption; the input does not specify an attack path, authentication requirement, or user interaction.
Engineers running Linux kernels with the MHI endpoint ring should check their exposure; affected versions are not specified.