CVE-2024-42121

Source
https://cve.org/CVERecord?id=CVE-2024-42121
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-42121.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-42121
Downstream
Related
Published
2024-07-30T07:46:13.064Z
Modified
2026-05-28T03:55:18.669350407Z
Summary
drm/amd/display: Check index msg_id before read or write
Details

In the Linux kernel, the following vulnerability has been resolved:

drm/amd/display: Check index msg_id before read or write

[WHAT] msgid is used as an array index and it cannot be a negative value, and therefore cannot be equal to MODHDCPMESSAGEID_INVALID (-1).

[HOW] Check whether msg_id is valid before reading and setting.

This fixes 4 OVERRUN issues reported by Coverity.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42121.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c
Fixed
b5b8837d066cc182ff69fb5629ad32ade5484567
Fixed
fbb0701af9734cff13917a4b98b5ee9da2fde48d
Fixed
ae91ffbc8b8d942e3e7f188728cad557b7ed5ee4
Fixed
9933eca6ada0cd612e19522e7a319bcef464c0eb
Fixed
a31ea49dc8064a557565725cf045944307476a6e
Fixed
59d99deb330af206a4541db0c4da8f73880fba03

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-42121.json"

Linux / Kernel

Package

Name
Kernel

Affected 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

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-42121.json"