{"id":"CVE-2025-37941","state":"PUBLISHED","title":"ASoC: codecs: wcd937x: fix a potential memory leak in wcd937x_soc_codec_probe()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: codecs: wcd937x: fix a potential memory leak in wcd937x_soc_codec_probe()\n\nWhen snd_soc_dapm_new_controls() or snd_soc_dapm_add_routes() fails,\nwcd937x_soc_codec_probe() returns without releasing 'wcd937x->clsh_info',\nwhich is allocated by wcd_clsh_ctrl_alloc. Add wcd_clsh_ctrl_free()\nto prevent potential memory leak.","publishedAt":"2025-05-20T15:58:18.275Z","updatedAt":"2026-05-11T21:18:05.091Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"313e978df7fc38b9e949ac5933d0d9d56d5e8a9c","status":"affected","lessThan":"acadb2e2b3c5b9977a843a3a94fece9bdcf6aea1","versionType":"git"},{"version":"313e978df7fc38b9e949ac5933d0d9d56d5e8a9c","status":"affected","lessThan":"b573e04116fd33b9143fa276bbab2f0afad0a1ae","versionType":"git"},{"version":"313e978df7fc38b9e949ac5933d0d9d56d5e8a9c","status":"affected","lessThan":"aafb5325aca3e806b3ea3707402189263473d257","versionType":"git"},{"version":"313e978df7fc38b9e949ac5933d0d9d56d5e8a9c","status":"affected","lessThan":"3e330acf4efd63876d673c046cd073a1d4ed57a8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/codecs/wcd937x.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.24","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.12","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14.3","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","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/wcd937x.c"]}],"references":["https://git.kernel.org/stable/c/acadb2e2b3c5b9977a843a3a94fece9bdcf6aea1","https://git.kernel.org/stable/c/b573e04116fd33b9143fa276bbab2f0afad0a1ae","https://git.kernel.org/stable/c/aafb5325aca3e806b3ea3707402189263473d257","https://git.kernel.org/stable/c/3e330acf4efd63876d673c046cd073a1d4ed57a8"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:03.054Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/37xxx/CVE-2025-37941.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-37941","state":"PUBLISHED","datePublished":"2025-05-20T15:58:18.275Z","dateUpdated":"2026-05-11T21:18:05.091Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:23.971Z"},"containers":{"cna":{"title":"ASoC: codecs: wcd937x: fix a potential memory leak in wcd937x_soc_codec_probe()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: codecs: wcd937x: fix a potential memory leak in wcd937x_soc_codec_probe()\n\nWhen snd_soc_dapm_new_controls() or snd_soc_dapm_add_routes() fails,\nwcd937x_soc_codec_probe() returns without releasing 'wcd937x->clsh_info',\nwhich is allocated by wcd_clsh_ctrl_alloc. Add wcd_clsh_ctrl_free()\nto prevent potential memory leak."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"313e978df7fc38b9e949ac5933d0d9d56d5e8a9c","status":"affected","lessThan":"acadb2e2b3c5b9977a843a3a94fece9bdcf6aea1","versionType":"git"},{"version":"313e978df7fc38b9e949ac5933d0d9d56d5e8a9c","status":"affected","lessThan":"b573e04116fd33b9143fa276bbab2f0afad0a1ae","versionType":"git"},{"version":"313e978df7fc38b9e949ac5933d0d9d56d5e8a9c","status":"affected","lessThan":"aafb5325aca3e806b3ea3707402189263473d257","versionType":"git"},{"version":"313e978df7fc38b9e949ac5933d0d9d56d5e8a9c","status":"affected","lessThan":"3e330acf4efd63876d673c046cd073a1d4ed57a8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/codecs/wcd937x.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.24","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.12","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14.3","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","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/wcd937x.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/acadb2e2b3c5b9977a843a3a94fece9bdcf6aea1"},{"url":"https://git.kernel.org/stable/c/b573e04116fd33b9143fa276bbab2f0afad0a1ae"},{"url":"https://git.kernel.org/stable/c/aafb5325aca3e806b3ea3707402189263473d257"},{"url":"https://git.kernel.org/stable/c/3e330acf4efd63876d673c046cd073a1d4ed57a8"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:18:05.091Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.12.24"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.13.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.14.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.15"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}