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)
[
{
"target": {
"file": "drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c",
"function": "dcn30_init_hw"
},
"signature_type": "Function",
"digest": {
"length": 5559.0,
"function_hash": "22854163401619574637889481702018603580"
},
"id": "CVE-2024-49917-1fcb4e7a",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cba7fec864172dadd953daefdd26e01742b71a6a"
},
{
"target": {
"file": "drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"331218359077240475729478156519000382664",
"208906795043063138672557190770013156439",
"82948158271535189127699638065846716305",
"180191562228764756575706450907991640958",
"324100817985160267262156906857283340052",
"328700311773745662050900684805336779647",
"165512839571362222656996288179358494798",
"235317273712385245637018873225785623870",
"97221651967949933429599233669670136098",
"27370827029704817212652920582950840665"
]
},
"id": "CVE-2024-49917-559dc6bf",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5443c83eb8fd2f88c71ced38848fbf744d6206a2"
},
{
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"208813459715842914775156245771682505621",
"339503646883374188303034439215771193397",
"195290426062694328980830651591627433957",
"180191562228764756575706450907991640958",
"324100817985160267262156906857283340052",
"328700311773745662050900684805336779647",
"165512839571362222656996288179358494798",
"235317273712385245637018873225785623870",
"97221651967949933429599233669670136098",
"27370827029704817212652920582950840665"
]
},
"id": "CVE-2024-49917-90ac374d",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@205e3b96cc9aa9211fd2c849a16245cf236b2d36"
},
{
"target": {
"file": "drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"331218359077240475729478156519000382664",
"208906795043063138672557190770013156439",
"82948158271535189127699638065846716305",
"180191562228764756575706450907991640958",
"324100817985160267262156906857283340052",
"328700311773745662050900684805336779647",
"165512839571362222656996288179358494798",
"235317273712385245637018873225785623870",
"97221651967949933429599233669670136098",
"27370827029704817212652920582950840665"
]
},
"id": "CVE-2024-49917-9f0cddcf",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@56c326577971adc3a230f29dfd3aa3abdd505f5d"
},
{
"target": {
"file": "drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c",
"function": "dcn30_init_hw"
},
"signature_type": "Function",
"digest": {
"length": 5563.0,
"function_hash": "275845053951266027144915072675205878463"
},
"id": "CVE-2024-49917-a3e2df7d",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@56c326577971adc3a230f29dfd3aa3abdd505f5d"
},
{
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c",
"function": "dcn30_init_hw"
},
"signature_type": "Function",
"digest": {
"length": 5461.0,
"function_hash": "164892174771192405777288424426317461429"
},
"id": "CVE-2024-49917-c2e7e767",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@205e3b96cc9aa9211fd2c849a16245cf236b2d36"
},
{
"target": {
"file": "drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"331218359077240475729478156519000382664",
"208906795043063138672557190770013156439",
"82948158271535189127699638065846716305",
"180191562228764756575706450907991640958",
"324100817985160267262156906857283340052",
"328700311773745662050900684805336779647",
"165512839571362222656996288179358494798",
"235317273712385245637018873225785623870",
"97221651967949933429599233669670136098",
"27370827029704817212652920582950840665"
]
},
"id": "CVE-2024-49917-c375a2fa",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cba7fec864172dadd953daefdd26e01742b71a6a"
},
{
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c",
"function": "dcn30_init_hw"
},
"signature_type": "Function",
"digest": {
"length": 6050.0,
"function_hash": "159028326338493904546790264640928755383"
},
"id": "CVE-2024-49917-ec7d6ada",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@23cb6139543580dc36743586ca86fbb3f7ab2c9d"
},
{
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"208813459715842914775156245771682505621",
"339503646883374188303034439215771193397",
"195290426062694328980830651591627433957",
"180191562228764756575706450907991640958",
"324100817985160267262156906857283340052",
"328700311773745662050900684805336779647",
"165512839571362222656996288179358494798",
"235317273712385245637018873225785623870",
"97221651967949933429599233669670136098",
"27370827029704817212652920582950840665"
]
},
"id": "CVE-2024-49917-ee1157a0",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@23cb6139543580dc36743586ca86fbb3f7ab2c9d"
},
{
"target": {
"file": "drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c",
"function": "dcn30_init_hw"
},
"signature_type": "Function",
"digest": {
"length": 5578.0,
"function_hash": "190580961656100816834641555193834525050"
},
"id": "CVE-2024-49917-f4953a69",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5443c83eb8fd2f88c71ced38848fbf744d6206a2"
}
]