ASoC: mediatek: mt8365-afe-pcm: fix possible NULL-pointer dereferences in mt8365_afe_suspend()
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.
CVE-2026-97414
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-97414
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "e1991d102bc2abb32331c462f8f3e77059c69578",
"lessThan": "f87707bc0406fe92bc142a9eee5f480c94ce9ff8",
"versionType": "git"
},
{
"status": "affected",
"version": "e1991d102bc2abb32331c462f8f3e77059c69578",
"lessThan": "1094d83ad325829acd68e63147793536060a0d60",
"versionType": "git"
},
{
"status": "affected",
"version": "e1991d102bc2abb32331c462f8f3e77059c69578",
"lessThan": "b8948ac26efc395264a47f9a743889065adb5cff",
"versionType": "git"
}
],
"programFiles": [
"sound/soc/mediatek/mt8365/mt8365-afe-pcm.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.12"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.12",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.12.111",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.53",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"sound/soc/mediatek/mt8365/mt8365-afe-pcm.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-97414
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #2037 · Revision 1
- Added to Heist Feed
- Publisher date