media: qcom: camss: fix error path on configuration of power domains
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:
media: qcom: camss: fix error path on configuration of power domains
There is a chance to meet runtime issues during configuration of CAMSS power domains, because on the error path dev_pm_domain_detach() is unexpectedly called with NULL or error pointer.
One of the simplest ways to reproduce the problem is to probe CAMSS driver before registration of CAMSS power domains, for instance if a platform CAMCC driver is simply not built.
Warning backtrace example:
Unable to handle kernel NULL pointer dereference at virtual address 00000000000001a2
<snip>
pc : dev_pm_domain_detach+0x8/0x48 lr : camss_probe+0x374/0x9c0
From the CVE record · Linux
The Linux kernel’s Qualcomm CAMSS driver can call dev_pm_domain_detach() with a NULL or error pointer when power-domain configuration fails. This can cause a kernel NULL pointer dereference during driver probing, for example if CAMSS is probed before its power domains are registered. The input does not describe an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with the Qualcomm CAMSS driver should check their builds; affected versions are not specified.