CVE-2026-139255: xsk: freeze deferred pool teardown without blocking unregister
In the Linux kernel, the following vulnerability has been resolved:
xsk: freeze deferred pool teardown without blocking unregister
Deferred pool destruction calls ndobpf() under RTNL. systemwq is not frozen during system sleep, so that callback can run after a device has suspended and gated its clocks. Use systemfreezablewq so running destruction finishes before device suspend and new work waits until process thaw.
Keep assigned pools visible to NETDEVUNREGISTER independently of the socket list. A released socket has already left that list, but its final pool put can queue destruction after workqueues freeze. A resume-time unregister would then wait for a device reference whose release cannot run until the resume completes.
Track assigned pools per netdev with netdev operations locking and detach remaining pools after the notifier socket walk, including copy-mode pools. This also covers leased queues without scanning pools from unrelated devices or network namespaces. Remove the entry on assignment failure and normal teardown. The deferred worker still owns the pool and later observes the cleared device pointer, avoiding a second driver detach or put.
The lifetime problem was identified by code inspection of the deferred release and system-sleep paths.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
Track assigned XSK pools per netdev under netdev operations locking, detach remaining pools during NETDEV_UNREGISTER independently of the socket list (including copy-mode pools), remove the tracking entry if assignment fails, and have deferred teardown honor the cleared device pointer to avoid a second driver detach or put.
- Compensating control
Use system_freezable_wq for deferred pool teardown so destruction finishes before device suspend and newly queued work waits until process thaw.
Event History
Frequently Asked Questions
Which systems are exposed to this lifecycle issue?
Systems using XSK pools on network devices are relevant when deferred pool destruction can occur around system sleep and resume. The affected cases include assigned pools, copy-mode pools, and leased queues.
What timing is required for the problem to occur?
Deferred pool destruction must run while a device has suspended and gated its clocks, or a pool release must queue destruction after workqueues have frozen. A resume-time network-device unregister can then wait for a device reference whose release cannot run until resume completes.
How can an affected system present operationally?
A network-device unregister during resume may block waiting for a device reference to be released. The issue involves deferred pool teardown and device suspend/resume ordering rather than an immediately visible socket-list entry, because released sockets may already have left that list.