{"id":"CVE-2025-38597","state":"PUBLISHED","title":"drm/rockchip: vop2: fail cleanly if missing a primary plane for a video-port","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/rockchip: vop2: fail cleanly if missing a primary plane for a video-port\n\nEach window of a vop2 is usable by a specific set of video ports, so while\nbinding the vop2, we look through the list of available windows trying to\nfind one designated as primary-plane and usable by that specific port.\n\nThe code later wants to use drm_crtc_init_with_planes with that found\nprimary plane, but nothing has checked so far if a primary plane was\nactually found.\n\nFor whatever reason, the rk3576 vp2 does not have a usable primary window\n(if vp0 is also in use) which brought the issue to light and ended in a\nnull-pointer dereference further down.\n\nAs we expect a primary-plane to exist for a video-port, add a check at\nthe end of the window-iteration and fail probing if none was found.","publishedAt":"2025-08-19T17:03:32.380Z","updatedAt":"2026-10-30T12:22:07.330Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"604be85547ce4d61b89292d2f9a78c721b778c16","status":"affected","lessThan":"93857359a07e425b643178ce3c6e60a9e4605cac","versionType":"git"},{"version":"604be85547ce4d61b89292d2f9a78c721b778c16","status":"affected","lessThan":"45be183b9944f765b77623daffb024cb38d192bf","versionType":"git"},{"version":"604be85547ce4d61b89292d2f9a78c721b778c16","status":"affected","lessThan":"8fc974776c668fef1fc73fefbf573a076bb073e8","versionType":"git"},{"version":"604be85547ce4d61b89292d2f9a78c721b778c16","status":"affected","lessThan":"e1eef239399927b368f70a716044fb10085627c8","versionType":"git"},{"version":"604be85547ce4d61b89292d2f9a78c721b778c16","status":"affected","lessThan":"38682edbbad272b5f8c7bf55128b42cd10626f73","versionType":"git"},{"version":"604be85547ce4d61b89292d2f9a78c721b778c16","status":"affected","lessThan":"f9f68bf1d0efeadb6c427c9dbb30f307a7def19b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/rockchip/rockchip_drm_vop2.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.114","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.10","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16.1","status":"unaffected","lessThanOrEqual":"6.16.*","versionType":"semver"},{"version":"6.17","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/rockchip/rockchip_drm_vop2.c"]}],"references":["https://git.kernel.org/stable/c/93857359a07e425b643178ce3c6e60a9e4605cac","https://git.kernel.org/stable/c/45be183b9944f765b77623daffb024cb38d192bf","https://git.kernel.org/stable/c/8fc974776c668fef1fc73fefbf573a076bb073e8","https://git.kernel.org/stable/c/e1eef239399927b368f70a716044fb10085627c8","https://git.kernel.org/stable/c/38682edbbad272b5f8c7bf55128b42cd10626f73","https://git.kernel.org/stable/c/f9f68bf1d0efeadb6c427c9dbb30f307a7def19b"],"weaknesses":[],"ingestedAt":"2026-10-30T12:38:04.623Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/38xxx/CVE-2025-38597.json","commit":"db8103c5921aac81d5d90efcf3745980dafabf49","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-38597","state":"PUBLISHED","datePublished":"2025-08-19T17:03:32.380Z","dateUpdated":"2026-10-30T12:22:07.330Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:24.028Z"},"containers":{"cna":{"title":"drm/rockchip: vop2: fail cleanly if missing a primary plane for a video-port","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/rockchip: vop2: fail cleanly if missing a primary plane for a video-port\n\nEach window of a vop2 is usable by a specific set of video ports, so while\nbinding the vop2, we look through the list of available windows trying to\nfind one designated as primary-plane and usable by that specific port.\n\nThe code later wants to use drm_crtc_init_with_planes with that found\nprimary plane, but nothing has checked so far if a primary plane was\nactually found.\n\nFor whatever reason, the rk3576 vp2 does not have a usable primary window\n(if vp0 is also in use) which brought the issue to light and ended in a\nnull-pointer dereference further down.\n\nAs we expect a primary-plane to exist for a video-port, add a check at\nthe end of the window-iteration and fail probing if none was found."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"604be85547ce4d61b89292d2f9a78c721b778c16","status":"affected","lessThan":"93857359a07e425b643178ce3c6e60a9e4605cac","versionType":"git"},{"version":"604be85547ce4d61b89292d2f9a78c721b778c16","status":"affected","lessThan":"45be183b9944f765b77623daffb024cb38d192bf","versionType":"git"},{"version":"604be85547ce4d61b89292d2f9a78c721b778c16","status":"affected","lessThan":"8fc974776c668fef1fc73fefbf573a076bb073e8","versionType":"git"},{"version":"604be85547ce4d61b89292d2f9a78c721b778c16","status":"affected","lessThan":"e1eef239399927b368f70a716044fb10085627c8","versionType":"git"},{"version":"604be85547ce4d61b89292d2f9a78c721b778c16","status":"affected","lessThan":"38682edbbad272b5f8c7bf55128b42cd10626f73","versionType":"git"},{"version":"604be85547ce4d61b89292d2f9a78c721b778c16","status":"affected","lessThan":"f9f68bf1d0efeadb6c427c9dbb30f307a7def19b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/rockchip/rockchip_drm_vop2.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.114","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.10","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16.1","status":"unaffected","lessThanOrEqual":"6.16.*","versionType":"semver"},{"version":"6.17","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/rockchip/rockchip_drm_vop2.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/93857359a07e425b643178ce3c6e60a9e4605cac"},{"url":"https://git.kernel.org/stable/c/45be183b9944f765b77623daffb024cb38d192bf"},{"url":"https://git.kernel.org/stable/c/8fc974776c668fef1fc73fefbf573a076bb073e8"},{"url":"https://git.kernel.org/stable/c/e1eef239399927b368f70a716044fb10085627c8"},{"url":"https://git.kernel.org/stable/c/38682edbbad272b5f8c7bf55128b42cd10626f73"},{"url":"https://git.kernel.org/stable/c/f9f68bf1d0efeadb6c427c9dbb30f307a7def19b"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:22:07.330Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.12.114"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.15.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.16.1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.17"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}