bus: mhi: host: Add alignment check for event ring read pointer
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ec32332df7645e0ba463a08d483fe97665167071 · < eff9704f5332a13b08fbdbe0f84059c9e7051d5f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
bus: mhi: host: Add alignment check for event ring read pointer
Though we do check the event ring read pointer by "is_valid_ring_ptr" to make sure it is in the buffer range, but there is another risk the pointer may be not aligned. Since we are expecting event ring elements are 128 bits(struct mhi_ring_element) aligned, an unaligned read pointer could lead to multiple issues like DoS or ring buffer memory corruption.
So add a alignment check for event ring read pointer.
From the CVE record · Linux
The Linux kernel MHI host driver checks that an event ring read pointer is within the buffer, but did not check its alignment. An unaligned pointer could cause denial of service or ring buffer memory corruption; the input does not specify the access required to trigger this or whether user interaction is needed.
Engineers running Linux kernels with the MHI host driver should check their versions; affected versions are not specified.