In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Add NULL check for clkmgr in dcn32init_hw
This commit addresses a potential null pointer dereference issue in the
dcn32_init_hw
function. The issue could occur when dc->clk_mgr
is
null.
The fix adds a check to ensure dc->clk_mgr
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/dcn32/dcn32hwseq.c:961 dcn32inithw() error: we previously assumed 'dc->clkmgr' could be null (see line 782)
{ "vanir_signatures": [ { "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7d1854c86d02cea8f8a0c0ca05f4ab14292baf3d", "signature_type": "Line", "target": { "file": "drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c" }, "deprecated": false, "digest": { "line_hashes": [ "331218359077240475729478156519000382664", "208906795043063138672557190770013156439", "82948158271535189127699638065846716305", "180191562228764756575706450907991640958", "324100817985160267262156906857283340052", "328700311773745662050900684805336779647", "165512839571362222656996288179358494798", "235317273712385245637018873225785623870", "97221651967949933429599233669670136098", "27370827029704817212652920582950840665" ], "threshold": 0.9 }, "id": "CVE-2024-49915-5182a37f" }, { "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7d1854c86d02cea8f8a0c0ca05f4ab14292baf3d", "signature_type": "Function", "target": { "function": "dcn32_init_hw", "file": "drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c" }, "deprecated": false, "digest": { "length": 6948.0, "function_hash": "242891198040813118830108729546674361677" }, "id": "CVE-2024-49915-ac6c8e39" } ] }