Skip to content
Heist/ feed
Back to feed
HighFix available

netdev: prevent accessing NAPI instances from another namespace

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: netdev: prevent accessing NAPI instances from another namespace The NAPI IDs were not fully exposed to user space prior to the netlink API, so they were never namespaced. The netlink API must ensure that at the very least NAPI instance belongs to the same netns as the owner of the genl sock. napi_by_id() can become static now, but it needs to move because of dev_get_by_napi_id().

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.10
CVEs
CVE-2025-21659
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 15:44 UTC · Revision 1

Source evidence

netdev: prevent accessing NAPI instances from another namespace

core-osv · Original source

Published 21 Jan 2025, 12:18 UTC

In the Linux kernel, the following vulnerability has been resolved: netdev: prevent accessing NAPI instances from another namespace The NAPI IDs were not fully exposed to user space prior to the netlink API, so they were never namespaced. The netlink API must ensure that at the very least NAPI instance belongs to the same netns as the owner of the genl sock. napi_by_id() can become static now, but it needs to move because of dev_get_by_napi_id().

osv:CVE-2025-21659

Kernel

Fixed versions: 6.12.10

Complete source record
{
  "id": "b500f9d47cc784ebf09e7266215d1a63c0fd2abf3bb1c9373bceafab768321cd",
  "url": "https://osv.dev/vulnerability/CVE-2025-21659",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "netdev: prevent accessing NAPI instances from another namespace",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: netdev: prevent accessing NAPI instances from another namespace The NAPI IDs were not fully exposed to user space prior to the netlink API, so they were never namespaced. The netlink API must ensure that at the very least NAPI instance belongs to the same netns as the owner of the genl sock. napi_by_id() can become static now, but it needs to move because of dev_get_by_napi_id().",
    "evidence": "osv:CVE-2025-21659",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.10",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-21659",
      "aliases": [
        "CVE-2025-21659"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "27f91aaf49b3a50e5a02ad5fa27b7c453d029a72"
                },
                {
                  "fixed": "b683ba0df11ff563cc237eb1b74d6adfa77226bf"
                },
                {
                  "fixed": "d1cacd74776895f6435941f86a1130e58f6dd226"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21659.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.8.0"
                },
                {
                  "fixed": "6.12.10"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21659.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.333657228Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/b683ba0df11ff563cc237eb1b74d6adfa77226bf",
        "https://git.kernel.org/stable/c/d1cacd74776895f6435941f86a1130e58f6dd226",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21659.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-21659",
        "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/21xxx/CVE-2025-21659.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-21659",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 496948,
  "published_at": "2025-01-21T12:18:15.407+00:00"
}