Bug 2301483 (CVE-2024-42118) - CVE-2024-42118 kernel: drm/amd/display: Do not return negative stream id for array
Summary: CVE-2024-42118 kernel: drm/amd/display: Do not return negative stream id for ...
Keywords:
Status: NEW
Alias: CVE-2024-42118
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: 2301784
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-30 08:32 UTC by OSIDB Bzimport
Modified: 2024-09-19 16:25 UTC (History)
4 users (show)

Fixed In Version: kernel 6.9.9, kernel 6.10
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-07-30 08:32:28 UTC
In the Linux kernel, the following vulnerability has been resolved:

drm/amd/display: Do not return negative stream id for array

[WHY]
resource_stream_to_stream_idx returns an array index and it return -1
when not found; however, -1 is not a valid array index number.

[HOW]
When this happens, call ASSERT(), and return a zero instead.

This fixes an OVERRUN and an NEGATIVE_RETURNS issues reported by Coverity.

Comment 1 Mauro Matteo Cascella 2024-07-30 19:10:08 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024073024-CVE-2024-42118-537b@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-30 19:10:29 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2301784]


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