wifi: mt76: fix out-of-bounds access in mmio copy helpers
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:
wifi: mt76: fix out-of-bounds access in mmio copy helpers
mt76_mmio_write_copy() and mt76_mmio_read_copy() iterate up to ALIGN(len, 4), so a length that is not a multiple of four reads past the source buffer (write_copy) or writes past the destination (read_copy). Copy the aligned body in the loop and handle the remaining tail through a 4-byte bounce buffer, keeping the register access width unchanged.
From the CVE record · Linux
The Linux kernel’s mt76 MMIO copy helpers can access memory beyond a source or destination buffer when the copy length is not a multiple of four. The input does not specify whether an attacker can trigger this condition, or any required access or user interaction.
Engineers running the Linux kernel with the mt76 Wi-Fi driver should check their deployments; affected versions are not specified.