CVE Catalog

CVE-2025-21985

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.18%

8th percentile - higher than 8% of all known CVEs

Summary

In the AMD graphics driver (drm/amd/display) in the Linux kernel, out-of-bounds access bugs were found. The hpo_stream_to_link_encoder_mapping array has size MAX_HPO_DP2_ENCODERS (4), but the location index can be up to 6. Similarly, disp_cfg_stream_location index can be used out of bounds.

Risk Assessment

Out-of-bounds array access can lead to reading or writing unintended memory areas, potentially resulting in system crash, information leak, or privilege escalation.

Recommendation

Update the Linux kernel to a version containing the fix for CVE-2025-21985, which adds proper array bounds checks.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Fix out-of-bound accesses [WHAT & HOW] hpo_stream_to_link_encoder_mapping has size MAX_HPO_DP2_ENCODERS(=4), but location can have size up to 6. As a result, it is necessary to check location against MAX_HPO_DP2_ENCODERS. Similiarly, disp_cfg_stream_location can be used as an array index which should be 0..5, so the ASSERT's conditions should be less without equal.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS