CVE-2025-38536: net: airoha: fix potential use-after-free in airoha_npu_get()
In the Linux kernel, the following vulnerability has been resolved:
net: airoha: fix potential use-after-free in airohanpuget()
np->name was being used after calling ofnodeput(np), which releases the node and can lead to a use-after-free bug. Previously, ofnodeput(np) was called unconditionally after offinddevicebynode(np), which could result in a use-after-free if pdev is NULL.
This patch moves ofnodeput(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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-38536?
CVE-2025-38536 has a medium severity level due to the potential for a use-after-free vulnerability in the Linux kernel.
How can I fix CVE-2025-38536?
To fix CVE-2025-38536, update to the latest version of the Linux kernel where the vulnerability has been resolved.
Which versions of the Linux kernel are affected by CVE-2025-38536?
CVE-2025-38536 affects specific versions of the Linux kernel that include the vulnerable airoha driver.
What could happen if CVE-2025-38536 is exploited?
Exploitation of CVE-2025-38536 could potentially lead to denial of service or arbitrary code execution.
Who is responsible for resolving CVE-2025-38536?
The Linux kernel maintainers are responsible for addressing CVE-2025-38536 and releasing appropriate patches to fix the vulnerability.