drm/xe/hdcp: Add NULL check for media_gt in intel_hdcp_gsc_check_status() (Linux Linux)

CVE-2026-46216
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.13 % · percentile 2 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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)

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 4af50beb4e0f9e6aed9cd53436c099f1dba826f1 < cad210d2851f3a7d9573bdfc02aa61d9287bbe8c ; affected 4af50beb4e0f9e6aed9cd53436c099f1dba826f1 < 814326e86e929b865020ff44f4576dbdfe3f7ff3 ; affected 4af50beb4e0f9e6aed9cd53436c099f1dba826f1 < d8ab4b47edf4578dbfbe5e95817107a514fa34cc ; affected 4af50beb4e0f9e6aed9cd53436c099f1dba826f1 < 60a1e131a811b68703da58fd805ab359b704ab03
Linux · Linuxaffected 6.10 ; unaffected 0 < 6.10 ; unaffected 6.12.92 ≤ 6.12.* ; unaffected 6.18.34 ≤ 6.18.* ; unaffected 7.0.9 ≤ 7.0.* ; unaffected 7.1 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD