{"id":"CVE-2025-37965","aliases":["CVE-2025-37965"],"related":[],"kind":"vulnerability","state":"published","title":"drm/amd/display: Fix invalid context error in dml helper","summary":"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)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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)","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/amd/display: Corrección de error de contexto no válido en el asistente dml [Por qué] Error \"BUG: función inactiva llamada desde un contexto no válido\". Después: \"drm/amd/display: Proteger FPU en dml2_validate()/dml21_validate()\". La función populate_dml_plane_cfg_from_plane_state() utiliza el indicador GFP_KERNEL para la asignación de memoria, que no debería usarse en contextos atómicos. Esta asignación solo es necesaria para usar otra función auxiliar, get_scaler_data_for_plane(). [Cómo] Modificar los asistentes para que pasen un puntero a scaler_data dentro del contexto existente, eliminando la necesidad de asignar/desasignar memoria dinámicamente y copiar. (Seleccionado de el commit bd3e84bc98f81b44f2c43936bdadc3241d654259)","source":"nvd"}],"published":"2025-05-20T16:47:14.179Z","modified":"2026-06-17T09:15:47.447Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"74d6fba60f05ca6b298702233b6e6cc7629eeb5a","fixed":"d8c4afe78385cd355e4d80299d785379d6e874df","status":"affected"},{"type":"git","introduced":"7b80dcf343d45088931d16a6c9ba2fd975138a0b","fixed":"b371f8f6d89ec8dfea796e00a44a57c44fc8fcc0","status":"affected"},{"type":"git","introduced":"366e77cd4923c3aa45341e15dcaf3377af9b042f","fixed":"9984db63742099ee3f3cff35cf71306d10e64356","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"6.12.25","fixed":"6.12.29","status":"affected"},{"type":"semver","introduced":"6.14.4","fixed":"6.14.7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.12.25","fixed":"6.12.29"},{"status":"affected","introduced":"6.14.4","fixed":"6.14.7"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d8c4afe78385cd355e4d80299d785379d6e874df","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b371f8f6d89ec8dfea796e00a44a57c44fc8fcc0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9984db63742099ee3f3cff35cf71306d10e64356","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-37965","url":"https://www.cve.org/CVERecord?id=CVE-2025-37965","licence":"CVE Terms of Use","modified":"2026-05-11T21:18:39.921Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-37965","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37965","licence":"Public domain","modified":"2026-06-17T09:15:47.447Z"}],"updatedAt":"2026-11-25T22:58:58.312Z","epss":{"score":0.00187,"percentile":0.08691,"date":"2026-12-01T12:00:22.000Z"}}