CVE-2025-21985

Source
https://nvd.nist.gov/vuln/detail/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-01T16:15:29Z
Modified
2025-08-09T20:01:26Z
Summary
[none]
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.

References

Affected packages