ASoC: mxs: Fix error handling in mxs_sgtl5000_probe
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e968194b45c4e8077dada75c5bae5660b37628fe · < 44acdaf7acb60054d872bed18ce0e7db8ce900ce| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ASoC: mxs: Fix error handling in mxs_sgtl5000_probe
This function only calls of_node_put() in the regular path. And it will cause refcount leak in error paths. For example, when codec_np is NULL, saif_np[0] and saif_np[1] are not NULL, it will cause leaks.
of_node_put() will check if the node pointer is NULL, so we can call it directly to release the refcount of regular pointers.
From the CVE record · Linux
The Linux kernel’s mxs_sgtl5000_probe function can leak device-tree node references on error paths. The input does not specify how an attacker could trigger the error or whether authentication or user interaction is required.
Engineers running Linux kernels that include the ASoC mxs_sgtl5000 driver should check their kernel vendor’s advisory; affected versions are not specified.