CVE-2025-38536
kernel: net: airoha: fix potential use-after-free in airoha_npu_get()
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · August 16, 2025
Updated · October 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
net: airoha: fix potential use-after-free in airoha_npu_get()
np->name was being used after calling of_node_put(np), which releases the node and can lead to a use-after-free bug. Previously, of_node_put(np) was called unconditionally after of_find_device_by_node(np), which could result in a use-after-free if pdev is NULL.
This patch moves of_node_put(np) after the error check to ensure the node is only released after both the error and success cases are handled appropriately, preventing potential resource issues.
Statement
This vulnerability is rated as Moderate impact because exploitation requires specialized hardware configurations and is limited to causing a local kernel crash rather than arbitrary code execution. The flaw stems from premature release of device tree structures during device lookup within the Airoha network processing unit subsystem. Supported Red Hat Enterprise Linux releases are not affected, as the vulnerable driver is not present in shipped kernels.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 6.2CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CWE-416 · Use After Free