CVE-2024-49908 – drm/amd/display: Add null check for 'afb' in amdgpu_dm_update_cursor (v2)
https://notcve.org/view.php?id=CVE-2024-49908
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add null check for 'afb' in amdgpu_dm_update_cursor (v2) This commit adds a null check for the 'afb' variable in the amdgpu_dm_update_cursor function. Previously, 'afb' was assumed to be null at line 8388, but was used later in the code without a null check. This could potentially lead to a null pointer dereference. Changes since v1: - Moved the null check for 'afb' to the line where 'afb' is used. (Alex) Fixes the below: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:8433 amdgpu_dm_update_cursor() error: we previously assumed 'afb' could be null (see line 8388) • https://git.kernel.org/stable/c/a742168b6a39ead257da53bcbe472384d6e14a1b https://git.kernel.org/stable/c/0fe20258b4989b9112b5e9470df33a0939403fd4 •
CVE-2024-49907 – drm/amd/display: Check null pointers before using dc->clk_mgr
https://notcve.org/view.php?id=CVE-2024-49907
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Check null pointers before using dc->clk_mgr [WHY & HOW] dc->clk_mgr is null checked previously in the same function, indicating it might be null. Passing "dc" to "dc->hwss.apply_idle_power_optimizations", which dereferences null "dc->clk_mgr". (The function pointer resolves to "dcn35_apply_idle_power_optimizations".) This fixes 1 FORWARD_NULL issue reported by Coverity. • https://git.kernel.org/stable/c/8d54001f8dccd56146973f23f3ab2ba037a21251 https://git.kernel.org/stable/c/a545a9403e04c6e17fdc04a26a61d9feebbba106 https://git.kernel.org/stable/c/a2773e0a4b79e7a6463abdffaf8cc4f24428ba18 https://git.kernel.org/stable/c/9641bc4adf8446034e490ed543ae7e9833cfbdf5 https://git.kernel.org/stable/c/3f7e533c10db3d0158709a99e2129ff63add6bcd https://git.kernel.org/stable/c/5ba3fbf75b243b2863a8be9e7c393e003d3b88f3 https://git.kernel.org/stable/c/95d9e0803e51d5a24276b7643b244c7477daf463 •
CVE-2024-49906 – drm/amd/display: Check null pointer before try to access it
https://notcve.org/view.php?id=CVE-2024-49906
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Check null pointer before try to access it [why & how] Change the order of the pipe_ctx->plane_state check to ensure that plane_state is not null before accessing it. • https://git.kernel.org/stable/c/2002ccb93004e76a471b180560accb2c1f850f35 https://git.kernel.org/stable/c/1b686053c06ffb9f4524b288110cf2a831ff7a25 •
CVE-2024-49905 – drm/amd/display: Add null check for 'afb' in amdgpu_dm_plane_handle_cursor_update (v2)
https://notcve.org/view.php?id=CVE-2024-49905
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add null check for 'afb' in amdgpu_dm_plane_handle_cursor_update (v2) This commit adds a null check for the 'afb' variable in the amdgpu_dm_plane_handle_cursor_update function. Previously, 'afb' was assumed to be null, but was used later in the code without a null check. This could potentially lead to a null pointer dereference. Changes since v1: - Moved the null check for 'afb' to the line where 'afb' is used. (Alex) Fixes the below: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_plane.c:1298 amdgpu_dm_plane_handle_cursor_update() error: we previously assumed 'afb' could be null (see line 1252) • https://git.kernel.org/stable/c/bd0e24e5e608ccb9fdda300bb974496d6d8cf57d https://git.kernel.org/stable/c/75839e2365b666ff4e1b9047e442cab138eac4f6 https://git.kernel.org/stable/c/9132882eaae4d21d2fc5843b3308379a481ebdf0 https://git.kernel.org/stable/c/e4e26cbe34d7c1c1db5fb7b3101573c29866439f https://git.kernel.org/stable/c/cd9e9e0852d501f169aa3bb34e4b413d2eb48c37 •
CVE-2024-49904 – drm/amdgpu: add list empty check to avoid null pointer issue
https://notcve.org/view.php?id=CVE-2024-49904
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: add list empty check to avoid null pointer issue Add list empty check to avoid null pointer issues in some corner cases. - list_for_each_entry_safe() • https://git.kernel.org/stable/c/5ec731ef47f1dba34daad3e51a93de793f9319ac https://git.kernel.org/stable/c/8e87763946f708063d7e5303339598abbb8c5aac https://git.kernel.org/stable/c/4416377ae1fdc41a90b665943152ccd7ff61d3c5 •