CVE-2024-49914 – drm/amd/display: Add null check for pipe_ctx->plane_state in dcn20_program_pipe
https://notcve.org/view.php?id=CVE-2024-49914
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add null check for pipe_ctx->plane_state in dcn20_program_pipe This commit addresses a null pointer dereference issue in the `dcn20_program_pipe` function. The issue could occur when `pipe_ctx->plane_state` is null. The fix adds a check to ensure `pipe_ctx->plane_state` is not null before accessing. This prevents a null pointer dereference. Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn20/dcn20_hwseq.c:1925 dcn20_program_pipe() error: we previously assumed 'pipe_ctx->plane_state' could be null (see line 1877) • https://git.kernel.org/stable/c/65a6fee22d5cfa645cb05489892dc9cd3d142fc2 https://git.kernel.org/stable/c/8e4ed3cf1642df0c4456443d865cff61a9598aa8 •
CVE-2024-49913 – drm/amd/display: Add null check for top_pipe_to_program in commit_planes_for_stream
https://notcve.org/view.php?id=CVE-2024-49913
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) • https://git.kernel.org/stable/c/1ebfa6663807c144be8c8b6727375012409d2356 https://git.kernel.org/stable/c/8ab59527852a6f7780aad6185729550ca0569122 https://git.kernel.org/stable/c/40193ff73630adf76bc0d82398f7d90fb576dba4 https://git.kernel.org/stable/c/e47e563c6f0db7d792a559301862c19ead0dfc2f https://git.kernel.org/stable/c/3929e382e4758aff42da0102a60d13337c99d3b8 https://git.kernel.org/stable/c/73efd2a611b62fee71a7b7f27d9d08bb60da8a72 https://git.kernel.org/stable/c/66d71a72539e173a9b00ca0b1852cbaa5f5bf1ad •
CVE-2024-49912 – drm/amd/display: Handle null 'stream_status' in 'planes_changed_for_existing_stream'
https://notcve.org/view.php?id=CVE-2024-49912
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) • https://git.kernel.org/stable/c/c4b699b93496c423b0e5b584d4eb4ab849313bcf https://git.kernel.org/stable/c/4778982c73d6c9f3fdbdbc6b6c8aa18df98251af https://git.kernel.org/stable/c/ec6c32b58e6c4e87760e797c525e99a460c82bcb https://git.kernel.org/stable/c/0ffd9fb03bbc99ed1eb5dc989d5c7da2faac0659 https://git.kernel.org/stable/c/8141f21b941710ecebe49220b69822cab3abd23d •
CVE-2024-49911 – drm/amd/display: Add NULL check for function pointer in dcn20_set_output_transfer_func
https://notcve.org/view.php?id=CVE-2024-49911
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add NULL check for function pointer in dcn20_set_output_transfer_func This commit adds a null check for the set_output_gamma function pointer in the dcn20_set_output_transfer_func function. Previously, set_output_gamma was being checked for null at line 1030, but then it was being dereferenced without any null check at line 1048. This could potentially lead to a null pointer dereference error if set_output_gamma is null. To fix this, we now ensure that set_output_gamma is not null before dereferencing it. We do this by adding a null check for set_output_gamma before the call to set_output_gamma at line 1048. • https://git.kernel.org/stable/c/02411e9359297512946705b1cd8cf5e6b0806fa0 https://git.kernel.org/stable/c/827380b114f83c30b3e56d1a675980b6d65f7c88 https://git.kernel.org/stable/c/62ed6f0f198da04e884062264df308277628004f •
CVE-2024-49910 – drm/amd/display: Add NULL check for function pointer in dcn401_set_output_transfer_func
https://notcve.org/view.php?id=CVE-2024-49910
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add NULL check for function pointer in dcn401_set_output_transfer_func This commit adds a null check for the set_output_gamma function pointer in the dcn401_set_output_transfer_func function. Previously, set_output_gamma was being checked for null, but then it was being dereferenced without any null check. This could lead to a null pointer dereference if set_output_gamma is null. To fix this, we now ensure that set_output_gamma is not null before dereferencing it. We do this by adding a null check for set_output_gamma before the call to set_output_gamma. • https://git.kernel.org/stable/c/d8ee900b92b6526cf84275b49a473155ad75c70e https://git.kernel.org/stable/c/dd340acd42c24a3f28dd22fae6bf38662334264c •