CVE-2026-97414

ASoC: mediatek: mt8365-afe-pcm: fix possible NULL-pointer dereferences in mt8365_afe_suspend()

State
Published
Severity
Not scored
Published
Sep 24, 2026
Updated
Sep 25, 2026
Reserved
Sep 24, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

ASoC: mediatek: mt8365-afe-pcm: fix possible NULL-pointer dereferences in mt8365_afe_suspend()

mt8365_afe_suspend() allocates the register backup buffer with devm_kcalloc(), but does not check for allocation failure before using the returned pointer. This may lead to a NULL pointer dereference when accessing afe->reg_back_up[i].

Add the missing NULL check and return -ENOMEM on allocation failure after disabling the main clock.

Also propagate the return value of mt8365_afe_suspend() in mt8365_afe_dev_runtime_suspend() so that the suspended state is not updated when suspend fails.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • e1991d102bc2abb32331c462f8f3e77059c69578 to before f87707bc0406fe92bc142a9eee5f480c94ce9ff8Affected
  • e1991d102bc2abb32331c462f8f3e77059c69578 to before 1094d83ad325829acd68e63147793536060a0d60Affected
  • e1991d102bc2abb32331c462f8f3e77059c69578 to before b8948ac26efc395264a47f9a743889065adb5cffAffected
LinuxLinux
  • 6.12Affected
  • before 6.12Not affected
  • 6.12.111 through 6.12.*Not affected
  • 6.18.53 through 6.18.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.