# CVE-2025-37965: drm/amd/display: Fix invalid context error in dml helper

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-05-20T16:47:14.179Z
- Modified: 2026-06-17T09:15:47.447Z
- Assigned by: Linux

## 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)

(As written by CVE List.)

## Affected

- Linux Linux: from 74d6fba60f05ca6b298702233b6e6cc7629eeb5a before d8c4afe78385cd355e4d80299d785379d6e874df; from 7b80dcf343d45088931d16a6c9ba2fd975138a0b before b371f8f6d89ec8dfea796e00a44a57c44fc8fcc0; from 366e77cd4923c3aa45341e15dcaf3377af9b042f before 9984db63742099ee3f3cff35cf71306d10e64356; from 6.12.25 before 6.12.29; from 6.14.4 before 6.14.7
- linux linux_kernel: from 6.12.25 before 6.12.29; from 6.14.4 before 6.14.7; 6.15

## References

- <https://git.kernel.org/stable/c/d8c4afe78385cd355e4d80299d785379d6e874df> (patch)
- <https://git.kernel.org/stable/c/b371f8f6d89ec8dfea796e00a44a57c44fc8fcc0> (patch)
- <https://git.kernel.org/stable/c/9984db63742099ee3f3cff35cf71306d10e64356> (patch)

## Sources

- CVE List: [CVE-2025-37965](https://www.cve.org/CVERecord?id=CVE-2025-37965), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-37965](https://nvd.nist.gov/vuln/detail/CVE-2025-37965), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-37965 · Whole record: https://cve.day/CVE-2025-37965.json · Rebuilt by cve.day 2026-11-25T22:58:58.312Z
