Bug 1222067 (CVE-2024-26648)

Summary: VUL-0: CVE-2024-26648: kernel: drm/amd/display: variable deferencing before NULL check in edp_setup_replay()
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: RESOLVED FIXED QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: andrea.mattiazzo, carlos.lopez, gabriel.bertazi
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/399014/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-26648:4.4:(AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-03-27 11:59:34 UTC
In the Linux kernel, the following vulnerability has been resolved:

drm/amd/display: Fix variable deferencing before NULL check in edp_setup_replay()

In edp_setup_replay(), 'struct dc *dc' & 'struct dmub_replay *replay'
was dereferenced before the pointer 'link' & 'replay' NULL check.

Fixes the below:
drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_edp_panel_control.c:947 edp_setup_replay() warn: variable dereferenced before check 'link' (see line 933)

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-26648
https://www.cve.org/CVERecord?id=CVE-2024-26648
https://git.kernel.org/stable/c/22ae604aea14756954e1c00ae653e34d2afd2935
https://git.kernel.org/stable/c/7073934f5d73f8b53308963cee36f0d389ea857c
https://git.kernel.org/stable/c/c02d257c654191ecda1dc1af6875d527e85310e7
Comment 1 Carlos López 2024-03-27 12:01:20 UTC
Looks like this was introduced in c7ddc0a800bc ("drm/amd/display: Add Functions to enable Freesync Panel Replay"), so it's already fixed in SLE15-SP6-GA, and does not affect cve/linux-5.14-LTSS and older branches.
Comment 3 Gabriel Krisman Bertazi 2024-03-28 22:20:46 UTC
Reassigning to a concrete person to ensure progress [1] (feel free to pass to next one), see also the process at [2].
 
Patrik, could you please handle this?  Thanks!
 
[1] https://confluence.suse.com/display/KSS/Kernel+Security+Sentinel
[2] https://wiki.suse.net/index.php/SUSE-Labs/Kernel/Security
Comment 10 Patrik Jakobsson 2024-04-11 13:14:08 UTC
(In reply to Carlos López from comment #1)
> Looks like this was introduced in c7ddc0a800bc ("drm/amd/display: Add
> Functions to enable Freesync Panel Replay"), so it's already fixed in
> SLE15-SP6-GA, and does not affect cve/linux-5.14-LTSS and older branches.

This is correct. And metadata is updated for SLE15-SP6 branches. No further action required. Reassigning.