ASoC: mediatek: mt8192-mt6359: Fix error handling in mt8192_mt6359_dev_probe
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| 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: mediatek: mt8192-mt6359: Fix error handling in mt8192_mt6359_dev_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 mt8192-mt6359 probe function fails to release a device-node reference on error paths, causing a reference-count leak. The input does not specify how an attacker could trigger the error or whether access or user interaction is required.
Engineers running Linux kernels with the ASoC MediaTek mt8192-mt6359 component should check their versions; affected versions are not specified.