CVE-2024-49918 – drm/amd/display: Add null check for head_pipe in dcn32_acquire_idle_pipe_for_head_pipe_in_layer
https://notcve.org/view.php?id=CVE-2024-49918
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add null check for head_pipe in dcn32_acquire_idle_pipe_for_head_pipe_in_layer This commit addresses a potential null pointer dereference issue in the `dcn32_acquire_idle_pipe_for_head_pipe_in_layer` function. The issue could occur when `head_pipe` is null. The fix adds a check to ensure `head_pipe` is not null before asserting it. If `head_pipe` is null, the function returns NULL to prevent a potential null pointer dereference. Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/resource/dcn32/dcn32_resource.c:2690 dcn32_acquire_idle_pipe_for_head_pipe_in_layer() error: we previously assumed 'head_pipe' could be null (see line 2681) • https://git.kernel.org/stable/c/4f47292f488fa7041284dca1f1244116c18721f1 https://git.kernel.org/stable/c/96d4c2ee18d732a248d053aae8c4a27cb1d68d1c https://git.kernel.org/stable/c/ac2140449184a26eac99585b7f69814bd3ba8f2d •
CVE-2024-49917 – drm/amd/display: Add NULL check for clk_mgr and clk_mgr->funcs in dcn30_init_hw
https://notcve.org/view.php?id=CVE-2024-49917
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add NULL check for clk_mgr and clk_mgr->funcs in dcn30_init_hw This commit addresses a potential null pointer dereference issue in the `dcn30_init_hw` function. The issue could occur when `dc->clk_mgr` or `dc->clk_mgr->funcs` is null. The fix adds a check to ensure `dc->clk_mgr` and `dc->clk_mgr->funcs` is not null before accessing its functions. This prevents a potential null pointer dereference. Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn30/dcn30_hwseq.c:789 dcn30_init_hw() error: we previously assumed 'dc->clk_mgr' could be null (see line 628) • https://git.kernel.org/stable/c/5443c83eb8fd2f88c71ced38848fbf744d6206a2 https://git.kernel.org/stable/c/56c326577971adc3a230f29dfd3aa3abdd505f5d https://git.kernel.org/stable/c/cba7fec864172dadd953daefdd26e01742b71a6a •
CVE-2024-49916 – drm/amd/display: Add NULL check for clk_mgr and clk_mgr->funcs in dcn401_init_hw
https://notcve.org/view.php?id=CVE-2024-49916
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add NULL check for clk_mgr and clk_mgr->funcs in dcn401_init_hw This commit addresses a potential null pointer dereference issue in the `dcn401_init_hw` function. The issue could occur when `dc->clk_mgr` or `dc->clk_mgr->funcs` is null. The fix adds a check to ensure `dc->clk_mgr` and `dc->clk_mgr->funcs` is not null before accessing its functions. This prevents a potential null pointer dereference. Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn401/dcn401_hwseq.c:416 dcn401_init_hw() error: we previously assumed 'dc->clk_mgr' could be null (see line 225) • https://git.kernel.org/stable/c/ac1c41e318074d8a9ea925787e366be15d7645e8 https://git.kernel.org/stable/c/4b6377f0e96085cbec96eb7f0b282430ccdd3d75 •
CVE-2024-49915 – drm/amd/display: Add NULL check for clk_mgr in dcn32_init_hw
https://notcve.org/view.php?id=CVE-2024-49915
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add NULL check for clk_mgr in dcn32_init_hw This commit addresses a potential null pointer dereference issue in the `dcn32_init_hw` function. The issue could occur when `dc->clk_mgr` is null. The fix adds a check to ensure `dc->clk_mgr` is not null before accessing its functions. This prevents a potential null pointer dereference. Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn32/dcn32_hwseq.c:961 dcn32_init_hw() error: we previously assumed 'dc->clk_mgr' could be null (see line 782) • https://git.kernel.org/stable/c/f0454b3cb0584a6bf275aeb49be61a760fd546a2 https://git.kernel.org/stable/c/7d1854c86d02cea8f8a0c0ca05f4ab14292baf3d https://git.kernel.org/stable/c/c395fd47d1565bd67671f45cca281b3acc2c31ef •
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 •