Bug 2320470 (CVE-2024-49919) - CVE-2024-49919 kernel: drm/amd/display: Add null check for head_pipe in dcn201_acquire_free_pipe_for_layer
Summary: CVE-2024-49919 kernel: drm/amd/display: Add null check for head_pipe in dcn20...
Keywords:
Status: NEW
Alias: CVE-2024-49919
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: 2320800
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-21 19:04 UTC by OSIDB Bzimport
Modified: 2024-10-21 23:19 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

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

drm/amd/display: Add null check for head_pipe in dcn201_acquire_free_pipe_for_layer

This commit addresses a potential null pointer dereference issue in the
`dcn201_acquire_free_pipe_for_layer` function. The issue could occur
when `head_pipe` is null.

The fix adds a check to ensure `head_pipe` is not null before asserting
it. If `head_pipe` is null, the function returns NULL to prevent a
potential null pointer dereference.

Reported by smatch:
drivers/gpu/drm/amd/amdgpu/../display/dc/resource/dcn201/dcn201_resource.c:1016 dcn201_acquire_free_pipe_for_layer() error: we previously assumed 'head_pipe' could be null (see line 1010)


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