Bug 2367577 (CVE-2025-37965) - CVE-2025-37965 kernel: drm/amd/display: Fix invalid context error in dml helper
Summary: CVE-2025-37965 kernel: drm/amd/display: Fix invalid context error in dml helper
Keywords:
Status: NEW
Alias: CVE-2025-37965
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-20 17:01 UTC by OSIDB Bzimport
Modified: 2025-05-21 06:49 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-20 17:01:43 UTC
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)

Comment 1 Avinash Hanwate 2025-05-21 06:41:35 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025052043-CVE-2025-37965-5602@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.