Skip to content
Heist/ feed
Back to feed
UnratedFix available

net: netpoll: initialize work queue before error checks

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: net: netpoll: initialize work queue before error checks Prevent a kernel warning when netconsole setup fails on devices with IFF_DISABLE_NETPOLL flag. The warning (at kernel/workqueue.c:4242 in __flush_work) occurs because the cleanup path tries to cancel an uninitialized work queue. When __netpoll_setup() encounters a device with IFF_DISABLE_NETPOLL, it fails early and calls skb_pool_flush() for cleanup. This function calls cancel_work_sync(&np->refill_wq), but refill_wq hasn't been initialized yet, triggering the warning. Move INIT_WORK() to the beginning of __netpoll_setup(), ensuring the work queue is properly initialized before any potential failure points. This allows the cleanup path to safely cancel the work queue regardless of where the setup fails.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.17.13, 6.18.2
CVEs
CVE-2025-68762
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 02:06 UTC · Revision 1

Source evidence

net: netpoll: initialize work queue before error checks

core-osv · Original source

Published 5 Jan 2026, 09:32 UTC

In the Linux kernel, the following vulnerability has been resolved: net: netpoll: initialize work queue before error checks Prevent a kernel warning when netconsole setup fails on devices with IFF_DISABLE_NETPOLL flag. The warning (at kernel/workqueue.c:4242 in __flush_work) occurs because the cleanup path tries to cancel an uninitialized work queue. When __netpoll_setup() encounters a device with IFF_DISABLE_NETPOLL, it fails early and calls skb_pool_flush() for cleanup. This function calls cancel_work_sync(&np->refill_wq), but refill_wq hasn't been initialized yet, triggering the warning. Move INIT_WORK() to the beginning of __netpoll_setup(), ensuring the work queue is properly initialized before any potential failure points. This allows the cleanup path to safely cancel the work queue regardless of where the setup fails.

osv:CVE-2025-68762

Kernel

Fixed versions: 6.17.13, 6.18.2

Complete source record
{
  "id": "4cbf9db7d2abe09dbab75e32a3705e1ff66f4d68c95d5f6b0f525116b3f6fd5f",
  "url": "https://osv.dev/vulnerability/CVE-2025-68762",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "net: netpoll: initialize work queue before error checks",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: net: netpoll: initialize work queue before error checks Prevent a kernel warning when netconsole setup fails on devices with IFF_DISABLE_NETPOLL flag. The warning (at kernel/workqueue.c:4242 in __flush_work) occurs because the cleanup path tries to cancel an uninitialized work queue. When __netpoll_setup() encounters a device with IFF_DISABLE_NETPOLL, it fails early and calls skb_pool_flush() for cleanup. This function calls cancel_work_sync(&np->refill_wq), but refill_wq hasn't been initialized yet, triggering the warning. Move INIT_WORK() to the beginning of __netpoll_setup(), ensuring the work queue is properly initialized before any potential failure points. This allows the cleanup path to safely cancel the work queue regardless of where the setup fails.",
    "evidence": "osv:CVE-2025-68762",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.17.13",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-68762",
      "aliases": [
        "CVE-2025-68762"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "248f6571fd4c51531f7f8f07f186f7ae98a50afc"
                },
                {
                  "fixed": "a90d0dc38a10347078cca60e7495ad0648838f18"
                },
                {
                  "fixed": "760bc6ceda8e2c273c0e2018ad2595967c3dd308"
                },
                {
                  "fixed": "e5235eb6cfe02a51256013a78f7b28779a7740d5"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68762.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.15.0"
                },
                {
                  "fixed": "6.17.13"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.18.0"
                },
                {
                  "fixed": "6.18.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68762.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.174609934Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/760bc6ceda8e2c273c0e2018ad2595967c3dd308",
        "https://git.kernel.org/stable/c/a90d0dc38a10347078cca60e7495ad0648838f18",
        "https://git.kernel.org/stable/c/e5235eb6cfe02a51256013a78f7b28779a7740d5",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68762.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-68762",
        "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/68xxx/CVE-2025-68762.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-68762",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 517230,
  "published_at": "2026-01-05T09:32:34.743+00:00"
}