{"id":"CVE-2025-37965","summary":"drm/amd/display: Fix invalid context error in dml helper","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: Fix invalid context error in dml helper\n\n[Why]\n\"BUG: sleeping function called from invalid context\" error.\nafter:\n\"drm/amd/display: Protect FPU in dml2_validate()/dml21_validate()\"\n\nThe populate_dml_plane_cfg_from_plane_state() uses the GFP_KERNEL flag\nfor memory allocation, which shouldn't be used in atomic contexts.\n\nThe allocation is needed only for using another helper function\nget_scaler_data_for_plane().\n\n[How]\nModify helpers to pass a pointer to scaler_data within existing context,\neliminating the need for dynamic memory allocation/deallocation\nand copying.\n\n(cherry picked from commit bd3e84bc98f81b44f2c43936bdadc3241d654259)","modified":"2026-04-02T12:47:41.425923Z","published":"2025-05-20T16:47:14.179Z","related":["SUSE-SU-2025:02254-1","SUSE-SU-2025:02307-1","SUSE-SU-2025:02333-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37965.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/9984db63742099ee3f3cff35cf71306d10e64356"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b371f8f6d89ec8dfea796e00a44a57c44fc8fcc0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d8c4afe78385cd355e4d80299d785379d6e874df"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37965.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37965"},{"type":"PACKAGE","url":"https://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"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37965.json"}}],"schema_version":"1.7.5"}