CVE-2026-139255

xsk: freeze deferred pool teardown without blocking unregister

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

xsk: freeze deferred pool teardown without blocking unregister

Deferred pool destruction calls ndo_bpf() under RTNL. system_wq is
not frozen during system sleep, so that callback can run after a
device has suspended and gated its clocks. Use system_freezable_wq
so running destruction finishes before device suspend and new work
waits until process thaw.

Keep assigned pools visible to NETDEV_UNREGISTER 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.

Analysis

AI-generated

Technical impact

The vulnerability resides in the Linux kernel’s xsk subsystem, where deferred pool destruction triggers the BPF callback through RTNL on the system workqueue, which is not frozen during system suspend. When a network device is suspended and its clocks gated, the callback can still execute, potentially referencing a device that has already been released. This race condition can lead to a use‑after‑free of device data, causing a kernel panic and system crash. Additionally, the visibility of assigned pools during device unregistration introduces a similar race at resume time, increasing the risk of a kernel crash.

Affected Systems

All Linux kernel installations that compile the xsk driver alongside BPF networking code are affected, regardless of distribution or kernel configuration. Until a vendor releases the patched kernel, every system with xsk enabled remains at risk.

Risk and Exploitability

The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires the attacker to be able to trigger device suspend/unregister and BPF callbacks, which typically requires elevated privileges. Therefore, the threat is considered a local privilege escalation scenario; a privileged user could intentionally induce the race to cause a denial of service. No evidence indicates that a non‑privileged user can trigger the exploit, and there is no known remote exploitation vector at this time.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that incorporates the xsk defer‑pool teardown fix (e.g., the latest distributed kernel releases).
  • If an immediate kernel upgrade is unavailable, disable the xsk driver or suspend network devices before initiating system sleep to prevent the race condition from occurring.
  • Verify that the kernel configuration employs system_freezable_wq for deferred work in the xsk path and, if possible, apply a temporary patch that enforces this behavior until the official fix is available.

Generated by OpenCVE AI on December 1, 2026 at 08:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: xsk: freeze deferred pool teardown without blocking unregister Deferred pool destruction calls ndo_bpf() under RTNL. system_wq is not frozen during system sleep, so that callback can run after a device has suspended and gated its clocks. Use system_freezable_wq so running destruction finishes before device suspend and new work waits until process thaw. Keep assigned pools visible to NETDEV_UNREGISTER 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.
Title xsk: freeze deferred pool teardown without blocking unregister
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM