Linux
mailbox: riscv-sbi-mpxy: validate RPMI notification lengths
In 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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= bf3022a4eb119c6b4e3424d6b19d8bfdfbc9bb57, < cbc24bce70dfd91c7b2f53b4fa896e9a4b6d6a6b
- >= bf3022a4eb119c6b4e3424d6b19d8bfdfbc9bb57, < c7bc5e7677bcda7a446d63b989cfaa3fe91d6b76
- >= bf3022a4eb119c6b4e3424d6b19d8bfdfbc9bb57, < 11d5af151bcbe78f5a579e0faecd3be9cea0399a
Fixed in cbc24bce70dfd91c7b2f53b4fa896e9a4b6d6a6b, c7bc5e7677bcda7a446d63b989cfaa3fe91d6b76, 11d5af151bcbe78f5a579e0faecd3be9cea0399a
- 6.18
Fixed in 0, 6.18.52, 7.2.6, 7.3
Mitigation
Upgrade Linux to cbc24bce70dfd91c7b2f53b4fa896e9a4b6d6a6b or c7bc5e7677bcda7a446d63b989cfaa3fe91d6b76 or 11d5af151bcbe78f5a579e0faecd3be9cea0399a or later.
Upgrade Linux to 0 or 6.18.52 or 7.2.6 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.