CVE-2026-46288

of: unittest: fix use-after-free in of_unittest_changeset()

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

of: unittest: fix use-after-free in of_unittest_changeset()

The variable 'parent' is assigned the value of 'nchangeset' earlier in the
function, meaning both point to the same struct device_node. The call to
of_node_put(nchangeset) can decrement the reference count to zero and
free the node if there are no other holders. After that, the code still
uses 'parent' to check for the presence of a property and to read a
string property, leading to a use-after-free.

Fix this by moving the of_node_put() call after the last access to
'parent', avoiding the UAF.

Analysis

AI-generated

Technical impact

The vulnerability is a use‑after‑free in the function of_unittest_changeset() within the Linux kernel. After the reference count of a device node is decremented, the node may be freed while the code continues to use the same pointer to read properties. This can corrupt memory and, because the code runs with kernel privileges, may allow the execution of arbitrary code at privileged levels.

Affected Systems

All Linux kernel builds that contain the unpatched version of of_unittest_changeset(). The vendor list indicates generic Linux kernels with no specific version range supplied, so any installation of the kernel that has not yet incorporated the fix commit is potentially vulnerable.

Risk and Exploitability

The EPSS score is < 1 % and the vulnerability is not listed in CISA KEV. The use‑after‑free occurs in critical kernel code, giving it high severity. The CVSS score is 8.4, indicating high severity. It is exploitable locally by code that triggers the function—such as malicious modules, testing tools, or other privileged processes. As the flaw occurs in privileged kernel context, successful exploitation can lead to total system compromise. The likely attack vector is local privilege escalation or a trusted module that can invoke the buggy path.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Install a Linux kernel version that contains the commit moving the of_node_put() call after the final use of the parent pointer.
  • Reboot the system so that the updated kernel is running.
  • As an interim precaution, restrict loading of kernel modules or disable functionality that can trigger the of_unittest_changeset() code path until the patch is applied.

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

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8488-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8489-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8488-2 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8507-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8569-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: of: unittest: fix use-after-free in of_unittest_changeset() The variable 'parent' is assigned the value of 'nchangeset' earlier in the function, meaning both point to the same struct device_node. The call to of_node_put(nchangeset) can decrement the reference count to zero and free the node if there are no other holders. After that, the code still uses 'parent' to check for the presence of a property and to read a string property, leading to a use-after-free. Fix this by moving the of_node_put() call after the last access to 'parent', avoiding the UAF.
Title of: unittest: fix use-after-free in of_unittest_changeset()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 5, 2026, 12:31 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