CVE-2024-49920 – drm/amd/display: Check null pointers before multiple uses
https://notcve.org/view.php?id=CVE-2024-49920
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Check null pointers before multiple uses [WHAT & HOW] Poniters, such as stream_enc and dc->bw_vbios, are null checked previously in the same function, so Coverity warns "implies that stream_enc and dc->bw_vbios might be null". They are used multiple times in the subsequent code and need to be checked. This fixes 10 FORWARD_NULL issues reported by Coverity. • https://git.kernel.org/stable/c/26787fb6c2b2ee0d1a7e1574b36f4711ae40fe27 https://git.kernel.org/stable/c/fdd5ecbbff751c3b9061d8ebb08e5c96119915b4 •
CVE-2024-49919 – drm/amd/display: Add null check for head_pipe in dcn201_acquire_free_pipe_for_layer
https://notcve.org/view.php?id=CVE-2024-49919
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add null check for head_pipe in dcn201_acquire_free_pipe_for_layer This commit addresses a potential null pointer dereference issue in the `dcn201_acquire_free_pipe_for_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/dcn201/dcn201_resource.c:1016 dcn201_acquire_free_pipe_for_layer() error: we previously assumed 'head_pipe' could be null (see line 1010) • https://git.kernel.org/stable/c/390d757621f5f35d11a63ed7d9d3262ead240064 https://git.kernel.org/stable/c/8a1b1655a490a492a5a6987254c935ecce4eb9de https://git.kernel.org/stable/c/f22f4754aaa47d8c59f166ba3042182859e5dff7 •
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 •