CVE-2025-68245
BaseFortify
Publication date: 2025-12-16
Last updated on: 2025-12-18
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is in the Linux kernel's netpoll feature. It involves incorrect reference count handling during netpoll cleanup. Specifically, a commit intended to fix a use-after-free issue ignored the reference count and prematurely set a network device's npinfo pointer to NULL. This caused improper cleanup behavior: when multiple netpoll instances share the same npinfo, the first cleanup clears the pointer without checking the reference count, preventing the second cleanup from running properly. As a result, memory leaks occur because npinfo and associated skb pools are not cleaned up correctly.
How can this vulnerability impact me? :
This vulnerability can lead to memory leaks in the Linux kernel's netpoll subsystem. When multiple netpoll instances share the same npinfo, improper cleanup causes npinfo and skb pools to remain allocated, wasting system memory. Over time, this can degrade system performance or stability due to resource exhaustion.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by monitoring for memory leaks related to netpoll instances, specifically leaks of npinfo and skbpool skbs. The description mentions that such leaks are clearly reported by kmemleak, a Linux kernel memory leak detector. Therefore, using kmemleak to scan for memory leaks involving netpoll npinfo and skbpool skbs can help detect this issue. Specific commands include enabling kmemleak and checking its reports, for example: 1) Enable kmemleak by adding 'kmemleak=on' to the kernel boot parameters. 2) Trigger kmemleak scan by writing 'scan' to /sys/kernel/debug/kmemleak. 3) Read the kmemleak report from /sys/kernel/debug/kmemleak to identify leaks related to netpoll.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation involves ensuring that the netpoll cleanup process correctly handles the reference counting of npinfo. Since the vulnerability arises from premature cleanup ignoring the refcount, the fix is to revert the problematic commit and ensure that npinfo cleanup only occurs when the reference count reaches zero. Practically, this means updating the Linux kernel to a version that includes the fix which reverts commit efa95b01da18 and properly manages npinfo refcount during netpoll cleanup. Until such an update is applied, monitoring for memory leaks and avoiding multiple netpoll instances on the same NIC may reduce risk.