CVE-2025-38597

drm/rockchip: vop2: fail cleanly if missing a primary plane for a video-port

No CVSS score yet EPSS 0.23%

Published 19 Aug 2025 Updated 30 Oct 2026 CNA: Linux

Check your servers for CVE-2025-38597

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38597 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

drm/rockchip: vop2: fail cleanly if missing a primary plane for a video-port

Each window of a vop2 is usable by a specific set of video ports, so while binding the vop2, we look through the list of available windows trying to find one designated as primary-plane and usable by that specific port.

The code later wants to use drm_crtc_init_with_planes with that found primary plane, but nothing has checked so far if a primary plane was actually found.

For whatever reason, the rk3576 vp2 does not have a usable primary window (if vp0 is also in use) which brought the issue to light and ended in a null-pointer dereference further down.

As we expect a primary-plane to exist for a video-port, add a check at the end of the window-iteration and fail probing if none was found.

Exploitation

EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.3% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 604be85547ce4d61b89292d2f9a78c721b778c16, before 93857359a07e425b643178ce3c6e60a9e4605cac
affected from 604be85547ce4d61b89292d2f9a78c721b778c16, before 45be183b9944f765b77623daffb024cb38d192bf
affected from 604be85547ce4d61b89292d2f9a78c721b778c16, before 8fc974776c668fef1fc73fefbf573a076bb073e8
affected from 604be85547ce4d61b89292d2f9a78c721b778c16, before e1eef239399927b368f70a716044fb10085627c8
affected from 604be85547ce4d61b89292d2f9a78c721b778c16, before 38682edbbad272b5f8c7bf55128b42cd10626f73
affected from 604be85547ce4d61b89292d2f9a78c721b778c16, before f9f68bf1d0efeadb6c427c9dbb30f307a7def19b
Other versions: unaffected
Linux
affected 5.19
unaffected before 5.19
unaffected from 6.1.191 up to and including 6.1.*
unaffected from 6.6.160 up to and including 6.6.*
unaffected from 6.12.114 up to and including 6.12.*
unaffected from 6.15.10 up to and including 6.15.*
unaffected from 6.16.1 up to and including 6.16.*
unaffected 6.17 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38597 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38597

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-38597
trivy image --scanners vuln IMAGE | grep CVE-2025-38597

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-38597 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.