In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Add NULL check for clkmgr and clkmgr->funcs in dcn401inithw
This commit addresses a potential null pointer dereference issue in the
dcn401_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/dcn401/dcn401hwseq.c:416 dcn401inithw() error: we previously assumed 'dc->clkmgr' could be null (see line 225)
{ "vanir_signatures": [ { "target": { "file": "drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "72452928266596338416216893098635401915", "96913745469115766159903362239255121270", "237818634537835367507138758251539569428", "298701406532502578131958495098076696178", "155008263627783667757450433158916961323", "328700311773745662050900684805336779647", "118776827080765028672515732540014533456", "131497358125613075307461942485588143039", "185874228134453233630789911336756256071", "100970930320936567742668631439695458827", "306455888069101167105100217552732117123", "308193581501333814041092704944578123726" ] }, "id": "CVE-2024-49916-a0a1adee", "signature_version": "v1", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4b6377f0e96085cbec96eb7f0b282430ccdd3d75", "signature_type": "Line" }, { "target": { "file": "drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c", "function": "dcn401_init_hw" }, "digest": { "length": 7210.0, "function_hash": "33766900189240106915787010000083453193" }, "id": "CVE-2024-49916-df8cadf1", "signature_version": "v1", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4b6377f0e96085cbec96eb7f0b282430ccdd3d75", "signature_type": "Function" } ] }