OPP: Fix potential null ptr dereference in dev_pm_opp_get_required_pstate()
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:
OPP: Fix potential null ptr dereference in dev_pm_opp_get_required_pstate()
"opp" pointer is dereferenced before the IS_ERR_OR_NULL() check. Fix it by removing the dereference to cache opp_table and dereference it directly where opp_table is used.
This fixes the following smatch warning:
drivers/opp/core.c:232 dev_pm_opp_get_required_pstate() warn: variable dereferenced before IS_ERR check 'opp' (see line 230)
From the CVE record · Linux
The Linux kernel's OPP function dev_pm_opp_get_required_pstate() dereferences an `opp` pointer before checking whether it is null or an error. This could cause a null pointer dereference. The input does not specify an attack path, authentication requirements, or whether user interaction is needed.
Engineers running the Linux kernel should check their versions; affected versions are not specified.