CVE-2026-80751: pmdomain: mediatek: mfg: initialize prev_o in mtk_mfg_attach_dev()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
pmdomain: mediatek: mfg: initialize prev_o in mtk_mfg_attach_dev()
mtk_mfg_attach_dev() reads prev_o on the first iteration of its loop, in "if (prev_o && prev_o->freq == o->freq)", before prev_o is assigned at the end of the loop body. On that first iteration, evaluating prev_o reads an indeterminate value. If it is non-NULL, the condition dereferences a stale or invalid pointer, potentially faulting or incorrectly skipping the first OPP.
Initialize prev_o to NULL. This matches the intent as well: there is no previous OPP to compare against on the first iteration.
Found with Clang's -Wconditional-uninitialized.
The Linux kernel CVE team has assigned CVE-2026-80751 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.19 with commit f08e7a4e8d6ac4de677727af352ea33c6ce9f444 and fixed in 7.1.10 with commit de4eec0dfde8c0e27f8915bbb244d17ff68f2fb4 Issue introduced in 6.19 with commit f08e7a4e8d6ac4de677727af352ea33c6ce9f444 and fixed in 7.2 with commit 090a95dbe13df9965279b588d97eda134831769c
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-80751
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/de4eec0dfde8c0e27f8915bbb244d17ff68f2fb4 https://git.kernel.org/stable/c/090a95dbe13df9965279b588d97eda134831769c