Bug 1227723 (CVE-2024-39498)

Summary: VUL-0: CVE-2024-39498: kernel: drm/mst: fix NULL pointer dereference at drm_dp_add_payload_part2
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: IN_PROGRESS --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: camila.matos, miroslav.franc, patrik.jakobsson, tiwai, tzimmermann
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/413813/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-39498:5.5:(AV:L/AC:L/PR:L/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-07-12 17:50:18 UTC
In the Linux kernel, the following vulnerability has been resolved:

drm/mst: Fix NULL pointer dereference at drm_dp_add_payload_part2

[Why]
Commit:
- commit 5aa1dfcdf0a4 ("drm/mst: Refactor the flow for payload allocation/removement")
accidently overwrite the commit
- commit 54d217406afe ("drm: use mgr->dev in drm_dbg_kms in drm_dp_add_payload_part2")
which cause regression.

[How]
Recover the original NULL fix and remove the unnecessary input parameter 'state' for
drm_dp_add_payload_part2().

(cherry picked from commit 4545614c1d8da603e57b60dd66224d81b6ffc305)

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-39498
https://www.cve.org/CVERecord?id=CVE-2024-39498
https://git.kernel.org/stable/c/5a507b7d2be15fddb95bf8dee01110b723e2bcd9
https://git.kernel.org/stable/c/8e21de5f99b2368a5155037ce0aae8aaba3f5241
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-39498.mbox