CVE-2026-23426: drm/logicvc: Fix device node reference leak in logicvc_drm_config_parse()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/logicvc: Fix device node reference leak in logicvc_drm_config_parse()
The logicvc_drm_config_parse() function calls of_get_child_by_name() to find the "layers" node but fails to release the reference, leading to a device node reference leak.
Fix this by using the __free(device_node) cleanup attribute to automatic release the reference when the variable goes out of scope.
The Linux kernel CVE team has assigned CVE-2026-23426 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.0 with commit efeeaefe9be56e8ae5e5b4e9ff6d2275ec977ec5 and fixed in 6.1.167 with commit b88f49910be147b7974098b9172b0d3873142d6a Issue introduced in 6.0 with commit efeeaefe9be56e8ae5e5b4e9ff6d2275ec977ec5 and fixed in 6.6.130 with commit 0bd326dffd9e103335d77d9c31275c0d5a7979eb Issue introduced in 6.0 with commit efeeaefe9be56e8ae5e5b4e9ff6d2275ec977ec5 and fixed in 6.12.77 with commit 871630255ecd2d9b64ad1d75a7dfc0567d7d9989 Issue introduced in 6.0 with commit efeeaefe9be56e8ae5e5b4e9ff6d2275ec977ec5 and fixed in 6.18.17 with commit f8a6eba20edb938166b26e133cc61306e1bc6de9 Issue introduced in 6.0 with commit efeeaefe9be56e8ae5e5b4e9ff6d2275ec977ec5 and fixed in 6.19.7 with commit 78e91e49d28e05ccaa6b445bafb5e367d57c9583 Issue introduced in 6.0 with commit efeeaefe9be56e8ae5e5b4e9ff6d2275ec977ec5 and fixed in 7.0-rc2 with commit fef0e649f8b42bdffe4a916dd46e1b1e9ad2f207
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-23426
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/gpu/drm/logicvc/logicvc_drm.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/b88f49910be147b7974098b9172b0d3873142d6a https://git.kernel.org/stable/c/0bd326dffd9e103335d77d9c31275c0d5a7979eb https://git.kernel.org/stable/c/871630255ecd2d9b64ad1d75a7dfc0567d7d9989 https://git.kernel.org/stable/c/f8a6eba20edb938166b26e133cc61306e1bc6de9 https://git.kernel.org/stable/c/78e91e49d28e05ccaa6b445bafb5e367d57c9583 https://git.kernel.org/stable/c/fef0e649f8b42bdffe4a916dd46e1b1e9ad2f207