drm/amd/display: Handle null 'stream_status' in 'planes_changed_for_existing_stream' (Linux Linux)

CVE-2024-49912
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.24 % · percentile 15 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Handle null 'stream_status' in 'planes_changed_for_existing_stream' This commit adds a null check for 'stream_status' in the function 'planes_changed_for_existing_stream'. Previously, the code assumed 'stream_status' could be null, but did not handle the case where it was actually null. This could lead to a null pointer dereference. Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:3784 planes_changed_for_existing_stream() error: we previously assumed 'stream_status' could be null (see line 3774)

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 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c < c4b699b93496c423b0e5b584d4eb4ab849313bcf ; affected 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c < 4778982c73d6c9f3fdbdbc6b6c8aa18df98251af ; affected 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c < ec6c32b58e6c4e87760e797c525e99a460c82bcb ; affected 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c < 0ffd9fb03bbc99ed1eb5dc989d5c7da2faac0659 ; affected 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c < 8141f21b941710ecebe49220b69822cab3abd23d
Linux · Linuxaffected 4.15 ; unaffected 0 < 4.15 ; unaffected 6.1.113 ≤ 6.1.* ; unaffected 6.6.55 ≤ 6.6.* ; unaffected 6.10.14 ≤ 6.10.* ; unaffected 6.11.3 ≤ 6.11.*

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