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

Published Sep 24, 2026
·
Updated

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

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

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

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

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

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In mt8365_afe_suspend(), check whether devm_kcalloc() returned NULL before accessing the register backup buffer, return -ENOMEM on allocation failure, and propagate mt8365_afe_suspend()'s return value from mt8365_afe_dev_runtime_suspend() so the suspended state is not updated when suspend fails.

Event History

Sep 24, 2026
CVE Published
via MITRE·04:03 PM
Data Sourced
via MITRE·04:03 PM
Description
Data Sourced
via NVD·05:17 PM
Description

Frequently Asked Questions

1

Under what condition can this issue be triggered?

The issue requires devm_kcalloc() to fail while mt8365_afe_suspend() is allocating its register-backup buffer. The unpatched code then dereferences the returned NULL pointer while saving registers during suspend.

2

What is the operational impact if allocation fails during suspend?

An affected kernel may hit a NULL-pointer dereference during the MT8365 AFE suspend path. The runtime suspend path can also incorrectly update suspended state despite the suspend operation failing.

3

What should systems do if the allocation fails after the fix?

The fixed suspend function disables the main clock and returns -ENOMEM rather than accessing the missing buffer. The runtime suspend caller propagates that failure, preventing suspended state from being updated.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203