{"id":"CVE-2026-139074","state":"PUBLISHED","title":"drm/nouveau: cancel the DP IRQ work before freeing the connector","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/nouveau: cancel the DP IRQ work before freeing the connector\n\nnouveau_connector_destroy() tears the two nvif events down and then\nfrees the connector, but never cancels the work the IRQ event queues:\n\n\tnvif_event_dtor(&nv_connector->irq);\n\tnvif_event_dtor(&nv_connector->hpd);\n\tkfree(nv_connector->edid);\n\t...\n\tkfree(connector);\n\nnouveau_connector_irq() queues that work unconditionally:\n\n\tschedule_work(&nv_connector->irq_work);\n\treturn NVIF_EVENT_KEEP;\n\nA DP IRQ arriving just before nvif_event_dtor() therefore leaves\nnv_connector->irq_work on the system queue past the kfree(). When it\nruns, nouveau_dp_irq() derives both nv_connector and connector from the\nwork_struct and dereferences them, and goes on to take\noutp->dp.hpd_irq_lock.\n\nThere is no cancel_work_sync() for irq_work anywhere in the driver, so\nnothing else covers this. Add it after the event teardown, where no\nfurther work can be queued, and before anything is freed.\n\nReported by the Sashiko review bot as a pre-existing issue, in its review\nof an earlier nv04 FIFO series of mine, and confirmed against the source.","publishedAt":"2026-11-30T13:27:39.195Z","updatedAt":"2026-11-30T13:27:39.195Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"773eb04d14a11552b2c3953097ed09cde2ab4831","status":"affected","lessThan":"828381e536ba651078313e8187da00966edbf433","versionType":"git"},{"version":"773eb04d14a11552b2c3953097ed09cde2ab4831","status":"affected","lessThan":"bda77393313c8cc9166a74c4e4331f91ce97c48c","versionType":"git"},{"version":"773eb04d14a11552b2c3953097ed09cde2ab4831","status":"affected","lessThan":"3ea6031d2625fd93ee17994f65140c321de46a83","versionType":"git"},{"version":"773eb04d14a11552b2c3953097ed09cde2ab4831","status":"affected","lessThan":"16fd45596851eb1b14d5c9ea30aa044395ebe288","versionType":"git"},{"version":"773eb04d14a11552b2c3953097ed09cde2ab4831","status":"affected","lessThan":"f60849975a886d70883bcb6b3658c0fa83c6971f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/nouveau/nouveau_connector.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/nouveau/nouveau_connector.c"]}],"references":["https://git.kernel.org/stable/c/828381e536ba651078313e8187da00966edbf433","https://git.kernel.org/stable/c/bda77393313c8cc9166a74c4e4331f91ce97c48c","https://git.kernel.org/stable/c/3ea6031d2625fd93ee17994f65140c321de46a83","https://git.kernel.org/stable/c/16fd45596851eb1b14d5c9ea30aa044395ebe288","https://git.kernel.org/stable/c/f60849975a886d70883bcb6b3658c0fa83c6971f"],"weaknesses":[],"ingestedAt":"2026-11-30T13:42:04.437Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139074.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139074","state":"PUBLISHED","datePublished":"2026-11-30T13:27:39.195Z","dateUpdated":"2026-11-30T13:27:39.195Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.912Z"},"containers":{"cna":{"title":"drm/nouveau: cancel the DP IRQ work before freeing the connector","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/nouveau: cancel the DP IRQ work before freeing the connector\n\nnouveau_connector_destroy() tears the two nvif events down and then\nfrees the connector, but never cancels the work the IRQ event queues:\n\n\tnvif_event_dtor(&nv_connector->irq);\n\tnvif_event_dtor(&nv_connector->hpd);\n\tkfree(nv_connector->edid);\n\t...\n\tkfree(connector);\n\nnouveau_connector_irq() queues that work unconditionally:\n\n\tschedule_work(&nv_connector->irq_work);\n\treturn NVIF_EVENT_KEEP;\n\nA DP IRQ arriving just before nvif_event_dtor() therefore leaves\nnv_connector->irq_work on the system queue past the kfree(). When it\nruns, nouveau_dp_irq() derives both nv_connector and connector from the\nwork_struct and dereferences them, and goes on to take\noutp->dp.hpd_irq_lock.\n\nThere is no cancel_work_sync() for irq_work anywhere in the driver, so\nnothing else covers this. Add it after the event teardown, where no\nfurther work can be queued, and before anything is freed.\n\nReported by the Sashiko review bot as a pre-existing issue, in its review\nof an earlier nv04 FIFO series of mine, and confirmed against the source."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"773eb04d14a11552b2c3953097ed09cde2ab4831","status":"affected","lessThan":"828381e536ba651078313e8187da00966edbf433","versionType":"git"},{"version":"773eb04d14a11552b2c3953097ed09cde2ab4831","status":"affected","lessThan":"bda77393313c8cc9166a74c4e4331f91ce97c48c","versionType":"git"},{"version":"773eb04d14a11552b2c3953097ed09cde2ab4831","status":"affected","lessThan":"3ea6031d2625fd93ee17994f65140c321de46a83","versionType":"git"},{"version":"773eb04d14a11552b2c3953097ed09cde2ab4831","status":"affected","lessThan":"16fd45596851eb1b14d5c9ea30aa044395ebe288","versionType":"git"},{"version":"773eb04d14a11552b2c3953097ed09cde2ab4831","status":"affected","lessThan":"f60849975a886d70883bcb6b3658c0fa83c6971f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/nouveau/nouveau_connector.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/nouveau/nouveau_connector.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/828381e536ba651078313e8187da00966edbf433"},{"url":"https://git.kernel.org/stable/c/bda77393313c8cc9166a74c4e4331f91ce97c48c"},{"url":"https://git.kernel.org/stable/c/3ea6031d2625fd93ee17994f65140c321de46a83"},{"url":"https://git.kernel.org/stable/c/16fd45596851eb1b14d5c9ea30aa044395ebe288"},{"url":"https://git.kernel.org/stable/c/f60849975a886d70883bcb6b3658c0fa83c6971f"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:27:39.195Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}