drm/amd/display: Check index msg_id before read or write
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Check index msg_id before read or write [WHAT] msg_id is used as an array index and it cannot be a negative value, and therefore cannot be equal to MOD_HDCP_MESSAGE_ID_INVALID (-1). [HOW] Check whether msg_id is valid before reading and setting. This fixes 4 OVERRUN issues reported by Coverity.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.222, 5.15.163, 6.1.98, 6.6.39, 6.9.9
- CVEs
- CVE-2024-42121
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 01:59 UTC · Revision 1
Source evidence
drm/amd/display: Check index msg_id before read or write
core-osv · Original sourcePublished 30 Jul 2024, 07:46 UTC
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Check index msg_id before read or write [WHAT] msg_id is used as an array index and it cannot be a negative value, and therefore cannot be equal to MOD_HDCP_MESSAGE_ID_INVALID (-1). [HOW] Check whether msg_id is valid before reading and setting. This fixes 4 OVERRUN issues reported by Coverity.
osv:CVE-2024-42121
Kernel
Fixed versions: 5.10.222, 5.15.163, 6.1.98, 6.6.39, 6.9.9
Complete source record
{
"id": "90bb19452b4a120c4892527b479d38452ec4ac1f888c5eb4efe6a731ee826120",
"url": "https://osv.dev/vulnerability/CVE-2024-42121",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "drm/amd/display: Check index msg_id before read or write",
"summary": "In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Check index msg_id before read or write [WHAT] msg_id is used as an array index and it cannot be a negative value, and therefore cannot be equal to MOD_HDCP_MESSAGE_ID_INVALID (-1). [HOW] Check whether msg_id is valid before reading and setting. This fixes 4 OVERRUN issues reported by Coverity.",
"evidence": "osv:CVE-2024-42121",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.222",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.163",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.98",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.39",
"evidence": "/affected/1/ranges"
},
{
"value": "6.9.9",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2024-42121",
"aliases": [
"CVE-2024-42121"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c"
},
{
"fixed": "b5b8837d066cc182ff69fb5629ad32ade5484567"
},
{
"fixed": "fbb0701af9734cff13917a4b98b5ee9da2fde48d"
},
{
"fixed": "ae91ffbc8b8d942e3e7f188728cad557b7ed5ee4"
},
{
"fixed": "9933eca6ada0cd612e19522e7a319bcef464c0eb"
},
{
"fixed": "a31ea49dc8064a557565725cf045944307476a6e"
},
{
"fixed": "59d99deb330af206a4541db0c4da8f73880fba03"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42121.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.15.0"
},
{
"fixed": "5.10.222"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.163"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.98"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.39"
}
]
},
{
"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-42121.json"
}
}
],
"modified": "2026-10-28T02:30:41.970099610Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/59d99deb330af206a4541db0c4da8f73880fba03",
"https://git.kernel.org/stable/c/9933eca6ada0cd612e19522e7a319bcef464c0eb",
"https://git.kernel.org/stable/c/a31ea49dc8064a557565725cf045944307476a6e",
"https://git.kernel.org/stable/c/ae91ffbc8b8d942e3e7f188728cad557b7ed5ee4",
"https://git.kernel.org/stable/c/b5b8837d066cc182ff69fb5629ad32ade5484567",
"https://git.kernel.org/stable/c/fbb0701af9734cff13917a4b98b5ee9da2fde48d",
"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42121.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-42121",
"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-42121.json"
}
},
"related_cves": [
{
"value": "CVE-2024-42121",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 509291,
"published_at": "2024-07-30T07:46:13.064+00:00"
}