CVE-2022-50125
JSON

5.5medium

ASoC: cros_ec_codec: Fix refcount leak in cros_ec_codec_platform_probe

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.28% (higher than 13% of CVEs)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: ASoC: cros_ec_codec: Fix refcount leak in cros_ec_codec_platform_probe of_parse_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak.

Affected

Product or packageVersionsReported by
Linux Linuxfrom b6bc07d4360dbf766e551f18e43c67fff6784955 before bae95c5aee1f67da6608ceaebfb744d900e5ffbf, from b6bc07d4360dbf766e551f18e43c67fff6784955 before 1065c385325845c88350c765cc6e449f46741984, from b6bc07d4360dbf766e551f18e43c67fff6784955 before b3e64b5562c077218295f2230fb5cf181193cb06, from b6bc07d4360dbf766e551f18e43c67fff6784955 before ca6c9244e6c9827a0b2fe8808c5e7b1ee8ab7104, from b6bc07d4360dbf766e551f18e43c67fff6784955 before 0a034d93ee929a9ea89f3fa5f1d8492435b9ee6e, 5.5
Not affected: before 5.5, from 5.10.137 up to 5.10.*, from 5.15.61 up to 5.15.*, from 5.18.18 up to 5.18.*, from 5.19.2 up to 5.19.*, from 6.0 up to *
CVE List
linux linux_kernelfrom 5.5 before 5.10.137, from 5.11 before 5.15.61, from 5.16 before 5.18.18, from 5.19 before 5.19.2NVD

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: ASoC: cros_ec_codec: Fix refcount leak in cros_ec_codec_platform_probe of_parse_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ASoC: cros_ec_codec: Se corrige la fuga de recuento de referencias en cros_ec_codec_platform_probe. of_parse_phandle() devuelve un puntero de nodo con el recuento de referencias incrementado. Debemos usar of_node_put() cuando ya no sea necesario. Se ha añadido la función of_node_put() que falta para evitar la fuga de recuento de referencias.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-50125 changed 2026-05-11CVE Terms of Use
NVDCVE-2022-50125 changed 2026-06-17Public domain