CVE-2024-42118
drm/amd/display: Do not return negative stream id for array
Reported by linux · Published July 30, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Linux | Linux | a76fa9c4f0fc0aa6f517da3fa7d7c23e8a32c7d0, 3ac31c9a707dd1c7c890b95333182f955e9dcb57 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c |
| Linux | Linux | 4.15, 0, 6.9.9 |
| Linux | Linux | 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, 6.9.9, 6.10 |
| linux | linux_kernel | 4.15, 4.15 |
Timeline
- Jul 29, 2024 CVE Published
- Jul 30, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (14 in total, the first dated here)
- Jan 6, 2026 Security Advisory (355 in total, the first dated here)
- Mar 30, 2026 Distribution Patch (237 in total, the first dated here)
- Nov 19, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-42118
vulnetix vdb fixes CVE-2024-42118
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-42118/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart