CVE-2026-45989

Source
https://cve.org/CVERecord?id=CVE-2026-45989
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-45989.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-45989
Downstream
Related
Published
2026-05-27T12:55:41.276Z
Modified
2026-06-18T03:57:31.805057604Z
Summary
of: unittest: fix use-after-free in testdrv_probe()
Details

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

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

The function testdrvprobe() retrieves the devicenode from the PCI device, applies an overlay, and then immediately calls ofnodeput(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 ofplatformdefault_populate(), leading to a use-after-free.

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

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45989.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
26409dd045892904b059dc411403e9c8ce7543ca
Fixed
0ba03e06f037df704d9b032e36d417633e2326bc
Fixed
d68347b07b9801791c9eaab8f772770b52b8cd5c
Fixed
5b6122a67a295f8a08b7c18d908a1bd974dfaec8
Fixed
6b2023286d2c6ed3bf964fb92e34c9c14d42eb69
Fixed
07fd339b2c253205794bea5d9b4b7548a4546c56

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-45989.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.6.0
Fixed
6.6.140
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.86
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.27
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-45989.json"