{"id":"CVE-2026-97414","state":"PUBLISHED","title":"ASoC: mediatek: mt8365-afe-pcm: fix possible NULL-pointer dereferences in mt8365_afe_suspend()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: mediatek: mt8365-afe-pcm: fix possible NULL-pointer dereferences in mt8365_afe_suspend()\n\nmt8365_afe_suspend() allocates the register backup buffer with\ndevm_kcalloc(), but does not check for allocation failure before using the\nreturned pointer. This may lead to a NULL pointer dereference when\naccessing afe->reg_back_up[i].\n\nAdd the missing NULL check and return -ENOMEM on allocation failure after\ndisabling the main clock.\n\nAlso propagate the return value of mt8365_afe_suspend() in\nmt8365_afe_dev_runtime_suspend() so that the suspended state is not updated\nwhen suspend fails.","publishedAt":"2026-09-24T16:03:21.936Z","updatedAt":"2026-09-25T12:43:49.195Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e1991d102bc2abb32331c462f8f3e77059c69578","status":"affected","lessThan":"f87707bc0406fe92bc142a9eee5f480c94ce9ff8","versionType":"git"},{"version":"e1991d102bc2abb32331c462f8f3e77059c69578","status":"affected","lessThan":"1094d83ad325829acd68e63147793536060a0d60","versionType":"git"},{"version":"e1991d102bc2abb32331c462f8f3e77059c69578","status":"affected","lessThan":"b8948ac26efc395264a47f9a743889065adb5cff","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/mediatek/mt8365/mt8365-afe-pcm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"6.12.111","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.53","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/mediatek/mt8365/mt8365-afe-pcm.c"]}],"references":["https://git.kernel.org/stable/c/f87707bc0406fe92bc142a9eee5f480c94ce9ff8","https://git.kernel.org/stable/c/1094d83ad325829acd68e63147793536060a0d60","https://git.kernel.org/stable/c/b8948ac26efc395264a47f9a743889065adb5cff"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/97xxx/CVE-2026-97414.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-97414","state":"PUBLISHED","datePublished":"2026-09-24T16:03:21.936Z","dateUpdated":"2026-09-25T12:43:49.195Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-24T14:53:16.867Z"},"containers":{"cna":{"title":"ASoC: mediatek: mt8365-afe-pcm: fix possible NULL-pointer dereferences in mt8365_afe_suspend()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: mediatek: mt8365-afe-pcm: fix possible NULL-pointer dereferences in mt8365_afe_suspend()\n\nmt8365_afe_suspend() allocates the register backup buffer with\ndevm_kcalloc(), but does not check for allocation failure before using the\nreturned pointer. This may lead to a NULL pointer dereference when\naccessing afe->reg_back_up[i].\n\nAdd the missing NULL check and return -ENOMEM on allocation failure after\ndisabling the main clock.\n\nAlso propagate the return value of mt8365_afe_suspend() in\nmt8365_afe_dev_runtime_suspend() so that the suspended state is not updated\nwhen suspend fails."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e1991d102bc2abb32331c462f8f3e77059c69578","status":"affected","lessThan":"f87707bc0406fe92bc142a9eee5f480c94ce9ff8","versionType":"git"},{"version":"e1991d102bc2abb32331c462f8f3e77059c69578","status":"affected","lessThan":"1094d83ad325829acd68e63147793536060a0d60","versionType":"git"},{"version":"e1991d102bc2abb32331c462f8f3e77059c69578","status":"affected","lessThan":"b8948ac26efc395264a47f9a743889065adb5cff","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/mediatek/mt8365/mt8365-afe-pcm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"6.12.111","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.53","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/mediatek/mt8365/mt8365-afe-pcm.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/f87707bc0406fe92bc142a9eee5f480c94ce9ff8"},{"url":"https://git.kernel.org/stable/c/1094d83ad325829acd68e63147793536060a0d60"},{"url":"https://git.kernel.org/stable/c/b8948ac26efc395264a47f9a743889065adb5cff"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-09-25T12:43:49.195Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.12.111"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.18.53"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}