ASoC: mediatek: Fix error handling in mt8183_da7219_max98357_dev_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: mediatek: Fix error handling in mt8183_da7219_max98357_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 Mediatek ASoC mt8183_da7219_max98357_dev_probe function can leak a device-node reference on error paths. The input does not specify an attacker action or whether exploitation requires network access, authentication, or user interaction.
Engineers running the Linux kernel should check whether their build includes the affected Mediatek ASoC probe function; affected versions are not specified.