{"id":"CVE-2026-68236","state":"PUBLISHED","title":"drm/amd/display: set new_stream to NULL after release","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: set new_stream to NULL after release\n\nIn dm_update_crtc_state(), the skip_modeset path releases new_stream\nvia dc_stream_release() but does not set the pointer to NULL.\n\nIf a later error (e.g., color management failure) triggers the fail\nlabel, the error path calls dc_stream_release() again on the same\ndangling pointer, causing a double release and potential use-after-free.\n\nFix this by setting new_stream to NULL after the initial release.\n\n(cherry picked from commit 99f3af19073b3ddbfd96e789124cce12c4277b28)","publishedAt":"2026-08-10T12:01:01.114Z","updatedAt":"2026-10-19T20:58:57.661Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9b690ef3c70422cdcd0cf912db33f2c92ef4a53f","status":"affected","lessThan":"92b7c6e3a1546c6db868b07e93fa6fb950d1d3a0","versionType":"git"},{"version":"9b690ef3c70422cdcd0cf912db33f2c92ef4a53f","status":"affected","lessThan":"bf9c06c70f496f1ba4474caf95c69696c828340e","versionType":"git"},{"version":"9b690ef3c70422cdcd0cf912db33f2c92ef4a53f","status":"affected","lessThan":"01ba5b36898d6258f584269537cc49e7b05cf7c6","versionType":"git"},{"version":"9b690ef3c70422cdcd0cf912db33f2c92ef4a53f","status":"affected","lessThan":"ba8bf1dcbb44773e7a0fd13b42925c644e0d5e76","versionType":"git"},{"version":"9b690ef3c70422cdcd0cf912db33f2c92ef4a53f","status":"affected","lessThan":"5182e442e61397d446c36995b8f5676942d35b82","versionType":"git"},{"version":"9b690ef3c70422cdcd0cf912db33f2c92ef4a53f","status":"affected","lessThan":"679f23f0a3606afcef1ffabd72222f00a54ad9e3","versionType":"git"},{"version":"9b690ef3c70422cdcd0cf912db33f2c92ef4a53f","status":"affected","lessThan":"0676fecbb5242aa22c057e78326d6d6041db034c","versionType":"git"},{"version":"9b690ef3c70422cdcd0cf912db33f2c92ef4a53f","status":"affected","lessThan":"9fa26b9eed6195bf840f39ac183b9a6237548755","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.15","versionType":"semver"},{"version":"5.10.271","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.222","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.189","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.148","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.101","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.42","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.6","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","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/amd/display/amdgpu_dm/amdgpu_dm.c"]}],"references":["https://git.kernel.org/stable/c/92b7c6e3a1546c6db868b07e93fa6fb950d1d3a0","https://git.kernel.org/stable/c/bf9c06c70f496f1ba4474caf95c69696c828340e","https://git.kernel.org/stable/c/01ba5b36898d6258f584269537cc49e7b05cf7c6","https://git.kernel.org/stable/c/ba8bf1dcbb44773e7a0fd13b42925c644e0d5e76","https://git.kernel.org/stable/c/5182e442e61397d446c36995b8f5676942d35b82","https://git.kernel.org/stable/c/679f23f0a3606afcef1ffabd72222f00a54ad9e3","https://git.kernel.org/stable/c/0676fecbb5242aa22c057e78326d6d6041db034c","https://git.kernel.org/stable/c/9fa26b9eed6195bf840f39ac183b9a6237548755"],"weaknesses":["CWE-415"],"ingestedAt":"2026-10-29T20:12:49.727Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/68xxx/CVE-2026-68236.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-68236","state":"PUBLISHED","datePublished":"2026-08-10T12:01:01.114Z","dateUpdated":"2026-10-19T20:58:57.661Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-30T09:28:09.376Z"},"containers":{"cna":{"title":"drm/amd/display: set new_stream to NULL after release","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: set new_stream to NULL after release\n\nIn dm_update_crtc_state(), the skip_modeset path releases new_stream\nvia dc_stream_release() but does not set the pointer to NULL.\n\nIf a later error (e.g., color management failure) triggers the fail\nlabel, the error path calls dc_stream_release() again on the same\ndangling pointer, causing a double release and potential use-after-free.\n\nFix this by setting new_stream to NULL after the initial release.\n\n(cherry picked from commit 99f3af19073b3ddbfd96e789124cce12c4277b28)"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9b690ef3c70422cdcd0cf912db33f2c92ef4a53f","status":"affected","lessThan":"92b7c6e3a1546c6db868b07e93fa6fb950d1d3a0","versionType":"git"},{"version":"9b690ef3c70422cdcd0cf912db33f2c92ef4a53f","status":"affected","lessThan":"bf9c06c70f496f1ba4474caf95c69696c828340e","versionType":"git"},{"version":"9b690ef3c70422cdcd0cf912db33f2c92ef4a53f","status":"affected","lessThan":"01ba5b36898d6258f584269537cc49e7b05cf7c6","versionType":"git"},{"version":"9b690ef3c70422cdcd0cf912db33f2c92ef4a53f","status":"affected","lessThan":"ba8bf1dcbb44773e7a0fd13b42925c644e0d5e76","versionType":"git"},{"version":"9b690ef3c70422cdcd0cf912db33f2c92ef4a53f","status":"affected","lessThan":"5182e442e61397d446c36995b8f5676942d35b82","versionType":"git"},{"version":"9b690ef3c70422cdcd0cf912db33f2c92ef4a53f","status":"affected","lessThan":"679f23f0a3606afcef1ffabd72222f00a54ad9e3","versionType":"git"},{"version":"9b690ef3c70422cdcd0cf912db33f2c92ef4a53f","status":"affected","lessThan":"0676fecbb5242aa22c057e78326d6d6041db034c","versionType":"git"},{"version":"9b690ef3c70422cdcd0cf912db33f2c92ef4a53f","status":"affected","lessThan":"9fa26b9eed6195bf840f39ac183b9a6237548755","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.15","versionType":"semver"},{"version":"5.10.271","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.222","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.189","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.148","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.101","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.42","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.6","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","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/amd/display/amdgpu_dm/amdgpu_dm.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/92b7c6e3a1546c6db868b07e93fa6fb950d1d3a0"},{"url":"https://git.kernel.org/stable/c/bf9c06c70f496f1ba4474caf95c69696c828340e"},{"url":"https://git.kernel.org/stable/c/01ba5b36898d6258f584269537cc49e7b05cf7c6"},{"url":"https://git.kernel.org/stable/c/ba8bf1dcbb44773e7a0fd13b42925c644e0d5e76"},{"url":"https://git.kernel.org/stable/c/5182e442e61397d446c36995b8f5676942d35b82"},{"url":"https://git.kernel.org/stable/c/679f23f0a3606afcef1ffabd72222f00a54ad9e3"},{"url":"https://git.kernel.org/stable/c/0676fecbb5242aa22c057e78326d6d6041db034c"},{"url":"https://git.kernel.org/stable/c/9fa26b9eed6195bf840f39ac183b9a6237548755"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is reached through the DRM atomic modeset ioctl (DRM_IOCTL_MODE_ATOMIC) on a local /dev/dri/card* node of an AMD GPU; there is no network or remote input path into dm_update_crtc_state().\nAC:L - A single atomic commit that requests a mode change while attaching a wrong-sized DEGAMMA_LUT blob deterministically drives amdgpu_dm_check_crtc_color_mgmt() to -EINVAL and hits the double dc_stream_release(); no race and no uncontrolled precondition, and TEST_ONLY commits let the attacker repeat it freely to groom the heap.\nPR:L - The atomic ioctl is gated only by DRM master on the card node, which any unprivileged local user on a graphical seat or an unused VT can hold; no CAP_SYS_ADMIN or root is needed.\nUI:N - The attacker performs the whole sequence with its own ioctl calls; no action by another user or administrator is required, and TEST_ONLY commits do not even disturb the display.\nS:U - The corrupted dc_stream_state and the resulting freed-memory reuse stay within the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The extra kref_put() frees the dc_stream_state while the CRTC state and the DC context still reference it; reading through those dangling pointers after the slab is reallocated leaks adjacent kernel object contents and pointers, and the attacker can spray to control what lands there.\nI:H - The reference-count underflow yields a use-after-free/double-free: subsequent kref_put() writes into reallocated slab memory and dc_stream_free() kfree()s an attacker-influenced update_scratch pointer, giving write and arbitrary-free primitives usable for privilege escalation.\nA:H - Even without exploitation the premature free causes dereference of freed stream/sink/link structures during atomic state unwind, producing a kernel oops or panic and killing the display pipeline; it can be triggered repeatedly."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-03T10:55:40.750Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"5.10.271"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"5.15.222"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"6.1.189"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"6.6.148"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"6.12.101"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"6.18.42"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"7.1.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-68236","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-16T15:46:01.329903Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-415","lang":"en","type":"CWE","description":"CWE-415 Double Free"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-19T20:58:57.661Z"}}]}}}