Bug 2320498 (CVE-2024-49913) - CVE-2024-49913 kernel: drm/amd/display: Add null check for top_pipe_to_program in commit_planes_for_stream
Summary: CVE-2024-49913 kernel: drm/amd/display: Add null check for top_pipe_to_progra...
Keywords:
Status: NEW
Alias: CVE-2024-49913
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: 2320979
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-21 19:06 UTC by OSIDB Bzimport
Modified: 2024-10-22 13:21 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:06:01 UTC
In the Linux kernel, the following vulnerability has been resolved:

drm/amd/display: Add null check for top_pipe_to_program in commit_planes_for_stream

This commit addresses a null pointer dereference issue in the
`commit_planes_for_stream` function at line 4140. The issue could occur
when `top_pipe_to_program` is null.

The fix adds a check to ensure `top_pipe_to_program` is not null before
accessing its stream_res. This prevents a null pointer dereference.

Reported by smatch:
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:4140 commit_planes_for_stream() error: we previously assumed 'top_pipe_to_program' could be null (see line 3906)


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