Skip to content
Heist/ feed
Back to feed
HighFix available

net: airoha: fix potential use-after-free in airoha_npu_get()

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.15.8
CVEs
CVE-2025-38536
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 23:11 UTC · Revision 1

Source evidence

net: airoha: fix potential use-after-free in airoha_npu_get()

core-osv · Original source

Published 16 Aug 2025, 11:12 UTC

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.

osv:CVE-2025-38536

Kernel

Fixed versions: 6.15.8

Complete source record
{
  "id": "aa8e4728da8de7b0e71a89b5248a24878da736401d99c77c0b27c43f78c1c978",
  "url": "https://osv.dev/vulnerability/CVE-2025-38536",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "net: airoha: fix potential use-after-free in airoha_npu_get()",
    "summary": "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.",
    "evidence": "osv:CVE-2025-38536",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.15.8",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-38536",
      "aliases": [
        "CVE-2025-38536"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "23290c7bc190def4e1ca61610992d9b7c32e33f3"
                },
                {
                  "fixed": "df6bf96b41e547e350667bc4c143be53646d070d"
                },
                {
                  "fixed": "3cd582e7d0787506990ef0180405eb6224fa90a6"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38536.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.15.0"
                },
                {
                  "fixed": "6.15.8"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38536.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:40.430883652Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/3cd582e7d0787506990ef0180405eb6224fa90a6",
        "https://git.kernel.org/stable/c/df6bf96b41e547e350667bc4c143be53646d070d",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38536.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-38536",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38536.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-38536",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 507882,
  "published_at": "2025-08-16T11:12:28.627+00:00"
}