AZL-116851: CVE-2026-139074 affecting package kernel 6.6.161.1-1
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(), cancel nv_connector->irq_work after tearing down the nvif events and before freeing the connector.
Event History
Frequently Asked Questions
What conditions are needed to trigger this issue?
A DisplayPort IRQ must arrive immediately before the Nouveau connector's IRQ events are torn down. That IRQ queues irq_work, which can later run after the connector has been freed.
Which systems are exposed?
The issue is in the Linux kernel's drm/nouveau driver and involves DisplayPort IRQ handling. The provided data identifies azure-linux/kernel package version 6.6.161.1-1 as affected.
What is the security-relevant effect of a successful trigger?
Queued IRQ work can dereference a freed Nouveau connector and then access the DisplayPort HPD IRQ lock. This is a use-after-free condition in kernel context.
Is there a stated mitigation if an update cannot be applied immediately?
No operational workaround is provided in the available data. The described resolution is to cancel the queued IRQ work after event teardown and before freeing connector-related memory.