ASoC: atmel: Fix error handling in snd_proto_probe
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:
ASoC: atmel: Fix error handling in snd_proto_probe
The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done.
This function only calls of_node_put() in the regular path. And it will cause refcount leak in error paths. Fix this by calling of_node_put() in error handling too.
From the CVE record · Linux
The Linux kernel's ASoC atmel snd_proto_probe function leaks a device-node reference on error paths. The input does not describe how an attacker could trigger the error or exploit the leak, or specify access or user-interaction requirements.
Engineers running Linux kernels with the ASoC atmel component should check their versions against the vendor advisory; affected versions are not specified.