In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Add NULL check for clkmgr and clkmgr->funcs in dcn30inithw
This commit addresses a potential null pointer dereference issue in the
dcn30_init_hw
function. The issue could occur when dc->clk_mgr
or
dc->clk_mgr->funcs
is null.
The fix adds a check to ensure dc->clk_mgr
and dc->clk_mgr->funcs
is
not null before accessing its functions. This prevents a potential null
pointer dereference.
Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn30/dcn30hwseq.c:789 dcn30inithw() error: we previously assumed 'dc->clkmgr' could be null (see line 628)
{ "vanir_signatures": [ { "id": "CVE-2024-49917-ec7d6ada", "signature_type": "Function", "target": { "file": "drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c", "function": "dcn30_init_hw" }, "deprecated": false, "digest": { "length": 6050.0, "function_hash": "159028326338493904546790264640928755383" }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@23cb6139543580dc36743586ca86fbb3f7ab2c9d" }, { "id": "CVE-2024-49917-ee1157a0", "signature_type": "Line", "target": { "file": "drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c" }, "deprecated": false, "digest": { "line_hashes": [ "208813459715842914775156245771682505621", "339503646883374188303034439215771193397", "195290426062694328980830651591627433957", "180191562228764756575706450907991640958", "324100817985160267262156906857283340052", "328700311773745662050900684805336779647", "165512839571362222656996288179358494798", "235317273712385245637018873225785623870", "97221651967949933429599233669670136098", "27370827029704817212652920582950840665" ], "threshold": 0.9 }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@23cb6139543580dc36743586ca86fbb3f7ab2c9d" } ] }