What’s Vulnerable › Vulnerabilities

CVE-2022-49240: ASoC: mediatek: mt8195: Fix error handling in mt8195_mt6359_rt1019_rt5682_dev_probe

Description

In the Linux kernel, the following vulnerability has been resolved: ASoC: mediatek: mt8195: Fix error handling in mt8195_mt6359_rt1019_rt5682_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 path.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.17.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-49240 or the next vulnerability affects your stack