Skip to contentSkip to conversation

CVE-2026-46216: drm/xe/hdcp: Add NULL check for media_gt in intel_hdcp_gsc_check_status()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 28

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/xe/hdcp: Add NULL check for media_gt in intel_hdcp_gsc_check_status()

When media GT is disabled via configfs, there is no allocation for media_gt, which is kept as NULL. In such scenario, intel_hdcp_gsc_check_status() results in a kernel pagefault error due to &gt->uc.gsc being evaluated as an invalid memory address.

Fix that by introducing a NULL check on media_gt and bailing out early if so.

While at it, also drop the NULL check for gsc, since it can't be NULL if media_gt is not NULL.

v2:
- Get address for gsc only after checking that gt is not NULL. (Shuicheng)
- Drop the NULL check for gsc. (Shuicheng)
v3:
- Add "Fixes" and "Cc: <stable...>" tags. (Matt)

(cherry picked from commit bfaf87e84ca3ca3f6e275f9ae56da47a8b55ffd1)

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

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

	Issue introduced in 6.10 with commit 4af50beb4e0f9e6aed9cd53436c099f1dba826f1 and fixed in 7.0.9 with commit d8ab4b47edf4578dbfbe5e95817107a514fa34cc
	Issue introduced in 6.10 with commit 4af50beb4e0f9e6aed9cd53436c099f1dba826f1 and fixed in 7.1-rc3 with commit 60a1e131a811b68703da58fd805ab359b704ab03

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

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/xe/display/xe_hdcp_gsc.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/d8ab4b47edf4578dbfbe5e95817107a514fa34cc
	https://git.kernel.org/stable/c/60a1e131a811b68703da58fd805ab359b704ab03