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)
[
{
"id": "CVE-2024-49917-90ac374d",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"208813459715842914775156245771682505621",
"339503646883374188303034439215771193397",
"195290426062694328980830651591627433957",
"180191562228764756575706450907991640958",
"324100817985160267262156906857283340052",
"328700311773745662050900684805336779647",
"165512839571362222656996288179358494798",
"235317273712385245637018873225785623870",
"97221651967949933429599233669670136098",
"27370827029704817212652920582950840665"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@205e3b96cc9aa9211fd2c849a16245cf236b2d36",
"signature_version": "v1"
},
{
"id": "CVE-2024-49917-c2e7e767",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c",
"function": "dcn30_init_hw"
},
"digest": {
"length": 5461.0,
"function_hash": "164892174771192405777288424426317461429"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@205e3b96cc9aa9211fd2c849a16245cf236b2d36",
"signature_version": "v1"
},
{
"id": "CVE-2024-49917-ec7d6ada",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c",
"function": "dcn30_init_hw"
},
"digest": {
"length": 6050.0,
"function_hash": "159028326338493904546790264640928755383"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@23cb6139543580dc36743586ca86fbb3f7ab2c9d",
"signature_version": "v1"
},
{
"id": "CVE-2024-49917-ee1157a0",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"208813459715842914775156245771682505621",
"339503646883374188303034439215771193397",
"195290426062694328980830651591627433957",
"180191562228764756575706450907991640958",
"324100817985160267262156906857283340052",
"328700311773745662050900684805336779647",
"165512839571362222656996288179358494798",
"235317273712385245637018873225785623870",
"97221651967949933429599233669670136098",
"27370827029704817212652920582950840665"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@23cb6139543580dc36743586ca86fbb3f7ab2c9d",
"signature_version": "v1"
}
]