Skip to contentSkip to conversation

CVE-2026-99006: drm/i915/gem: Prevent overstepping exec array boundary

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 23

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/i915/gem: Prevent overstepping exec array boundary

It is possible for eb_relocate_parse_slow() to call kvfree() on entries outside the original exec array during following scenario inside eb_relocate_parse_slow():

1) eb_copy_relocations() allocates as many as eb->buffer_count copies for exec entries;
2) eb_parse() appends up to two VMAs, right after incrementing eb->buffer_count;
3) cleanup under "out" label uses this incremented buffer_count to release relocation pointers from exec array via kvfree(), not from VMA array.

To amend this problem, ensure that relocation cleanup uses the original exec object count, excluding the VMAs appended by the command parser.

(cherry picked from commit 2a0158925fb943c7ba8f3216e2734952128defc9)

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

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

	Issue introduced in 5.10 with commit 8e4ba491b0ba6fef69270d3c4e48fc517096ef41 and fixed in 6.6.160 with commit 24c04e80c35ff36947366f6deafddb522eea080c
	Issue introduced in 5.10 with commit 8e4ba491b0ba6fef69270d3c4e48fc517096ef41 and fixed in 6.12.113 with commit b1c357131fc467c579f65e9a9d1fdc1a6273ae1d
	Issue introduced in 5.10 with commit 8e4ba491b0ba6fef69270d3c4e48fc517096ef41 and fixed in 6.18.57 with commit 152fb5083b9333a1cb8629572f9e0f276a404ba6
	Issue introduced in 5.10 with commit 8e4ba491b0ba6fef69270d3c4e48fc517096ef41 and fixed in 7.2.11 with commit 72d5cbb10d4916a3f8ef9da516c5c0634aca8439
	Issue introduced in 5.10 with commit 8e4ba491b0ba6fef69270d3c4e48fc517096ef41 and fixed in 7.3 with commit ebe162db655881a38de43301151ff7ac940602b5

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

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/i915/gem/i915_gem_execbuffer.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/24c04e80c35ff36947366f6deafddb522eea080c
	https://git.kernel.org/stable/c/b1c357131fc467c579f65e9a9d1fdc1a6273ae1d
	https://git.kernel.org/stable/c/152fb5083b9333a1cb8629572f9e0f276a404ba6
	https://git.kernel.org/stable/c/72d5cbb10d4916a3f8ef9da516c5c0634aca8439
	https://git.kernel.org/stable/c/ebe162db655881a38de43301151ff7ac940602b5