CVE-2025-68762

net: netpoll: initialize work queue before error checks

State
Published
Severity
Not scored
Published
Jan 5, 2026
Updated
May 11, 2026
Reserved
Dec 24, 2025

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 248f6571fd4c51531f7f8f07f186f7ae98a50afc to before a90d0dc38a10347078cca60e7495ad0648838f18Affected
  • 248f6571fd4c51531f7f8f07f186f7ae98a50afc to before 760bc6ceda8e2c273c0e2018ad2595967c3dd308Affected
  • 248f6571fd4c51531f7f8f07f186f7ae98a50afc to before e5235eb6cfe02a51256013a78f7b28779a7740d5Affected
LinuxLinux
  • 6.15Affected
  • before 6.15Not affected
  • 6.17.13 through 6.17.*Not affected
  • 6.18.2 through 6.18.*Not affected
  • 6.19 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.