CVE-2025-37965

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-37965
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37965.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-37965
Downstream
Published
2025-05-20T16:47:14Z
Modified
2025-10-22T11:19:37.308313Z
Summary
drm/amd/display: Fix invalid context error in dml helper
Details

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 GFP_KERNEL 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 scaler_data within existing context, eliminating the need for dynamic memory allocation/deallocation and copying.

(cherry picked from commit bd3e84bc98f81b44f2c43936bdadc3241d654259)

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
74d6fba60f05ca6b298702233b6e6cc7629eeb5a
Fixed
d8c4afe78385cd355e4d80299d785379d6e874df
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
7b80dcf343d45088931d16a6c9ba2fd975138a0b
Fixed
b371f8f6d89ec8dfea796e00a44a57c44fc8fcc0
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
366e77cd4923c3aa45341e15dcaf3377af9b042f
Fixed
9984db63742099ee3f3cff35cf71306d10e64356

Affected versions

v6.*

v6.12.25
v6.12.26
v6.12.27
v6.12.28
v6.14
v6.14-rc7
v6.14.4
v6.14.5
v6.14.6
v6.15-rc1
v6.15-rc2
v6.15-rc3
v6.15-rc4
v6.15-rc5

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.12.25
Fixed
6.12.29
Type
ECOSYSTEM
Events
Introduced
6.14.4
Fixed
6.14.7