drm/amd/display: Use krealloc_array() in dal_vector_reserve() (Linux Linux)

CVE-2026-53329
HIGH 7.0

En bref

Source
NVD
EPSS
EPSS 0.15 % · centile 4 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Use krealloc_array() in dal_vector_reserve() [Why & How] dal_vector_reserve() computes the allocation size as "capacity * vector->struct_size" using uint32_t arithmetic, which can silently wrap to a small value on overflow. This would cause krealloc to return a smaller buffer than expected, leading to heap overflows on subsequent vector appends. Replace krealloc() with krealloc_array() which performs an internal overflow check and returns NULL on wrap, preventing the issue. (cherry picked from commit 37668568641ccc4cc1dbca4923d0a16609dd5707)

Faiblesses (CWE)

  • CWE-190 — Débordement d'entier
  • CWE-674 — Récursion non maîtrisée

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 7.0CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.0CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected 2004f45ef83f07f43f5da6ede780b08068c7583d < 9540b0a4d13e4ede64ae1197d66a176d2149daa9 ; affected 2004f45ef83f07f43f5da6ede780b08068c7583d < 31180638a33acad12c863132704a76536fb66211 ; affected 2004f45ef83f07f43f5da6ede780b08068c7583d < b15825deac1acff72638bbc8f05b89ceef8dfb13 ; affected 2004f45ef83f07f43f5da6ede780b08068c7583d < 201151e120f0062bcda21cad5d007b82725ad23b ; affected 2004f45ef83f07f43f5da6ede780b08068c7583d < a914aa802669e073f014dae2e5708633b5cecd34 ; affected 2004f45ef83f07f43f5da6ede780b08068c7583d < e09689286385a66311ac6922af95339d7a3cef8d
Linux · Linuxaffected 4.15 ; unaffected 0 < 4.15 ; unaffected 5.10.260 ≤ 5.10.* ; unaffected 5.15.210 ≤ 5.15.* ; unaffected 6.1.176 ≤ 6.1.* ; unaffected 6.6.143 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD