Bug 2320428 (CVE-2024-49908) - CVE-2024-49908 kernel: drm/amd/display: Add null check for 'afb' in amdgpu_dm_update_cursor (v2)
Summary: CVE-2024-49908 kernel: drm/amd/display: Add null check for 'afb' in a...
Keywords:
Status: NEW
Alias: CVE-2024-49908
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: 2320761
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-21 19:01 UTC by OSIDB Bzimport
Modified: 2024-10-21 22:30 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-10-21 19:01:20 UTC
In the Linux kernel, the following vulnerability has been resolved:

drm/amd/display: Add null check for 'afb' in amdgpu_dm_update_cursor (v2)

This commit adds a null check for the 'afb' variable in the
amdgpu_dm_update_cursor function. Previously, 'afb' was assumed to be
null at line 8388, but was used later in the code without a null check.
This could potentially lead to a null pointer dereference.

Changes since v1:
- Moved the null check for 'afb' to the line where 'afb' is used. (Alex)

Fixes the below:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:8433 amdgpu_dm_update_cursor()
	error: we previously assumed 'afb' could be null (see line 8388)


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