mailbox: Prevent out-of-bounds access in fw_mbox_index_xlate()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2b6d83e2b8b7de82331a6a1dcd64b51020a6031c · < 4caae8168d1b808c7d4ff481295292e3f97f90fb| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mailbox: Prevent out-of-bounds access in fw_mbox_index_xlate()
Although it is guided that `#mbox-cells` must be at least 1, there are many instances of `#mbox-cells = <0>;` in the device tree. If that is the case and the corresponding mailbox controller does not provide `fw_xlate` and of_xlate` function pointers, `fw_mbox_index_xlate()` will be used by default and out-of-bounds accesses could occur due to lack of bounds check in that function.
From the CVE record · Linux
The Linux kernel's fw_mbox_index_xlate() lacks a bounds check. Out-of-bounds access can occur when a device tree sets #mbox-cells to 0 and the corresponding mailbox controller provides neither fw_xlate nor of_xlate. The input does not specify an attack route, authentication requirement, or user interaction.
Engineers running the Linux kernel should check systems with mailbox controllers using this device-tree configuration; affected versions are not specified.