Skip to contentSkip to conversation

CVE-2026-90191: mailbox: riscv-sbi-mpxy: validate RPMI notification lengths

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-90191 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.18 with commit bf3022a4eb119c6b4e3424d6b19d8bfdfbc9bb57 and fixed in 6.18.52 with commit cbc24bce70dfd91c7b2f53b4fa896e9a4b6d6a6b
	Issue introduced in 6.18 with commit bf3022a4eb119c6b4e3424d6b19d8bfdfbc9bb57 and fixed in 7.2.6 with commit c7bc5e7677bcda7a446d63b989cfaa3fe91d6b76
	Issue introduced in 6.18 with commit bf3022a4eb119c6b4e3424d6b19d8bfdfbc9bb57 and fixed in 7.3-rc1 with commit 11d5af151bcbe78f5a579e0faecd3be9cea0399a

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-90191

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/mailbox/riscv-sbi-mpxy-mbox.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/cbc24bce70dfd91c7b2f53b4fa896e9a4b6d6a6b
	https://git.kernel.org/stable/c/c7bc5e7677bcda7a446d63b989cfaa3fe91d6b76
	https://git.kernel.org/stable/c/11d5af151bcbe78f5a579e0faecd3be9cea0399a