drm/amd/display: Use krealloc_array() in dal_vector_reserve()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.260, 5.15.210, 6.1.176, 6.6.143, 6.12.94, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
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)
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 2004f45ef83f07f43f5da6ede780b08068c7583d · fixed in 9540b0a4d13e4ede64ae1197d66a176d2149daa9; From 2004f45ef83f07f43f5da6ede780b08068c7583d · fixed in 31180638a33acad12c863132704a76536fb66211; From 2004f45ef83f07f43f5da6ede780b08068c7583d · fixed in b15825deac1acff72638bbc8f05b89ceef8dfb13; From 2004f45ef83f07f43f5da6ede780b08068c7583d · fixed in 201151e120f0062bcda21cad5d007b82725ad23b; From 2004f45ef83f07f43f5da6ede780b08068c7583d · fixed in a914aa802669e073f014dae2e5708633b5cecd34; From 2004f45ef83f07f43f5da6ede780b08068c7583d · fixed in e09689286385a66311ac6922af95339d7a3cef8d; From 2004f45ef83f07f43f5da6ede780b08068c7583d · fixed in de988c7a31f0774f07894cfe4802996f318e2870; From 2004f45ef83f07f43f5da6ede780b08068c7583d · fixed in da48bc4461b8a5ebfb9264c9b191a701d8e99009
- Linux Linux
4.15
- KernelLinux
From 4.15.0 · fixed in 5.10.260; From 5.11.0 · fixed in 5.15.210; From 5.16.0 · fixed in 6.1.176; From 6.2.0 · fixed in 6.6.143; From 6.7.0 · fixed in 6.12.94; From 6.13.0 · fixed in 6.18.36; From 6.19.0 · fixed in 7.0.13
References 8
git.kernel.org
- stable/c/9540b0a4d13e4ede64ae1197d66a176d2149daa9
- stable/c/31180638a33acad12c863132704a76536fb66211
- stable/c/b15825deac1acff72638bbc8f05b89ceef8dfb13
- stable/c/201151e120f0062bcda21cad5d007b82725ad23b
- stable/c/a914aa802669e073f014dae2e5708633b5cecd34
- stable/c/e09689286385a66311ac6922af95339d7a3cef8d
- stable/c/de988c7a31f0774f07894cfe4802996f318e2870
- stable/c/da48bc4461b8a5ebfb9264c9b191a701d8e99009