CVE-2026-139747: remoteproc: imx_rproc: Allow mappings ending at region boundary
In the Linux kernel, the following vulnerability has been resolved:
remoteproc: imxrproc: Allow mappings ending at region boundary
The address range checks in imxrprocdatosys() and imxrprocdatova() use a strict comparison for the exclusive end address of the requested range.
As a result, a valid request that ends exactly at the end of an address translation or mapped memory region is rejected. For a region [start, start + size), a request [addr, addr + len) is contained when:
addr >= start && addr + len <= start + size
This occurs when a loadable ELF segment fills an entire mapped memory region. This can be produced by a linker script that extends the resource table section to the end of its designated region:
.resourcetable : { . = ALIGN(8); KEEP((.resourcetable)) / Resource table / . = ALIGN(8); . = ORIGIN(mrsctbl) + LENGTH(mrsctbl); } > mrsctbl =0x00
This produces a ELF program header like:
LOAD 0x010000 0xa4220000 0xa4220000 0x01000 0x01000 R 0x1000
In this case, the segment size matches the mapped region size exactly, causing the address translation to fail with:
bad phdr da 0xa4220000 mem 0x1000
Rework the upper-bound checks to allow ranges ending exactly at the region boundary while guarding against integer overflow.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In Linux kernel remoteproc imx_rproc, rework the upper-bound checks in imx_rproc_da_to_sys() and imx_rproc_da_to_va() to allow ranges ending exactly at the mapped-region boundary while guarding against integer overflow.
Event History
Frequently Asked Questions
Which systems are affected by this issue?
Systems using the Linux kernel imx_rproc remoteproc driver are affected when they load an ELF segment whose requested mapping ends exactly at the boundary of an address translation or mapped-memory region. A segment that fills an entire mapped region can trigger the failure.
How can I tell whether this is occurring?
The failure can be identified by a remoteproc load error such as "bad phdr da 0xa4220000 mem 0x1000". It occurs when an ELF program header has a memory size equal to the mapped region size, causing the existing exclusive upper-bound check to reject an otherwise valid range.