# CVE-2025-68169: netpoll: Fix deadlock in memory allocation under spinlock

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-12-16T13:42:49.270Z
- Modified: 2026-10-14T13:10:00.187Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

netpoll: Fix deadlock in memory allocation under spinlock

Fix a AA deadlock in refill_skbs() where memory allocation while holding
skb_pool->lock can trigger a recursive lock acquisition attempt.

The deadlock scenario occurs when the system is under severe memory
pressure:

1. refill_skbs() acquires skb_pool->lock (spinlock)
2. alloc_skb() is called while holding the lock
3. Memory allocator fails and calls slab_out_of_memory()
4. This triggers printk() for the OOM warning
5. The console output path calls netpoll_send_udp()
6. netpoll_send_udp() attempts to acquire the same skb_pool->lock
7. Deadlock: the lock is already held by the same CPU

Call stack:
  refill_skbs()
    spin_lock_irqsave(&skb_pool->lock)    <- lock acquired
    __alloc_skb()
      kmem_cache_alloc_node_noprof()
        slab_out_of_memory()
          printk()
            console_flush_all()
              netpoll_send_udp()
                skb_dequeue()
                  spin_lock_irqsave(&skb_pool->lock)     <- deadlock attempt

This bug was exposed by commit 248f6571fd4c51 ("netpoll: Optimize skb
refilling on critical path") which removed refill_skbs() from the
critical path (where nested printk was being deferred), letting nested
printk being called from inside refill_skbs()

Refactor refill_skbs() to never allocate memory while holding
the spinlock.

Another possible solution to fix this problem is protecting the
refill_skbs() from nested printks, basically calling
printk_deferred_{enter,exit}() in refill_skbs(), then, any nested
pr_warn() would be deferred.

I prefer this approach, given I _think_ it might be a good idea to move
the alloc_skb() from GFP_ATOMIC to GFP_KERNEL in the future, so, having
the alloc_skb() outside of the lock will be necessary step.

There is a possible TOCTOU issue when checking for the pool length, and
queueing the new allocated skb, but, this is not an issue, given that
an extra SKB in the pool is harmless and it will be eventually used.

(As written by CVE List.)

## Affected

- Linux Linux: from 248f6571fd4c51531f7f8f07f186f7ae98a50afc before 06742a3ab884d7428c9050b205ffcf6a8a548397; from 248f6571fd4c51531f7f8f07f186f7ae98a50afc before 327c20c21d80e0d87834b392d83ae73c955ad8ff; 6.15 (not affected: before 6.15; from 6.17.8 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/06742a3ab884d7428c9050b205ffcf6a8a548397>
- <https://git.kernel.org/stable/c/327c20c21d80e0d87834b392d83ae73c955ad8ff>

## Sources

- CVE List: [CVE-2025-68169](https://www.cve.org/CVERecord?id=CVE-2025-68169), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-68169](https://nvd.nist.gov/vuln/detail/CVE-2025-68169), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2025-68169 · Whole record: https://cve.day/CVE-2025-68169.json · Rebuilt by cve.day 2026-11-25T22:59:09.476Z
