PM / devfreq: Check governor before using governor->name
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 96ffcdf239de6f9970178bb7d643e16fd9e68ab9 · < 75323a49aa603cf5484a6d74d0d329e86d756e11| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
PM / devfreq: Check governor before using governor->name
Commit 96ffcdf239de ("PM / devfreq: Remove redundant governor_name from struct devfreq") removes governor_name and uses governor->name to replace it. But devfreq->governor may be NULL and directly using devfreq->governor->name may cause null pointer exception. Move the check of governor to before using governor->name.
From the CVE record · Linux
The Linux kernel’s PM/devfreq component can dereference a NULL governor pointer when accessing its name, potentially causing a crash. The input does not specify how an attacker could trigger this condition or whether access or user interaction is required.
Engineers running the Linux kernel should check their installations; affected versions are not specified.