← CVE Intelligence

CVE-2022-49240

ASoC: mediatek: mt8195: Fix error handling in mt8195_mt6359_rt1019_rt5682_dev_probe PUBLISHED

Description (CNA)

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 (CNA)

Vendor / productVersions
Linux / Linuxaffected 082482a5022780d42180a394fe6843e71fe963d8 before c652f8f0875b569f8afa80b8cf9762828fd6187b; affected 082482a5022780d42180a394fe6843e71fe963d8 before c4b7174fe5bb875a09a78674a14a1589d1a672f3
Linux / Linuxaffected 5.17; unaffected 0 before 5.17; unaffected 5.17.2 through 5.17.*; unaffected 5.18 through *

CWE

No CWE identifiers supplied.

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.