CVE-2025-37965: drm/amd/display: Fix invalid context error in dml helper
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 dml2validate()/dml21validate()"
The populatedmlplanecfgfromplanestate() uses the GFPKERNEL flag for memory allocation, which shouldn't be used in atomic contexts.
The allocation is needed only for using another helper function getscalerdataforplane().
[How] Modify helpers to pass a pointer to scalerdata within existing context, eliminating the need for dynamic memory allocation/deallocation and copying.
(cherry picked from commit bd3e84bc98f81b44f2c43936bdadc3241d654259)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Linux kernelto a version that resolves this vulnerability.Patch bd3e84bc98f81b44f2c43936bdadc3241d654259
Event History
Frequently Asked Questions
What is the severity of CVE-2025-37965?
CVE-2025-37965 is classified as a moderate severity vulnerability in the Linux kernel.
How do I fix CVE-2025-37965?
To fix CVE-2025-37965, update your Linux kernel to the latest stable version where the vulnerability has been patched.
What are the impacts of CVE-2025-37965?
CVE-2025-37965 can lead to a "BUG: sleeping function called from invalid context" error, potentially affecting system stability.
Which versions of Linux kernel are affected by CVE-2025-37965?
CVE-2025-37965 affects certain versions of the Linux kernel that do not include the security fix addressing the issue.
What component of the Linux kernel is impacted by CVE-2025-37965?
CVE-2025-37965 specifically impacts the drm/amd/display component of the Linux kernel.