CVE-2026-45989

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

No CVSS score yet EPSS 0.17%

Published 27 May 2026 Updated 14 Jun 2026 CNA: Linux

Check your servers for CVE-2026-45989

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-45989 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

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

The function testdrv_probe() retrieves the device_node from the PCI device, applies an overlay, and then immediately calls of_node_put(dn). This releases the reference held by the PCI core, potentially freeing the node if the reference count drops to zero. Later, the same freed pointer 'dn' is passed to of_platform_default_populate(), leading to a use-after-free.

The reference to pdev->dev.of_node is owned by the device model and should not be released by the driver. Remove the erroneous of_node_put() to prevent premature freeing.

Exploitation

EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.67% of all scored CVEs. Scores of 30 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 26409dd045892904b059dc411403e9c8ce7543ca, before 0ba03e06f037df704d9b032e36d417633e2326bc
affected from 26409dd045892904b059dc411403e9c8ce7543ca, before d68347b07b9801791c9eaab8f772770b52b8cd5c
affected from 26409dd045892904b059dc411403e9c8ce7543ca, before 5b6122a67a295f8a08b7c18d908a1bd974dfaec8
affected from 26409dd045892904b059dc411403e9c8ce7543ca, before 6b2023286d2c6ed3bf964fb92e34c9c14d42eb69
affected from 26409dd045892904b059dc411403e9c8ce7543ca, before 07fd339b2c253205794bea5d9b4b7548a4546c56
Other versions: unaffected
Linux
affected 6.6
unaffected before 6.6
unaffected from 6.6.140 up to and including 6.6.*
unaffected from 6.12.86 up to and including 6.12.*
unaffected from 6.18.27 up to and including 6.18.*
unaffected from 7.0.4 up to and including 7.0.*
unaffected 7.1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-45989 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-45989

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-45989
trivy image --scanners vuln IMAGE | grep CVE-2026-45989

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-45989 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.