ASoC: cros_ec_codec: Fix refcount leak in cros_ec_codec_platform_probe
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ASoC: cros_ec_codec: Fix refcount leak in cros_ec_codec_platform_probe
of_parse_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak.
From the CVE record · Linux
The Linux kernel's cros_ec_codec_platform_probe leaks a device-tree node reference because it does not release a pointer returned by of_parse_phandle(). The input does not describe how an attacker could trigger the leak or specify access, authentication, or user-interaction requirements.
Engineers running the Linux kernel with the cros_ec_codec component should check their versions; affected versions are not specified.