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.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21985.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21985.json"
[
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9aedc776b11038f04f4641241bb7e877781e4aa4",
"target": {
"function": "dml21_map_dc_state_into_dml_display_cfg",
"file": "drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.c"
},
"id": "CVE-2025-21985-1b26ba0f",
"signature_version": "v1",
"digest": {
"function_hash": "122412977014244285900934781755173685172",
"length": 3312.0
}
},
{
"signature_type": "Function",
"id": "CVE-2025-21985-b2ad542e",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9aedc776b11038f04f4641241bb7e877781e4aa4",
"deprecated": false,
"signature_version": "v1",
"target": {
"function": "populate_dml_output_cfg_from_stream_state",
"file": "drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c"
},
"digest": {
"function_hash": "39094840287275881572169778394813395297",
"length": 3030.0
}
},
{
"signature_type": "Function",
"id": "CVE-2025-21985-b72c68d0",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9aedc776b11038f04f4641241bb7e877781e4aa4",
"signature_version": "v1",
"target": {
"function": "map_dc_state_into_dml_display_cfg",
"file": "drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c"
},
"deprecated": false,
"digest": {
"function_hash": "268935313131308889637982485578304801247",
"length": 5644.0
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9aedc776b11038f04f4641241bb7e877781e4aa4",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c"
},
"id": "CVE-2025-21985-d0722a3b",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"339739865176976784866709956321697718713",
"32852756141407062907605967716254374598",
"254311382076465062806316049666979150999",
"118057803952458377685111172913672426856",
"97891234608647165886891821187609666377",
"164501767684305016486224984036966823142",
"14797367903553444923684795115879730797",
"90223217137167547367061772612096729209",
"116530111518036636389834318931168513568",
"327089466627034068321886269907714729623",
"188024409797914448205443242840816154574",
"243315400538307574458137927231057425163"
]
}
},
{
"signature_type": "Line",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9aedc776b11038f04f4641241bb7e877781e4aa4",
"id": "CVE-2025-21985-da91ec0e",
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"148012881884539589451016793322557729633",
"185452331473314450461681333590192456142",
"53513010122954208361604198399481707251",
"101453661288003526624768626349103375951",
"178449052245558425558113777530795694382",
"178347766693079972293213283675041561711",
"9479120853192589723518513983966216482",
"242058457379009194060535208306231132059"
]
}
}
]