CVE-2025-68245
NoneCVSS
—
EPSS
0.2%
Published
Dec 16, 2025
CISA due date
—
Cloudanix analysis
A bug in the Linux kernel's network debugging feature can cause memory to be lost over time when multiple monitoring sessions share the same network card, potentially slowing systems or forcing restarts until fixed by a kernel update.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- OS kernel
- Class
- Use After Free
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Incorrect refcount handling in netpoll causes premature RCU_INIT_POINTER of dev->npinfo to NULL on first cleanup when multiple netpolls share npinfo, skipping do_netpoll_cleanup and leaking npinfo plus skb pools on subsequent cleanups.
Why it matters to the business
Memory leaks in the networking stack on Linux systems using netpoll (debugging, monitoring, or specialized NIC configurations) can lead to gradual resource exhaustion, degraded performance, or eventual instability requiring reboots; high downstream prevalence in Linux distributions increases patch urgency despite low exploitability.
How an attack unfolds
An attacker with local access or ability to trigger netpoll attachment/detachment (via tools or misconfigured services) associates multiple netpolls with the same NIC, forces sequential cleanups, and triggers the refcount bypass to leak kernel memory structures without triggering normal skb pool release.
How to fix it
Upgrade the Linux kernel to commit 8e6a50edad11e3e1426e4c29e7aa6201f3468ac2 or later; for AlmaLinux 9 systems apply the fixed package versions such as gcc-toolset-13-gcc 13.3.1-2.2.el9_5 and equivalent updates for libasan8, liblsan, libtsan2 and related gcc-toolset-13 packages.
How to confirm the fix worked
Verify kernel source contains the revert of efa95b01da18 and updated refcount checks before npinfo cleanup; confirm affected AlmaLinux packages report the listed fixed versions; run kmemleak or slabinfo monitoring under repeated netpoll attach/detach cycles to validate absence of leaks.
Typical attack path
- Attach first netpoll to NIC, allocating npinfo with refcnt=1
- Attach second netpoll to same NIC, incrementing shared npinfo refcnt to 2
- Trigger cleanup on first netpoll, which ignores refcnt and nulls dev->npinfo
- Trigger cleanup on second netpoll, which finds npinfo already NULL and skips do_netpoll_cleanup
- Observe leaked npinfo and skb pool memory via kmemleak or resource monitoring
How to detect it
Search kernel logs and kmemleak output for repeated netpoll allocation without matching cleanup entries; monitor for growing skb pool or npinfo allocations tied to netdev structures; no public exploitation artifacts exist so focus on post-patch memory accounting diffs.
What your security team should do
- Prioritize kernel and affected gcc-toolset package updates on all Linux systems within standard change windows
- Audit configurations using netpoll (e.g., netconsole, kgdb over net) and minimize shared NIC usage where possible
- Monitor kmemleak reports and memory usage trends on production kernels until patches are deployed
The record
In the Linux kernel, the following vulnerability has been resolved: net: netpoll: fix incorrect refcount handling causing incorrect cleanup commit efa95b01da18 ("netpoll: fix use after free") incorrectly ignored the refcount and prematurely set dev->npinfo to NULL during netpoll cleanup, leading to improper behavior and memory leaks. Scenario causing lack of proper cleanup: 1) A netpoll is associated with a NIC (e.g., eth0) and netdev->npinfo is allocated, and refcnt = 1 - Keep in mind that npinfo is shared among all netpoll instances. In this case, there is just one. 2) Another netpoll is also associated with the same NIC and npinfo->refcnt += 1. - Now dev->npinfo->refcnt = 2; - There is just one npinfo associated to the netdev. 3) When the first netpolls goes to clean up: - The first cleanup succeeds and clears np->dev->npinfo, ignoring refcnt. - It basically calls `RCU_INIT_POINTER(np->dev->npinfo, NULL);` - Set dev->npinfo = NULL, without proper cleanup - No ->ndo_netpoll_cleanup() is either called 4) Now the second target tries to clean up - The second cleanup fails because np->dev->npinfo is already NULL. * In this case, ops->ndo_netpoll_cleanup() was never called, and the skb pool is not cleaned as well (for the second netpoll instance) - This leaks npinfo and skbpool skbs, which is clearly reported by kmemleak. Revert commit efa95b01da18 ("netpoll: fix use after free") and adds clarifying comments emphasizing that npinfo cleanup should only happen once the refcount reaches zero, ensuring stable and correct netpoll behavior.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Linux | Kernel | 3.17.0 | 5.4.302 |
| Mageia:9 | kernel | 0 | 6.6.120-1.mga9 |
| Mageia:9 | kernel-linus | 0 | 6.6.120-1.mga9 |
| Mageia:9 | kmod-virtualbox | 0 | 7.1.14-14.mga9 |
| Mageia:9 | kmod-xtables-addons | 0 | 3.24-88.mga9 |
| openSUSE:Leap 16.0 | dtb-aarch64 | 0 | 6.12.0-160000.26.1 |
| openSUSE:Leap 16.0 | kernel-64kb | 0 | 6.12.0-160000.26.1 |
| openSUSE:Leap 16.0 | kernel-azure | 0 | 6.12.0-160000.26.1 |
| openSUSE:Leap 16.0 | kernel-default | 0 | 6.12.0-160000.26.1 |
| openSUSE:Leap 16.0 | kernel-default-base | 0 | 6.12.0-160000.26.1.160000.2.7 |
| openSUSE:Leap 16.0 | kernel-docs | 0 | 6.12.0-160000.26.1 |
| openSUSE:Leap 16.0 | kernel-kvmsmall | 0 | 6.12.0-160000.26.1 |
| openSUSE:Leap 16.0 | kernel-obs-build | 0 | 6.12.0-160000.26.1 |
| openSUSE:Leap 16.0 | kernel-obs-qa | 0 | 6.12.0-160000.26.1 |
| openSUSE:Leap 16.0 | kernel-rt | 0 | 6.12.0-160000.26.1 |
| openSUSE:Leap 16.0 | kernel-source | 0 | 6.12.0-160000.26.1 |
| openSUSE:Leap 16.0 | kernel-syms | 0 | 6.12.0-160000.26.1 |
| openSUSE:Leap 16.0 | kernel-zfcpdump | 0 | 6.12.0-160000.26.1 |
Related vulnerabilities
- CVE-2026-23226 In the Linux kernel, the following vulnerability has been resolved: ksmbd: add chann_lock… Also affects Kernel
- CVE-2026-23225 In the Linux kernel, the following vulnerability has been resolved: sched/mmcid: Don't… Also affects Kernel
- CVE-2026-23230 In the Linux kernel, the following vulnerability has been resolved: smb: client: split… Also affects Kernel
- CVE-2026-23224 In the Linux kernel, the following vulnerability has been resolved: erofs: fix UAF issue… Also affects Kernel
- CVE-2026-23227 In the Linux kernel, the following vulnerability has been resolved: drm/exynos: vidi: use… Also affects Kernel
- CVE-2026-23223 In the Linux kernel, the following vulnerability has been resolved: xfs: fix UAF in… Also affects Kernel
- CVE-2026-23228 In the Linux kernel, the following vulnerability has been resolved: smb: server: fix leak… Also affects Kernel
- CVE-2026-23229 In the Linux kernel, the following vulnerability has been resolved: crypto: virtio - Add… Also affects Kernel