CVE-2026-139800

9p/xen: drain response work after unbinding IRQ

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

9p/xen: drain response work after unbinding IRQ

commit ea4f1009408e ("9p/xen : Fix use after free bug in
xen_9pfs_front_remove due to race condition") added cancel_work_sync()
to keep xen_9pfs_front_free() from freeing a ring while
p9_xen_response() is still running.

The work is currently drained before the event channel IRQ is unbound.
That leaves a race window where xen_9pfs_front_event_handler() can run
after cancel_work_sync() returns and queue p9_xen_response() again. The
following unbind_from_irqhandler() synchronizes with the IRQ handler, but
it does not cancel work that the handler already queued. The teardown
can then free the ring and private data while the response work remains
pending, and the worker later dereferences ring->priv and priv->client.

Unbind the event channel IRQ before draining the work. Once the IRQ is
unbound, no new response work can be queued by the backend event channel,
and cancel_work_sync() waits for any work that was queued before or
during the unbind. It is then safe to release the ring resources.

Analysis

AI-generated

Technical impact

A use‑after‑free defect exists in the Linux kernel’s 9p/xen subsystem. A race condition allows the xen_9pfs_front_event_handler to schedule response work after cancel_work_sync has been called, and before the event‑channel IRQ has been unbound. This can lead to a freed ring being freed while pending work still holds a reference, causing the worker to dereference stale pointers such as ring->priv and priv->client. The kernel crash or arbitrary code execution that could result from this memory corruption is a high‑impact vulnerability. The weakness is categorized as a classic use‑after‑free and improper synchronization race.

Affected Systems

The vulnerability affects the Linux kernel in all released versions that include the 9p/xen interface. No specific affected partial version list is provided in the data.

Risk and Exploitability

Because the flaw resides in kernel space, a local or remote attacker able to influence the xen connection or the 9p filesystem can trigger the race condition. The CVE lacks a published CVSS score and EPSS, and it is not listed in the CISA KEV catalog, yet the nature of the bug implies it could be leveraged for privilege escalation or denial of service. The race window exists until the IRQ is unbound, indicating that the exact attack vector is a timing‑sensitive manipulation of the xen‑9p backend during teardown. The missing EPSS score suggests that public exploitation data is currently unavailable.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a release that includes the commit ea4f1009408e, which adds cancel_work_sync before freeing the ring resources.
  • If a kernel update is not immediately possible, adjust the XEN configuration so that the event‑channel IRQ is unbound before draining any pending 9p/xen work; this removes the race window described in the fix.
  • Continuously monitor XEN and kernel vendor advisories for additional patches or workarounds.

Generated by OpenCVE AI on December 1, 2026 at 02:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: 9p/xen: drain response work after unbinding IRQ commit ea4f1009408e ("9p/xen : Fix use after free bug in xen_9pfs_front_remove due to race condition") added cancel_work_sync() to keep xen_9pfs_front_free() from freeing a ring while p9_xen_response() is still running. The work is currently drained before the event channel IRQ is unbound. That leaves a race window where xen_9pfs_front_event_handler() can run after cancel_work_sync() returns and queue p9_xen_response() again. The following unbind_from_irqhandler() synchronizes with the IRQ handler, but it does not cancel work that the handler already queued. The teardown can then free the ring and private data while the response work remains pending, and the worker later dereferences ring->priv and priv->client. Unbind the event channel IRQ before draining the work. Once the IRQ is unbound, no new response work can be queued by the backend event channel, and cancel_work_sync() waits for any work that was queued before or during the unbind. It is then safe to release the ring resources.
Title 9p/xen: drain response work after unbinding IRQ
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-416

    Use After Free

Sources

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