{"id":"CVE-2026-45989","aliases":["CVE-2026-45989"],"related":[],"kind":"vulnerability","state":"published","title":"of: unittest: fix use-after-free in testdrv_probe()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nof: unittest: fix use-after-free in testdrv_probe()\n\nThe function testdrv_probe() retrieves the device_node from the PCI\ndevice, applies an overlay, and then immediately calls of_node_put(dn).\nThis releases the reference held by the PCI core, potentially freeing\nthe node if the reference count drops to zero. Later, the same freed\npointer 'dn' is passed to of_platform_default_populate(), leading to a\nuse-after-free.\n\nThe reference to pdev->dev.of_node is owned by the device model and\nshould not be released by the driver. Remove the erroneous of_node_put()\nto prevent premature freeing.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nof: unittest: fix use-after-free in testdrv_probe()\n\nThe function testdrv_probe() retrieves the device_node from the PCI\ndevice, applies an overlay, and then immediately calls of_node_put(dn).\nThis releases the reference held by the PCI core, potentially freeing\nthe node if the reference count drops to zero. Later, the same freed\npointer 'dn' is passed to of_platform_default_populate(), leading to a\nuse-after-free.\n\nThe reference to pdev->dev.of_node is owned by the device model and\nshould not be released by the driver. Remove the erroneous of_node_put()\nto prevent premature freeing.","source":"cvelist"}],"published":"2026-05-27T12:55:41.276Z","modified":"2026-06-17T10:52:51.500Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"26409dd045892904b059dc411403e9c8ce7543ca","fixed":"0ba03e06f037df704d9b032e36d417633e2326bc","status":"affected"},{"type":"git","introduced":"26409dd045892904b059dc411403e9c8ce7543ca","fixed":"d68347b07b9801791c9eaab8f772770b52b8cd5c","status":"affected"},{"type":"git","introduced":"26409dd045892904b059dc411403e9c8ce7543ca","fixed":"5b6122a67a295f8a08b7c18d908a1bd974dfaec8","status":"affected"},{"type":"git","introduced":"26409dd045892904b059dc411403e9c8ce7543ca","fixed":"6b2023286d2c6ed3bf964fb92e34c9c14d42eb69","status":"affected"},{"type":"git","introduced":"26409dd045892904b059dc411403e9c8ce7543ca","fixed":"07fd339b2c253205794bea5d9b4b7548a4546c56","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.6","status":"unaffected"},{"type":"semver","introduced":"6.6.140","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.86","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.27","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.4","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.6","fixed":"6.6.140"},{"status":"affected","introduced":"6.7","fixed":"6.12.86"},{"status":"affected","introduced":"6.13","fixed":"6.18.27"},{"status":"affected","introduced":"6.19","fixed":"7.0.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/0ba03e06f037df704d9b032e36d417633e2326bc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d68347b07b9801791c9eaab8f772770b52b8cd5c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5b6122a67a295f8a08b7c18d908a1bd974dfaec8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6b2023286d2c6ed3bf964fb92e34c9c14d42eb69","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/07fd339b2c253205794bea5d9b4b7548a4546c56","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45989","url":"https://www.cve.org/CVERecord?id=CVE-2026-45989","licence":"CVE Terms of Use","modified":"2026-06-14T17:46:43.307Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45989","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45989","licence":"Public domain","modified":"2026-06-17T10:52:51.500Z"}],"updatedAt":"2026-11-25T22:59:22.534Z","epss":{"score":0.00163,"percentile":0.05744,"date":"2026-12-01T12:00:22.000Z"}}