CVE-2026-64516: drm/amdgpu/vce1: Fix VCE 1 firmware size and offsets

Greg Kroah-Hartman <[email protected]> Sat, 25 Jul 2026 11:13:37 +0200
Newsgroups org.kernel.vger.linux-cve-announce
Message-ID <2026072537-CVE-2026-64516-a645@gregkh>
From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

drm/amdgpu/vce1: Fix VCE 1 firmware size and offsets

The VCPU BO contains the actual FW at an offset, but
it was not calculated into the VCPU BO size.
Subtract this from the FW size to make sure there is
no out of bounds access.

Make sure the stack and data offsets are aligned to
the 32K TLB size.

Check that the FW microcode actually fits in the
space that is reserved for it.

(cherry picked from commit c16fe59f622a080fc457a57b3e8f14c780699449)

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


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

	Issue introduced in 6.19 with commit d4a640d4b9f34aa9472c71986ef4b5a42dbe4f0f and fixed in 7.0.11 with commit ce0de178ef08408f6ba8f2e9a13bf52fbe5852f4
	Issue introduced in 6.19 with commit d4a640d4b9f34aa9472c71986ef4b5a42dbe4f0f and fixed in 7.1 with commit 3e5a1d5bb2ff061e64c7992f8e5404dfd4c2d0f3

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-64516
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/amdgpu/vce_v1_0.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/ce0de178ef08408f6ba8f2e9a13bf52fbe5852f4
	https://git.kernel.org/stable/c/3e5a1d5bb2ff061e64c7992f8e5404dfd4c2d0f3