Skip to contentSkip to conversation

CVE-2026-53068: drm/komeda: fix integer overflow in AFBC framebuffer size check

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 24

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/komeda: fix integer overflow in AFBC framebuffer size check

The AFBC framebuffer size validation calculates the minimum required buffer size by adding the AFBC payload size to the framebuffer offset. This addition is performed without checking for integer overflow.

If the addition oveflows, the size check may incorrectly succed and allow userspace to provide an undersized drm_gem_object, potentially leading to out-of-bounds memory access.

Add usage of check_add_overflow() to safely compute the minimum required size and reject the framebuffer if an overflow is detected. This makes the AFBC size validation more robust against malformed.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

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

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

	Issue introduced in 5.3 with commit 65ad2392dd6d1691db93e82b08d3311298b9d64a and fixed in 5.10.258 with commit a3a2a9bdc0f9c2d863a5a290cb2d4a565f7268e7
	Issue introduced in 5.3 with commit 65ad2392dd6d1691db93e82b08d3311298b9d64a and fixed in 5.15.209 with commit e27b58095d7d3ac72f230e318838dee956258460
	Issue introduced in 5.3 with commit 65ad2392dd6d1691db93e82b08d3311298b9d64a and fixed in 6.1.175 with commit 02ff8a7d3d0eecc546b9ab4c07b3d7c65d485583
	Issue introduced in 5.3 with commit 65ad2392dd6d1691db93e82b08d3311298b9d64a and fixed in 6.6.141 with commit d8a541906860aa3519b1874780d933c766918a7c
	Issue introduced in 5.3 with commit 65ad2392dd6d1691db93e82b08d3311298b9d64a and fixed in 6.12.91 with commit 8165e8b28fdf392c2c7412518d602b4f193812a8
	Issue introduced in 5.3 with commit 65ad2392dd6d1691db93e82b08d3311298b9d64a and fixed in 6.18.33 with commit fe1f80f8f6e8611ac6349b9d464e8750443390cf
	Issue introduced in 5.3 with commit 65ad2392dd6d1691db93e82b08d3311298b9d64a and fixed in 7.0.10 with commit 872d923b852705054bc099af663da862fdc1097d
	Issue introduced in 5.3 with commit 65ad2392dd6d1691db93e82b08d3311298b9d64a and fixed in 7.1 with commit 779ec12c85c9e4547519e3903a371a3b26a289de

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-53068

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/arm/display/komeda/komeda_framebuffer.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/a3a2a9bdc0f9c2d863a5a290cb2d4a565f7268e7
	https://git.kernel.org/stable/c/e27b58095d7d3ac72f230e318838dee956258460
	https://git.kernel.org/stable/c/02ff8a7d3d0eecc546b9ab4c07b3d7c65d485583
	https://git.kernel.org/stable/c/d8a541906860aa3519b1874780d933c766918a7c
	https://git.kernel.org/stable/c/8165e8b28fdf392c2c7412518d602b4f193812a8
	https://git.kernel.org/stable/c/fe1f80f8f6e8611ac6349b9d464e8750443390cf
	https://git.kernel.org/stable/c/872d923b852705054bc099af663da862fdc1097d
	https://git.kernel.org/stable/c/779ec12c85c9e4547519e3903a371a3b26a289de