CVE-2026-80951: i3c: master: svc: bound IBI payload to the requested max_payload_len
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
i3c: master: svc: bound IBI payload to the requested max_payload_len
svc_i3c_master_handle_ibi() reads the IBI payload from the RX FIFO into the IBI slot. The loop is bounded by the hardware FIFO size (SVC_I3C_FIFO_SIZE), not by the slot size.
slot->data points into the IBI pool, which i3c_generic_ibi_alloc_pool() sizes at max_payload_len per slot. svc_i3c_master_request_ibi() only rejects a max_payload_len larger than SVC_I3C_FIFO_SIZE, so a driver can request a smaller one. mctp-i3c requests 1. Each readsb() then copies the controller RXCOUNT bytes (up to 31) with no check against the slot size. A device that sends more bytes than the slot holds writes past slot->data, an out-of-bounds write into the IBI pool.
Bound the loop by dev->ibi->max_payload_len and clamp each read to the space left in the slot, the same way dw-i3c does. A device can still send more than the requested payload. Flush the leftover bytes from the RX FIFO so they do not leak into the next transfer.
The Linux kernel CVE team has assigned CVE-2026-80951 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.12 with commit dd3c52846d5954acd43f0e771689302f27dadc28 and fixed in 6.12.109 with commit f296a0d5907bf88314dfda67245f7f69d1552470 Issue introduced in 5.12 with commit dd3c52846d5954acd43f0e771689302f27dadc28 and fixed in 6.18.50 with commit 5697d779577e2786ff3348ae9b77020ac0cf0aab Issue introduced in 5.12 with commit dd3c52846d5954acd43f0e771689302f27dadc28 and fixed in 7.2.4 with commit aac3c5aababc7fb69d5bf5b0cc52d308574e3a8c Issue introduced in 5.12 with commit dd3c52846d5954acd43f0e771689302f27dadc28 and fixed in 7.3-rc1 with commit e2bda39d7f9f285ec803e200b5c1f17143d0b483
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-80951
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/i3c/master/svc-i3c-master.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/f296a0d5907bf88314dfda67245f7f69d1552470 https://git.kernel.org/stable/c/5697d779577e2786ff3348ae9b77020ac0cf0aab https://git.kernel.org/stable/c/aac3c5aababc7fb69d5bf5b0cc52d308574e3a8c https://git.kernel.org/stable/c/e2bda39d7f9f285ec803e200b5c1f17143d0b483