{"id":"CVE-2022-50125","state":"PUBLISHED","title":"ASoC: cros_ec_codec: Fix refcount leak in cros_ec_codec_platform_probe","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: cros_ec_codec: Fix refcount leak in cros_ec_codec_platform_probe\n\nof_parse_phandle() returns a node pointer with refcount\nincremented, we should use of_node_put() on it when not need anymore.\nAdd missing of_node_put() to avoid refcount leak.","publishedAt":"2025-06-18T11:02:53.046Z","updatedAt":"2026-05-11T19:13:19.645Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b6bc07d4360dbf766e551f18e43c67fff6784955","status":"affected","lessThan":"bae95c5aee1f67da6608ceaebfb744d900e5ffbf","versionType":"git"},{"version":"b6bc07d4360dbf766e551f18e43c67fff6784955","status":"affected","lessThan":"1065c385325845c88350c765cc6e449f46741984","versionType":"git"},{"version":"b6bc07d4360dbf766e551f18e43c67fff6784955","status":"affected","lessThan":"b3e64b5562c077218295f2230fb5cf181193cb06","versionType":"git"},{"version":"b6bc07d4360dbf766e551f18e43c67fff6784955","status":"affected","lessThan":"ca6c9244e6c9827a0b2fe8808c5e7b1ee8ab7104","versionType":"git"},{"version":"b6bc07d4360dbf766e551f18e43c67fff6784955","status":"affected","lessThan":"0a034d93ee929a9ea89f3fa5f1d8492435b9ee6e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/codecs/cros_ec_codec.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.5","versionType":"semver"},{"version":"5.10.137","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.61","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.18.18","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19.2","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/codecs/cros_ec_codec.c"]}],"references":["https://git.kernel.org/stable/c/bae95c5aee1f67da6608ceaebfb744d900e5ffbf","https://git.kernel.org/stable/c/1065c385325845c88350c765cc6e449f46741984","https://git.kernel.org/stable/c/b3e64b5562c077218295f2230fb5cf181193cb06","https://git.kernel.org/stable/c/ca6c9244e6c9827a0b2fe8808c5e7b1ee8ab7104","https://git.kernel.org/stable/c/0a034d93ee929a9ea89f3fa5f1d8492435b9ee6e"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50125.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50125","state":"PUBLISHED","datePublished":"2025-06-18T11:02:53.046Z","dateUpdated":"2026-05-11T19:13:19.645Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-06-18T10:57:27.417Z"},"containers":{"cna":{"title":"ASoC: cros_ec_codec: Fix refcount leak in cros_ec_codec_platform_probe","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: cros_ec_codec: Fix refcount leak in cros_ec_codec_platform_probe\n\nof_parse_phandle() returns a node pointer with refcount\nincremented, we should use of_node_put() on it when not need anymore.\nAdd missing of_node_put() to avoid refcount leak."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b6bc07d4360dbf766e551f18e43c67fff6784955","status":"affected","lessThan":"bae95c5aee1f67da6608ceaebfb744d900e5ffbf","versionType":"git"},{"version":"b6bc07d4360dbf766e551f18e43c67fff6784955","status":"affected","lessThan":"1065c385325845c88350c765cc6e449f46741984","versionType":"git"},{"version":"b6bc07d4360dbf766e551f18e43c67fff6784955","status":"affected","lessThan":"b3e64b5562c077218295f2230fb5cf181193cb06","versionType":"git"},{"version":"b6bc07d4360dbf766e551f18e43c67fff6784955","status":"affected","lessThan":"ca6c9244e6c9827a0b2fe8808c5e7b1ee8ab7104","versionType":"git"},{"version":"b6bc07d4360dbf766e551f18e43c67fff6784955","status":"affected","lessThan":"0a034d93ee929a9ea89f3fa5f1d8492435b9ee6e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/codecs/cros_ec_codec.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.5","versionType":"semver"},{"version":"5.10.137","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.61","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.18.18","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19.2","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/codecs/cros_ec_codec.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/bae95c5aee1f67da6608ceaebfb744d900e5ffbf"},{"url":"https://git.kernel.org/stable/c/1065c385325845c88350c765cc6e449f46741984"},{"url":"https://git.kernel.org/stable/c/b3e64b5562c077218295f2230fb5cf181193cb06"},{"url":"https://git.kernel.org/stable/c/ca6c9244e6c9827a0b2fe8808c5e7b1ee8ab7104"},{"url":"https://git.kernel.org/stable/c/0a034d93ee929a9ea89f3fa5f1d8492435b9ee6e"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:13:19.645Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"5.10.137"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"5.15.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"5.18.18"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"5.19.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}