{"id":"CVE-2026-139073","state":"PUBLISHED","title":"drm/nouveau: don't dereference outp before checking it in nouveau_dp_irq","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/nouveau: don't dereference outp before checking it in nouveau_dp_irq\n\nnouveau_dp_irq() looks the encoder up and dereferences it in the same\nbreath, five lines before testing it:\n\n\tstruct nouveau_encoder *outp = find_encoder(connector, DCB_OUTPUT_DP);\n\tstruct nouveau_drm *drm = nouveau_drm(outp->base.base.dev);\n\t...\n\tif (!outp)\n\t\treturn;\n\nfind_encoder() walks the connector's possible encoders and returns NULL\nwhen none of them matches the requested type, so the NULL test is not\ndecoration: it is the author saying this can happen. The initialiser\nabove it dereferences the same pointer regardless.\n\nThe NULL test predates the dereference. commit 773eb04d14a1\n(\"drm/nouveau/disp: expose conn event class\") turned nouveau_dp_irq()\ninto a work callback, and since the drm pointer was no longer passed in\nas an argument it was recovered from the encoder in the declaration\nblock, which put the dereference above the existing test.\n\nMove the drm lookup below the test. No functional change when outp is\nnon-NULL.","publishedAt":"2026-11-30T13:27:38.343Z","updatedAt":"2026-11-30T13:27:38.343Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"773eb04d14a11552b2c3953097ed09cde2ab4831","status":"affected","lessThan":"1a36ca42836cfd956c2c72f70188028bd39d40ca","versionType":"git"},{"version":"773eb04d14a11552b2c3953097ed09cde2ab4831","status":"affected","lessThan":"2a457374b6d7669f888d8b6baff73e8b963a95ea","versionType":"git"},{"version":"773eb04d14a11552b2c3953097ed09cde2ab4831","status":"affected","lessThan":"ddae760f399709fdfbf295a06f8eea557302ad9a","versionType":"git"},{"version":"773eb04d14a11552b2c3953097ed09cde2ab4831","status":"affected","lessThan":"998378828857cc20856049b0d1fe6f5b32131659","versionType":"git"},{"version":"773eb04d14a11552b2c3953097ed09cde2ab4831","status":"affected","lessThan":"843bc34db94bff0612c8294861b156489958897b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/nouveau/nouveau_dp.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_dp.c"]}],"references":["https://git.kernel.org/stable/c/1a36ca42836cfd956c2c72f70188028bd39d40ca","https://git.kernel.org/stable/c/2a457374b6d7669f888d8b6baff73e8b963a95ea","https://git.kernel.org/stable/c/ddae760f399709fdfbf295a06f8eea557302ad9a","https://git.kernel.org/stable/c/998378828857cc20856049b0d1fe6f5b32131659","https://git.kernel.org/stable/c/843bc34db94bff0612c8294861b156489958897b"],"weaknesses":[],"ingestedAt":"2026-11-30T13:42:04.437Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139073.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139073","state":"PUBLISHED","datePublished":"2026-11-30T13:27:38.343Z","dateUpdated":"2026-11-30T13:27:38.343Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.912Z"},"containers":{"cna":{"title":"drm/nouveau: don't dereference outp before checking it in nouveau_dp_irq","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/nouveau: don't dereference outp before checking it in nouveau_dp_irq\n\nnouveau_dp_irq() looks the encoder up and dereferences it in the same\nbreath, five lines before testing it:\n\n\tstruct nouveau_encoder *outp = find_encoder(connector, DCB_OUTPUT_DP);\n\tstruct nouveau_drm *drm = nouveau_drm(outp->base.base.dev);\n\t...\n\tif (!outp)\n\t\treturn;\n\nfind_encoder() walks the connector's possible encoders and returns NULL\nwhen none of them matches the requested type, so the NULL test is not\ndecoration: it is the author saying this can happen. The initialiser\nabove it dereferences the same pointer regardless.\n\nThe NULL test predates the dereference. commit 773eb04d14a1\n(\"drm/nouveau/disp: expose conn event class\") turned nouveau_dp_irq()\ninto a work callback, and since the drm pointer was no longer passed in\nas an argument it was recovered from the encoder in the declaration\nblock, which put the dereference above the existing test.\n\nMove the drm lookup below the test. No functional change when outp is\nnon-NULL."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"773eb04d14a11552b2c3953097ed09cde2ab4831","status":"affected","lessThan":"1a36ca42836cfd956c2c72f70188028bd39d40ca","versionType":"git"},{"version":"773eb04d14a11552b2c3953097ed09cde2ab4831","status":"affected","lessThan":"2a457374b6d7669f888d8b6baff73e8b963a95ea","versionType":"git"},{"version":"773eb04d14a11552b2c3953097ed09cde2ab4831","status":"affected","lessThan":"ddae760f399709fdfbf295a06f8eea557302ad9a","versionType":"git"},{"version":"773eb04d14a11552b2c3953097ed09cde2ab4831","status":"affected","lessThan":"998378828857cc20856049b0d1fe6f5b32131659","versionType":"git"},{"version":"773eb04d14a11552b2c3953097ed09cde2ab4831","status":"affected","lessThan":"843bc34db94bff0612c8294861b156489958897b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/nouveau/nouveau_dp.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_dp.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/1a36ca42836cfd956c2c72f70188028bd39d40ca"},{"url":"https://git.kernel.org/stable/c/2a457374b6d7669f888d8b6baff73e8b963a95ea"},{"url":"https://git.kernel.org/stable/c/ddae760f399709fdfbf295a06f8eea557302ad9a"},{"url":"https://git.kernel.org/stable/c/998378828857cc20856049b0d1fe6f5b32131659"},{"url":"https://git.kernel.org/stable/c/843bc34db94bff0612c8294861b156489958897b"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:27:38.343Z"},"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"}}}}}