Bug 1222066 (CVE-2024-26647) - VUL-0: CVE-2024-26647: kernel: drm/amd/display: late derefrence 'dsc' check in 'link_set_dsc_pps_packet()'
Summary: VUL-0: CVE-2024-26647: kernel: drm/amd/display: late derefrence 'dsc' check i...
Status: RESOLVED FIXED
Alias: CVE-2024-26647
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/399013/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-26647:4.1:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-27 11:51 UTC by SMASH SMASH
Modified: 2024-06-25 18:23 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-03-27 11:51:58 UTC
In the Linux kernel, the following vulnerability has been resolved:

drm/amd/display: Fix late derefrence 'dsc' check in 'link_set_dsc_pps_packet()'

In link_set_dsc_pps_packet(), 'struct display_stream_compressor *dsc'
was dereferenced in a DC_LOGGER_INIT(dsc->ctx->logger); before the 'dsc'
NULL pointer check.

Fixes the below:
drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_dpms.c:905 link_set_dsc_pps_packet() warn: variable dereferenced before check 'dsc' (see line 903)

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-26647
https://git.kernel.org/stable/c/6aa5ede6665122f4c8abce3c6eba06b49e54d25c
https://git.kernel.org/stable/c/cf656fc7276e5b3709a81bc9d9639459be2b2647
https://www.cve.org/CVERecord?id=CVE-2024-26647
https://git.kernel.org/stable/c/3bb9b1f958c3d986ed90a3ff009f1e77e9553207
Comment 1 Carlos López 2024-03-27 11:55:16 UTC
I'd say this was introduced in 6ca7415f11af ("drm/amd/display: merge dc_link_dp into dc_link"), where the `DC_LOGGER_INIT(dsc->ctx->logger)` call was introduced when moving `dp_set_dsc_pps_sdp()` from one file to another.

If this is the case, then cve/linux-5.14-LTSS and older are not affected, and SLE15-SP6-GA and newer are already fixed.
Comment 14 Patrik Jakobsson 2024-05-06 08:11:36 UTC
Fix is not applicable to SLE15-SP5, SLE12-SP5 or SLE12-SP3-TD. Reassigning.
Comment 17 Andrea Mattiazzo 2024-05-29 12:26:07 UTC
All done, closing.