mailbox: th1520: Fix memory corruption due to incorrect array size
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:
mailbox: th1520: Fix memory corruption due to incorrect array size
The functions th1520_mbox_suspend_noirq and th1520_mbox_resume_noirq are intended to save and restore the interrupt mask registers in the MBOX ICU0. However, the array used to store these registers was incorrectly sized, leading to memory corruption when accessing all four registers.
This commit corrects the array size to accommodate all four interrupt mask registers, preventing memory corruption during suspend and resume operations.
From the CVE record · Linux
The Linux kernel th1520 mailbox driver uses an undersized array to save and restore four interrupt mask registers. Accessing all four registers during suspend or resume can corrupt memory. The input does not specify how an attacker could trigger this or whether authentication or user interaction is required.
Anyone running a Linux kernel with the th1520 mailbox driver should check their version; affected versions were not provided.