AZL-116992: CVE-2026-139255 affecting package kernel 6.6.161.1-1
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.
- Compensating control
Use system_freezable_wq for deferred pool teardown so destruction work finishes before device suspend and does not run while the device is suspended.
- Compensating control
Track assigned pools per netdev under netdev operations locking; detach them during NETDEV_UNREGISTER, remove entries on assignment failure, and clear the device pointer so deferred workers do not detach or put the device again.
Event History
Frequently Asked Questions
Are copy-mode AF_XDP pools included in the affected lifecycle handling?
Yes. The resolved handling explicitly detaches remaining assigned pools during netdevice unregister, including copy-mode pools. It also covers leased queues without scanning pools belonging to unrelated devices or network namespaces.
What timing sequence can lead to a resume-time unregister stall?
A released socket can queue final deferred pool destruction after workqueues have frozen. If unregister occurs during resume, it can wait for a device reference whose release cannot run until resume completes.