CVE-2026-139074: drm/nouveau: cancel the DP IRQ work before freeing the connector
In the Linux kernel, the following vulnerability has been resolved:
drm/nouveau: cancel the DP IRQ work before freeing the connector
nouveauconnectordestroy() tears the two nvif events down and then frees the connector, but never cancels the work the IRQ event queues:
nvifeventdtor(&nvconnector->irq); nvifeventdtor(&nvconnector->hpd); kfree(nvconnector->edid); ... kfree(connector);
nouveauconnectorirq() queues that work unconditionally:
schedulework(&nvconnector->irqwork); return NVIFEVENTKEEP;
A DP IRQ arriving just before nvifeventdtor() therefore leaves nvconnector->irqwork on the system queue past the kfree(). When it runs, nouveaudpirq() derives both nvconnector and connector from the workstruct and dereferences them, and goes on to take outp->dp.hpdirqlock.
There is no cancelworksync() for irqwork 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In nouveau_connector_destroy(), call cancel_work_sync(&nv_connector->irq_work) after tearing down the nvif events and before freeing the connector or its associated data.