CVE-2026-139074

drm/nouveau: cancel the DP IRQ work before freeing the connector

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

drm/nouveau: cancel the DP IRQ work before freeing the connector

nouveau_connector_destroy() tears the two nvif events down and then
frees the connector, but never cancels the work the IRQ event queues:

nvif_event_dtor(&nv_connector->irq);
nvif_event_dtor(&nv_connector->hpd);
kfree(nv_connector->edid);
...
kfree(connector);

nouveau_connector_irq() queues that work unconditionally:

schedule_work(&nv_connector->irq_work);
return NVIF_EVENT_KEEP;

A DP IRQ arriving just before nvif_event_dtor() therefore leaves
nv_connector->irq_work on the system queue past the kfree(). When it
runs, nouveau_dp_irq() derives both nv_connector and connector from the
work_struct and dereferences them, and goes on to take
outp->dp.hpd_irq_lock.

There is no cancel_work_sync() for irq_work anywhere in the driver, so
nothing else covers this. Add it after the event teardown, where no
further work can be queued, and before anything is freed.

Reported by the Sashiko review bot as a pre-existing issue, in its review
of an earlier nv04 FIFO series of mine, and confirmed against the source.

Analysis

AI-generated

Technical impact

The nouveau kernel driver has a use‑after‑free flaw where a DisplayPort IRQ work item is scheduled on the system queue after the driver’s connector teardown has already freed the underlying structures. If a DP IRQ arrives just before the teardown, the queued work dereferences freed memory and can cause a kernel crash or, under certain conditions, malicious code execution. This flaw presents a classic use‑after‑free vulnerability that could lead to privilege escalation if an attacker can reliably trigger a DP IRQ during driver unload.

Affected Systems

All Linux kernel instances that include the Nouveau DRM driver are potentially affected; the affected versions are not specified in the available data. The problem exists in any kernel build that compiles the nouveau connector and IRQ handling code without the fix applied by the reviewed commit.

Risk and Exploitability

The CVSS score is not provided, and the EPSS score is unavailable, but the lack of a CANCEL_WORK_SYNC call means the flaw remains exploitable until addressed. The vulnerability is not listed in the CISA KEV catalog, suggesting no currently documented wild‑card exploits. However, the nature of the fault – a use‑after‑free that can trigger a kernel crash or arbitrary execution – gives attackers a significant risk vector if they can provoke a DP IRQ during driver teardown. A successful exploitation would likely require local or privileged access to the device, such as via malicious drivers or firmware updates.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest kernel release that contains the commit correcting the nouveau connector teardown
  • If a newer kernel is not available, apply a backport patch that inserts cancel_work_sync() before the connector is freed
  • Set stricter access controls on device drivers to limit the ability of untrusted code to generate DisplayPort IRQs
  • Disable unused display drivers if the hardware is not required

Generated by OpenCVE AI on November 30, 2026 at 18:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: drm/nouveau: cancel the DP IRQ work before freeing the connector nouveau_connector_destroy() tears the two nvif events down and then frees the connector, but never cancels the work the IRQ event queues: nvif_event_dtor(&nv_connector->irq); nvif_event_dtor(&nv_connector->hpd); kfree(nv_connector->edid); ... kfree(connector); nouveau_connector_irq() queues that work unconditionally: schedule_work(&nv_connector->irq_work); return NVIF_EVENT_KEEP; A DP IRQ arriving just before nvif_event_dtor() therefore leaves nv_connector->irq_work on the system queue past the kfree(). When it runs, nouveau_dp_irq() derives both nv_connector and connector from the work_struct and dereferences them, and goes on to take outp->dp.hpd_irq_lock. There is no cancel_work_sync() for irq_work anywhere in the driver, so nothing else covers this. Add it after the event teardown, where no further work can be queued, and before anything is freed. Reported by the Sashiko review bot as a pre-existing issue, in its review of an earlier nv04 FIFO series of mine, and confirmed against the source.
Title drm/nouveau: cancel the DP IRQ work before freeing the connector
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-825

    Expired Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:27 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:27 PM