CVE-2026-68242: drm/i915/gt: Fix NULL deref on sched_engine alloc failure

Greg Kroah-Hartman <[email protected]>
Newsgroups org.kernel.vger.linux-cve-announce
Message-ID <2026081019-CVE-2026-68242-dcfa@gregkh>
From: Greg Kroah-Hartman <[email protected]>

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

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

drm/i915/gt: Fix NULL deref on sched_engine alloc failure

Avoid using intel_context_put() before intel_context_init() in
execlists_create_virtual() as the kref_put() inside would lead
to NULL deref on the IOCTL path when sched_engine allocation fails.

Discovered using AI-assisted static analysis confirmed by
Intel Product Security.

(cherry picked from commit 4f2a12f2d50e9f48227656e4dcbd6423506be31d)

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


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

	Issue introduced in 5.15 with commit 3e28d37146db5dd49c469bc62a93ca791067d391 and fixed in 7.1.6 with commit edd4804f07b8369ed472de19272974e2bf2a6271
	Issue introduced in 5.15 with commit 3e28d37146db5dd49c469bc62a93ca791067d391 and fixed in 7.2-rc3 with commit 82ec992c404c3dc774c5e9f3d4aa858e97187675

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-68242
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/gt/intel_execlists_submission.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/edd4804f07b8369ed472de19272974e2bf2a6271
	https://git.kernel.org/stable/c/82ec992c404c3dc774c5e9f3d4aa858e97187675
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.