CVE-2024-49913
JSON

5.5medium

drm/amd/display: Add null check for top_pipe_to_program in commit_planes_for_stream

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.25% (higher than 17% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add null check for top_pipe_to_program in commit_planes_for_stream This commit addresses a null pointer dereference issue in the `commit_planes_for_stream` function at line 4140. The issue could occur when `top_pipe_to_program` is null. The fix adds a check to ensure `top_pipe_to_program` is not null before accessing its stream_res. This prevents a null pointer dereference. Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:4140 commit_planes_for_stream() error: we previously assumed 'top_pipe_to_program' could be null (see line 3906)

Affected

Product or packageVersionsReported by
Linux Linuxfrom 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 1ebfa6663807c144be8c8b6727375012409d2356, from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 8ab59527852a6f7780aad6185729550ca0569122, from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 40193ff73630adf76bc0d82398f7d90fb576dba4, from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before e47e563c6f0db7d792a559301862c19ead0dfc2f, from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 3929e382e4758aff42da0102a60d13337c99d3b8, from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 73efd2a611b62fee71a7b7f27d9d08bb60da8a72, from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 66d71a72539e173a9b00ca0b1852cbaa5f5bf1ad, 4.15
Not affected: before 4.15, from 5.10.227 up to 5.10.*, from 5.15.168 up to 5.15.*, from 6.1.113 up to 6.1.*, from 6.6.55 up to 6.6.*, from 6.10.14 up to 6.10.*
CVE List
linux linux_kernelbefore 5.10.227, from 5.11 before 5.15.168, from 5.16 before 6.1.113, from 6.2 before 6.6.55, from 6.7 before 6.10.14, from 6.11 before 6.11.3NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add null check for top_pipe_to_program in commit_planes_for_stream This commit addresses a null pointer dereference issue in the `commit_planes_for_stream` function at line 4140. The issue could occur when `top_pipe_to_program` is null. The fix adds a check to ensure `top_pipe_to_program` is not null before accessing its stream_res. This prevents a null pointer dereference. Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:4140 commit_planes_for_stream() error: we previously assumed 'top_pipe_to_program' could be null (see line 3906)

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/amd/display: Agregar comprobación NULL para top_pipe_to_program en commit_planes_for_stream Esta confirmación soluciona un problema de desreferencia de puntero nulo en la función `commit_planes_for_stream` en la línea 4140. El problema podría ocurrir cuando `top_pipe_to_program` es nulo. La corrección agrega una comprobación para garantizar que `top_pipe_to_program` no sea nulo antes de acceder a su stream_res. Esto evita una desreferencia de puntero nulo. Reportado por smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:4140 Error de commit_planes_for_stream(): anteriormente asumimos que 'top_pipe_to_program' podría ser nulo (consulte la línea 3906)

References

Sources

SourceRecordLicence
CVE ListCVE-2024-49913 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-49913 changed 2026-06-17Public domain