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.
Published: 2026-06-08
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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 not available and the vulnerability is not listed in CISA KEV. The use‑after‑free occurs in critical kernel code, giving it 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.

Generated by OpenCVE AI on June 9, 2026 at 03:41 UTC.

Remediation

No vendor fix or workaround currently provided.

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 June 9, 2026 at 03:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 09 Jun 2026 02:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Tue, 09 Jun 2026 00:15:00 +0000


Mon, 08 Jun 2026 20:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Mon, 08 Jun 2026 17:00:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-08T15:41:31.868Z

Reserved: 2026-05-13T15:03:33.110Z

Link: CVE-2026-46288

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-06-08T17:16:46.957

Modified: 2026-06-08T17:16:46.957

Link: CVE-2026-46288

cve-icon Redhat

Severity :

Publid Date: 2026-06-08T00:00:00Z

Links: CVE-2026-46288 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-06-09T03:45:26Z

Weaknesses