Skip to contentSkip to conversation

CVE-2026-90314: remoteproc: fix OOB read via signed offset in rsc_table_for_each_entry()

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:

remoteproc: fix OOB read via signed offset in rsc_table_for_each_entry()

table->offset[i] is a u32 from firmware, but was stored into a signed int. A crafted offset like 0xFFFFFFF0 becomes -16, placing hdr 16 bytes before the table buffer. The subsequent avail check was bypassed because the negative int was promoted to a large size_t in the expression "table_sz - offset - sizeof(*hdr)", yielding a large positive avail and letting the out-of-bounds hdr->type read proceed undetected.

Store the offset as u32 and validate it with unsigned comparisons before any pointer arithmetic.

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

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

	Issue introduced in 3.4 with commit fd2c15ec1dd3c2fdfc6ff03bb9644da9d530e3b9 and fixed in 5.10.270 with commit 0d385be8f199b349f325cf90584b47b6a044ea79
	Issue introduced in 3.4 with commit fd2c15ec1dd3c2fdfc6ff03bb9644da9d530e3b9 and fixed in 5.15.221 with commit cc85e0d3d3333fd5fd2d50c9a4578d209d7f2564
	Issue introduced in 3.4 with commit fd2c15ec1dd3c2fdfc6ff03bb9644da9d530e3b9 and fixed in 6.1.188 with commit 6a01ad25aa4f3a02153cf1d112cb9b65865cd5d8
	Issue introduced in 3.4 with commit fd2c15ec1dd3c2fdfc6ff03bb9644da9d530e3b9 and fixed in 6.6.157 with commit c82241a9454b2d30d53b50884f94b7972ba44a5e
	Issue introduced in 3.4 with commit fd2c15ec1dd3c2fdfc6ff03bb9644da9d530e3b9 and fixed in 6.12.110 with commit bc4940793aaa16a9cf90063b11d6926f8014a1b7
	Issue introduced in 3.4 with commit fd2c15ec1dd3c2fdfc6ff03bb9644da9d530e3b9 and fixed in 6.18.52 with commit 6fd220604f06c746760183df74b07384c3fdd660
	Issue introduced in 3.4 with commit fd2c15ec1dd3c2fdfc6ff03bb9644da9d530e3b9 and fixed in 7.2.6 with commit 6282d47b24b0c98d08d02807d676a7f67b4c052e
	Issue introduced in 3.4 with commit fd2c15ec1dd3c2fdfc6ff03bb9644da9d530e3b9 and fixed in 7.3-rc1 with commit bb840ea69347aff7bde5a208e7b5b180669a7656

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-90314

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:
include/linux/rsc_table.h

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/0d385be8f199b349f325cf90584b47b6a044ea79
	https://git.kernel.org/stable/c/cc85e0d3d3333fd5fd2d50c9a4578d209d7f2564
	https://git.kernel.org/stable/c/6a01ad25aa4f3a02153cf1d112cb9b65865cd5d8
	https://git.kernel.org/stable/c/c82241a9454b2d30d53b50884f94b7972ba44a5e
	https://git.kernel.org/stable/c/bc4940793aaa16a9cf90063b11d6926f8014a1b7
	https://git.kernel.org/stable/c/6fd220604f06c746760183df74b07384c3fdd660
	https://git.kernel.org/stable/c/6282d47b24b0c98d08d02807d676a7f67b4c052e
	https://git.kernel.org/stable/c/bb840ea69347aff7bde5a208e7b5b180669a7656