drm/amd/display: ASSERT when failing to find index by plane/stream id
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: ASSERT when failing to find index by plane/stream id [WHY] find_disp_cfg_idx_by_plane_id and find_disp_cfg_idx_by_stream_id returns an array index and they return -1 when not found; however, -1 is not a valid index number. [HOW] When this happens, call ASSERT(), and return a positive number (which is fewer than callers' array size) instead. This fixes 4 OVERRUN and 2 NEGATIVE_RETURNS issues reported by Coverity.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.9.9
- CVEs
- CVE-2024-42117
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 18:32 UTC · Revision 1
Source evidence
drm/amd/display: ASSERT when failing to find index by plane/stream id
core-osv · Original sourcePublished 30 Jul 2024, 07:46 UTC
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: ASSERT when failing to find index by plane/stream id [WHY] find_disp_cfg_idx_by_plane_id and find_disp_cfg_idx_by_stream_id returns an array index and they return -1 when not found; however, -1 is not a valid index number. [HOW] When this happens, call ASSERT(), and return a positive number (which is fewer than callers' array size) instead. This fixes 4 OVERRUN and 2 NEGATIVE_RETURNS issues reported by Coverity.
osv:CVE-2024-42117
Kernel
Fixed versions: 6.9.9
Complete source record
{
"id": "ffcda06953cd663b92ee7173c85908c4ecf513a51fbd5549c365aaa67af4fa06",
"url": "https://osv.dev/vulnerability/CVE-2024-42117",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "drm/amd/display: ASSERT when failing to find index by plane/stream id",
"summary": "In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: ASSERT when failing to find index by plane/stream id [WHY] find_disp_cfg_idx_by_plane_id and find_disp_cfg_idx_by_stream_id returns an array index and they return -1 when not found; however, -1 is not a valid index number. [HOW] When this happens, call ASSERT(), and return a positive number (which is fewer than callers' array size) instead. This fixes 4 OVERRUN and 2 NEGATIVE_RETURNS issues reported by Coverity.",
"evidence": "osv:CVE-2024-42117",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.9.9",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2024-42117",
"aliases": [
"CVE-2024-42117"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "7966f319c66d9468623c6a6a017ecbc0dd79be75"
},
{
"fixed": "a9c047a5cf3135b8b66bd28fbe2c698b9cace0b3"
},
{
"fixed": "01eb50e53c1ce505bf449348d433181310288765"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42117.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.9.9"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42117.json"
}
}
],
"modified": "2026-10-28T02:30:47.811688194Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/01eb50e53c1ce505bf449348d433181310288765",
"https://git.kernel.org/stable/c/a9c047a5cf3135b8b66bd28fbe2c698b9cace0b3",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42117.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-42117",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42117.json"
}
},
"related_cves": [
{
"value": "CVE-2024-42117",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 515887,
"published_at": "2024-07-30T07:46:09.648+00:00"
}