remoteproc: pru: Fix potential NULL pointer dereference in pru_rproc_set_ctable()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
remoteproc: pru: Fix potential NULL pointer dereference in pru_rproc_set_ctable()
pru_rproc_set_ctable() accessed rproc->priv before the IS_ERR_OR_NULL check, which could lead to a null pointer dereference. Move the pru assignment, ensuring we never dereference a NULL rproc pointer.
From the CVE record · Linux
The Linux kernel's pru_rproc_set_ctable() accessed rproc->priv before checking whether rproc was NULL. This could cause a NULL pointer dereference if the function receives a NULL pointer. The input does not establish an attack path, authentication requirement, or need for user interaction.
Engineers running Linux kernels with the PRU remoteproc component should check their versions; affected versions are not specified.