CVE-2026-68107: drm/amdgpu/vcn4: avoid rereading IB param length
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu/vcn4: avoid rereading IB param length
Reuse the parameter length returned by vcn_v4_0_enc_find_ib_param() instead of rereading it from the IB.
This avoids a potential TOCTOU issue if the IB contents change between reads.
(cherry picked from commit dbb02b4755f8c1f3773263f2d779872c1c0c073a)
The Linux kernel CVE team has assigned CVE-2026-68107 to this issue.
Affected and fixed versions
===========================
Fixed in 6.6.148 with commit bbbe6a2a8d8dc87243438d3ffea2083b52d882d9 Fixed in 6.12.101 with commit ff6aa542d91d76a185f69bd1997b94a560ff5f6b Fixed in 6.18.42 with commit bd868c077f67589ed2a714307ceaade5f246e302 Fixed in 7.1.6 with commit c309626bf91fa0a0b583575654e6e14e81f818a3 Fixed in 7.2-rc2 with commit 3b4082fabc67c9780b06eb959e59dd92fa79c0f0
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-68107
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/vcn_v4_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/bbbe6a2a8d8dc87243438d3ffea2083b52d882d9 https://git.kernel.org/stable/c/ff6aa542d91d76a185f69bd1997b94a560ff5f6b https://git.kernel.org/stable/c/bd868c077f67589ed2a714307ceaade5f246e302 https://git.kernel.org/stable/c/c309626bf91fa0a0b583575654e6e14e81f818a3 https://git.kernel.org/stable/c/3b4082fabc67c9780b06eb959e59dd92fa79c0f0