drm/amd/display: Fix NULL pointer dereference in dcn401_init_hw()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.12, 6.12.114, 6.18.22, 6.19.12
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Fix NULL pointer dereference in dcn401_init_hw() dcn401_init_hw() assumes that update_bw_bounding_box() is valid when entering the update path. However, the existing condition: ((!fams2_enable && update_bw_bounding_box) || freq_changed) does not guarantee this, as the freq_changed branch can evaluate to true independently of the callback pointer. This can result in calling update_bw_bounding_box() when it is NULL. Fix this by separating the update condition from the pointer checks and ensuring the callback, dc->clk_mgr, and bw_params are validated before use. Fixes the below: ../dc/hwss/dcn401/dcn401_hwseq.c:367 dcn401_init_hw() error: we previously assumed 'dc->res_pool->funcs->update_bw_bounding_box' could be null (see line 362) (cherry picked from commit 86117c5ab42f21562fedb0a64bffea3ee5fcd477)
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From ca0fb243c3bb53dbbd71d16c76f319bf923ee3d4 · fixed in fcc51c81cb472eb460310c477460356dc4845ff7; From ca0fb243c3bb53dbbd71d16c76f319bf923ee3d4 · fixed in 10c13c111d0d7f8e101c742feff264fc98e3f9f7; From ca0fb243c3bb53dbbd71d16c76f319bf923ee3d4 · fixed in 2d4a6f0702c5211e0be8b688c5fc24f082ec74d6; From ca0fb243c3bb53dbbd71d16c76f319bf923ee3d4 · fixed in e927b36ae18b66b49219eaa9f46edc7b4fdbb25e; From 6.11.3 · fixed in 6.12
- Linux Linux
6.12
- KernelLinux
From 6.12.0 · fixed in 6.12.114; From 6.13.0 · fixed in 6.18.22; From 6.19.0 · fixed in 6.19.12