CVE-2025-38536
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
16/08/2025
Last modified:
18/08/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
net: airoha: fix potential use-after-free in airoha_npu_get()<br />
<br />
np->name was being used after calling of_node_put(np), which<br />
releases the node and can lead to a use-after-free bug.<br />
Previously, of_node_put(np) was called unconditionally after<br />
of_find_device_by_node(np), which could result in a use-after-free if<br />
pdev is NULL.<br />
<br />
This patch moves of_node_put(np) after the error check to ensure<br />
the node is only released after both the error and success cases<br />
are handled appropriately, preventing potential resource issues.