{"id":"CVE-2025-37965","state":"PUBLISHED","title":"drm/amd/display: Fix invalid context error in dml helper","description":"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)","publishedAt":"2025-05-20T16:47:14.179Z","updatedAt":"2026-05-11T21:18:39.921Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"74d6fba60f05ca6b298702233b6e6cc7629eeb5a","status":"affected","lessThan":"d8c4afe78385cd355e4d80299d785379d6e874df","versionType":"git"},{"version":"7b80dcf343d45088931d16a6c9ba2fd975138a0b","status":"affected","lessThan":"b371f8f6d89ec8dfea796e00a44a57c44fc8fcc0","versionType":"git"},{"version":"366e77cd4923c3aa45341e15dcaf3377af9b042f","status":"affected","lessThan":"9984db63742099ee3f3cff35cf71306d10e64356","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6.12.25","status":"affected","lessThan":"6.12.29","versionType":"semver"},{"version":"6.14.4","status":"affected","lessThan":"6.14.7","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c"]}],"references":["https://git.kernel.org/stable/c/d8c4afe78385cd355e4d80299d785379d6e874df","https://git.kernel.org/stable/c/b371f8f6d89ec8dfea796e00a44a57c44fc8fcc0","https://git.kernel.org/stable/c/9984db63742099ee3f3cff35cf71306d10e64356"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:03.054Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/37xxx/CVE-2025-37965.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-37965","state":"PUBLISHED","datePublished":"2025-05-20T16:47:14.179Z","dateUpdated":"2026-05-11T21:18:39.921Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:23.974Z"},"containers":{"cna":{"title":"drm/amd/display: Fix invalid context error in dml helper","descriptions":[{"lang":"en","value":"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)"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"74d6fba60f05ca6b298702233b6e6cc7629eeb5a","status":"affected","lessThan":"d8c4afe78385cd355e4d80299d785379d6e874df","versionType":"git"},{"version":"7b80dcf343d45088931d16a6c9ba2fd975138a0b","status":"affected","lessThan":"b371f8f6d89ec8dfea796e00a44a57c44fc8fcc0","versionType":"git"},{"version":"366e77cd4923c3aa45341e15dcaf3377af9b042f","status":"affected","lessThan":"9984db63742099ee3f3cff35cf71306d10e64356","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6.12.25","status":"affected","lessThan":"6.12.29","versionType":"semver"},{"version":"6.14.4","status":"affected","lessThan":"6.14.7","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d8c4afe78385cd355e4d80299d785379d6e874df"},{"url":"https://git.kernel.org/stable/c/b371f8f6d89ec8dfea796e00a44a57c44fc8fcc0"},{"url":"https://git.kernel.org/stable/c/9984db63742099ee3f3cff35cf71306d10e64356"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:18:39.921Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12.25","versionEndExcluding":"6.12.29"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14.4","versionEndExcluding":"6.14.7"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}