cpufreq: Avoid a bad reference count on CPU node
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8486a32dd484a7d7ec25295c7439094608f54915 · < c0f02536fffbbec71aced36d52a765f8c4493dc2| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
cpufreq: Avoid a bad reference count on CPU node
In the parse_perf_domain function, if the call to of_parse_phandle_with_args returns an error, then the reference to the CPU device node that was acquired at the start of the function would not be properly decremented.
Address this by declaring the variable with the __free(device_node) cleanup attribute.
From the CVE record · Linux
The Linux kernel's cpufreq parse_perf_domain function can fail to release a CPU device node reference when of_parse_phandle_with_args returns an error. The input does not specify how an attacker could trigger this error, whether access or user interaction is required, or what impact it could have.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.