CVE-2025-37965

drm/amd/display: Fix invalid context error in dml helper

No CVSS score yet EPSS 0.19%

Published 20 May 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2025-37965

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-37965 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/amd/display: Fix invalid context error in dml helper

[Why] "BUG: sleeping function called from invalid context" error. after: "drm/amd/display: Protect FPU in dml2_validate()/dml21_validate()"

The populate_dml_plane_cfg_from_plane_state() uses the GFP_KERNEL flag for memory allocation, which shouldn't be used in atomic contexts.

The allocation is needed only for using another helper function get_scaler_data_for_plane().

[How] Modify helpers to pass a pointer to scaler_data within existing context, eliminating the need for dynamic memory allocation/deallocation and copying.

(cherry picked from commit bd3e84bc98f81b44f2c43936bdadc3241d654259)

Exploitation

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

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 74d6fba60f05ca6b298702233b6e6cc7629eeb5a, before d8c4afe78385cd355e4d80299d785379d6e874df
affected from 7b80dcf343d45088931d16a6c9ba2fd975138a0b, before b371f8f6d89ec8dfea796e00a44a57c44fc8fcc0
affected from 366e77cd4923c3aa45341e15dcaf3377af9b042f, before 9984db63742099ee3f3cff35cf71306d10e64356
Other versions: unaffected
Linux
affected from 6.12.25, before 6.12.29
affected from 6.14.4, before 6.14.7
Other versions: unaffected

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-37965 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-37965

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-37965
trivy image --scanners vuln IMAGE | grep CVE-2025-37965

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-37965 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.