media: stm32-csi: Fix dereference before NULL check
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 |
|
|
6.16.116.17.16.18In the Linux kernel, the following vulnerability has been resolved:
media: stm32-csi: Fix dereference before NULL check
In 'stm32_csi_start', 'csidev->s_subdev' is dereferenced directly while assigning a value to the 'src_pad'. However the same value is being checked against NULL at a later point of time indicating that there are chances that the value can be NULL.
Move the dereference after the NULL check.
From the CVE record · Linux
The Linux kernel's stm32-csi driver dereferences s_subdev before checking whether it is NULL. If s_subdev is NULL when stm32_csi_start runs, a NULL pointer dereference can occur. The input does not describe an attacker path, authentication requirements, or user interaction.
Engineers running Linux kernels with the stm32-csi driver should check their deployments; affected versions are not specified.