Skip to contentSkip to conversation

CVE-2026-53329: drm/amd/display: Use krealloc_array() in dal_vector_reserve()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 1

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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)

The Linux kernel CVE team has assigned CVE-2026-53329 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.15 with commit 2004f45ef83f07f43f5da6ede780b08068c7583d and fixed in 5.15.210 with commit 31180638a33acad12c863132704a76536fb66211
	Issue introduced in 4.15 with commit 2004f45ef83f07f43f5da6ede780b08068c7583d and fixed in 6.1.176 with commit b15825deac1acff72638bbc8f05b89ceef8dfb13
	Issue introduced in 4.15 with commit 2004f45ef83f07f43f5da6ede780b08068c7583d and fixed in 6.6.143 with commit 201151e120f0062bcda21cad5d007b82725ad23b
	Issue introduced in 4.15 with commit 2004f45ef83f07f43f5da6ede780b08068c7583d and fixed in 6.12.94 with commit a914aa802669e073f014dae2e5708633b5cecd34
	Issue introduced in 4.15 with commit 2004f45ef83f07f43f5da6ede780b08068c7583d and fixed in 6.18.36 with commit e09689286385a66311ac6922af95339d7a3cef8d
	Issue introduced in 4.15 with commit 2004f45ef83f07f43f5da6ede780b08068c7583d and fixed in 7.0.13 with commit de988c7a31f0774f07894cfe4802996f318e2870
	Issue introduced in 4.15 with commit 2004f45ef83f07f43f5da6ede780b08068c7583d and fixed in 7.1 with commit da48bc4461b8a5ebfb9264c9b191a701d8e99009

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-53329

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/gpu/drm/amd/display/dc/basics/vector.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/31180638a33acad12c863132704a76536fb66211
	https://git.kernel.org/stable/c/b15825deac1acff72638bbc8f05b89ceef8dfb13
	https://git.kernel.org/stable/c/201151e120f0062bcda21cad5d007b82725ad23b
	https://git.kernel.org/stable/c/a914aa802669e073f014dae2e5708633b5cecd34
	https://git.kernel.org/stable/c/e09689286385a66311ac6922af95339d7a3cef8d
	https://git.kernel.org/stable/c/de988c7a31f0774f07894cfe4802996f318e2870
	https://git.kernel.org/stable/c/da48bc4461b8a5ebfb9264c9b191a701d8e99009