drm/amd/display: Fix NULL deref and buffer over-read in SDP debugfs (Linux Linux)

CVE-2026-53135
MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Fix NULL deref and buffer over-read in SDP debugfs [Why & How] dp_sdp_message_debugfs_write() dereferences connector->base.state->crtc without checking for NULL. A connector can be connected but not bound to any CRTC (e.g. after hot-plug before the next atomic commit), causing a kernel crash when writing to the sdp_message debugfs node. The function also ignores the user-provided size argument and always passes 36 bytes to copy_from_user(), reading past the user buffer when size < 36. Fix both issues by: - Returning -ENODEV when connector->base.state or state->crtc is NULL - Clamping write_size to min(size, sizeof(data)) (cherry picked from commit 6ab4c36a522842ff70474a1c0af2e40e50fc8300)

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 c7ba3653e9773256b2b08508a2ed2ca28ea7566b < ee9cfcf77a8e8af637396dc00966df5f701e661c ; affected c7ba3653e9773256b2b08508a2ed2ca28ea7566b < b781f90a9528555c709e59789550893581ef0be4 ; affected c7ba3653e9773256b2b08508a2ed2ca28ea7566b < a2de1d71891a038a9346b2c1a72b88c8350f2479 ; affected c7ba3653e9773256b2b08508a2ed2ca28ea7566b < 7fc4fab4acc307ad2903312c195872b2953d32c3 ; affected c7ba3653e9773256b2b08508a2ed2ca28ea7566b < 7ae95c0275c330b5dbae806f8e431720edad776f ; affected c7ba3653e9773256b2b08508a2ed2ca28ea7566b < bb6f705b73b5f191f14ad004e2c8c4b615806187
Linux · Linuxaffected 5.2 ; unaffected 0 < 5.2 ; unaffected 5.10.259 ≤ 5.10.* ; unaffected 5.15.210 ≤ 5.15.* ; unaffected 6.1.176 ≤ 6.1.* ; unaffected 6.6.143 ≤ 6.6.*

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