mailbox: riscv-sbi-mpxy: validate RPMI notification lengths
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 |
|
|
6.18.527.2.67.3In the Linux kernel, the following vulnerability has been resolved:
mailbox: riscv-sbi-mpxy: validate RPMI notification lengths
The SBI return value controls how many bytes are copied from shared memory into the RPMI notification buffer. It is not validated against the negotiated shared-memory size before that copy. The event walker also uses a reversed loop condition and can inspect a short event record.
Validate the complete notification length before copying it, iterate only while a full event header remains, and stop when a declared event payload extends beyond the copied notification data.
From the CVE record · Linux
The riscv-sbi-mpxy mailbox code does not validate an RPMI notification length against the negotiated shared-memory size before copying data. Its event walker can also inspect a short event record. The input does not specify attacker access requirements or whether user interaction is needed.
Engineers running Linux kernels with the riscv-sbi-mpxy mailbox code should check their deployments; affected versions are not specified.