CVE-2026-46308

pmdomain: mediatek: fix use-after-free in scpsys_get_bus_protection_legacy()

Published Jun 8, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

pmdomain: mediatek: fix use-after-free in scpsys_get_bus_protection_legacy()

In scpsys_get_bus_protection_legacy(), of_find_node_with_property()
returns a device node with its reference count incremented. The function
then calls of_node_put(node) before checking whether
syscon_regmap_lookup_by_phandle() returns an error. If an error occurs,
dev_err_probe() dereferences the node pointer to print diagnostic
information, but the node memory may have already been freed due to the
earlier of_node_put(), leading to a use-after-free vulnerability.

Fix this by moving the of_node_put() call after the error check, ensuring
the node is still valid when accessed in the error path.

Analysis

AI-generated

Technical impact

The Linux kernel’s Mediatek SCPSYS driver contained a use‑after‑free bug in the scpsys_get_bus_protection_legacy() function. The driver obtains a device node via of_find_node_with_property(), then incorrectly releases the node before checking an error return from syscon_regmap_lookup_by_phandle(). When an error occurs, dev_err_probe() dereferences the node pointer to log diagnostic information, but the node memory may have already been freed, thus enabling a use‑after‑free. This flaw (CWE‑416, CWE‑826) could allow memory corruption or arbitrary code execution if exploited.

Affected Systems

Vulnerable kernels are those that still include the legacy Mediatek SCPSYS driver code before the fix was merged. Specifically, Linux kernel versions 7.1‑rc1 and 7.1‑rc2 are affected, as well as any earlier kernels that have not received the patch commit. Any Linux distribution shipping an unpatched kernel that contains the affected code path is at risk.

Risk and Exploitability

The CVSS score is 7.8, indicating high severity, and the EPSS score is < 1%. The vulnerability is not yet listed in the CISA KEV catalog. Based on the description, it is inferred that the attack requires the ability to influence device tree data, which typically implies local or privileged access. If an attacker can inject a crafted device‑tree node or load a malicious driver that triggers the error path, the use‑after‑free could lead to kernel memory corruption, a denial of service, or privilege escalation. Consequently, the risk is considered high for affected systems, particularly those with root or privileged customers that can tamper with device‑tree nodes.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that contains the scpsys_get_bus_protection_legacy() fix, as released by the distribution maintainers or directly from upstream.
  • Reboot the system to ensure the updated kernel is loaded.
  • If an immediate kernel update cannot be performed, disable the Mediatek SCPSYS driver or restrict access to device tree nodes used by the driver, thereby mitigating the use‑after‑free.

Generated by OpenCVE AI on August 13, 2026 at 20:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8566-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8568-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8569-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8663-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8664-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-3 Linux kernel (Oracle) vulnerabilities
History
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: pmdomain: mediatek: fix use-after-free in scpsys_get_bus_protection_legacy() In scpsys_get_bus_protection_legacy(), of_find_node_with_property() returns a device node with its reference count incremented. The function then calls of_node_put(node) before checking whether syscon_regmap_lookup_by_phandle() returns an error. If an error occurs, dev_err_probe() dereferences the node pointer to print diagnostic information, but the node memory may have already been freed due to the earlier of_node_put(), leading to a use-after-free vulnerability. Fix this by moving the of_node_put() call after the error check, ensuring the node is still valid when accessed in the error path.
Title pmdomain: mediatek: fix use-after-free in scpsys_get_bus_protection_legacy()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-416

    Use After Free

  • CWE-826

    Premature Release of Resource During Expected Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Jun 14, 2026, 6:08 PM
Reserved
May 13, 2026, 3:03 PM
Status
Analyzed
Published
Jun 8, 2026, 5:16 PM
Modified
Jul 23, 2026, 8:10 AM
Severity
Public date
Jun 8, 2026, 12:00 AM