remoteproc: imx_rproc: Skip over memory region when node value is NULL
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a0ff4aa6f010801b2a61c203c6e09d01b110fddf · < 6c9ea3547fad252fe9ae5d3ed7e066e2085bf3a2| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
remoteproc: imx_rproc: Skip over memory region when node value is NULL
In imx_rproc_addr_init() "nph = of_count_phandle_with_args()" just counts number of phandles. But phandles may be empty. So of_parse_phandle() in the parsing loop (0 < a < nph) may return NULL which is later dereferenced. Adjust this issue by adding NULL-return check.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
[Fixed title to fit within the prescribed 70-75 charcters]
From the CVE record · Linux
In the Linux kernel's imx_rproc component, an empty phandle can cause a NULL pointer dereference during memory-region parsing, potentially crashing the kernel. The input does not specify how an attacker could trigger it or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels that include imx_rproc should check their versions; affected versions are not specified.