CVE-2025-21985

Source
https://cve.org/CVERecord?id=CVE-2025-21985
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21985.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21985
Downstream
Related
Published
2025-04-01T15:47:12.103Z
Modified
2026-03-11T07:53:29.918942Z
Summary
drm/amd/display: Fix out-of-bound accesses
Details

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

drm/amd/display: Fix out-of-bound accesses

[WHAT & HOW] hpostreamtolinkencodermapping has size MAXHPODP2ENCODERS(=4), but location can have size up to 6. As a result, it is necessary to check location against MAXHPODP2_ENCODERS.

Similiarly, dispcfgstream_location can be used as an array index which should be 0..5, so the ASSERT's conditions should be less without equal.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21985.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
36793d90d76f667d26c6dd025571481ee0c96abc
Fixed
9aedc776b11038f04f4641241bb7e877781e4aa4
Fixed
8adbb2a98b00926315fd513b5fe2596b5716b82d

Database specific

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