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)
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"208813459715842914775156245771682505621",
"339503646883374188303034439215771193397",
"195290426062694328980830651591627433957",
"180191562228764756575706450907991640958",
"324100817985160267262156906857283340052",
"328700311773745662050900684805336779647",
"165512839571362222656996288179358494798",
"235317273712385245637018873225785623870",
"97221651967949933429599233669670136098",
"27370827029704817212652920582950840665"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ec1be3c527b4a5fc85bcc1b0be7cec08bf60c796",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c"
},
"id": "CVE-2024-49915-264550d3",
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"331218359077240475729478156519000382664",
"208906795043063138672557190770013156439",
"82948158271535189127699638065846716305",
"180191562228764756575706450907991640958",
"324100817985160267262156906857283340052",
"328700311773745662050900684805336779647",
"165512839571362222656996288179358494798",
"235317273712385245637018873225785623870",
"97221651967949933429599233669670136098",
"27370827029704817212652920582950840665"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c395fd47d1565bd67671f45cca281b3acc2c31ef",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c"
},
"id": "CVE-2024-49915-3ded06c3",
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"331218359077240475729478156519000382664",
"208906795043063138672557190770013156439",
"82948158271535189127699638065846716305",
"180191562228764756575706450907991640958",
"324100817985160267262156906857283340052",
"328700311773745662050900684805336779647",
"165512839571362222656996288179358494798",
"235317273712385245637018873225785623870",
"97221651967949933429599233669670136098",
"27370827029704817212652920582950840665"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7d1854c86d02cea8f8a0c0ca05f4ab14292baf3d",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c"
},
"id": "CVE-2024-49915-5182a37f",
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"208813459715842914775156245771682505621",
"339503646883374188303034439215771193397",
"195290426062694328980830651591627433957",
"180191562228764756575706450907991640958",
"207855455691785220316414559934856648480",
"328700311773745662050900684805336779647",
"165512839571362222656996288179358494798",
"235317273712385245637018873225785623870",
"97221651967949933429599233669670136098",
"27370827029704817212652920582950840665"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0d94d9cbd9fec7344d230c4f7b781826f7799c60",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c"
},
"id": "CVE-2024-49915-68fa0d8a",
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"digest": {
"function_hash": "17015598497143257953677086301430818495",
"length": 6472.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c395fd47d1565bd67671f45cca281b3acc2c31ef",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c",
"function": "dcn32_init_hw"
},
"id": "CVE-2024-49915-737e831b",
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"digest": {
"function_hash": "14447681536732427239070359606172729985",
"length": 6192.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ec1be3c527b4a5fc85bcc1b0be7cec08bf60c796",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c",
"function": "dcn32_init_hw"
},
"id": "CVE-2024-49915-8c5378ae",
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"digest": {
"function_hash": "242891198040813118830108729546674361677",
"length": 6948.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7d1854c86d02cea8f8a0c0ca05f4ab14292baf3d",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c",
"function": "dcn32_init_hw"
},
"id": "CVE-2024-49915-ac6c8e39",
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"digest": {
"function_hash": "276727038132733245233512226236897350279",
"length": 5683.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0d94d9cbd9fec7344d230c4f7b781826f7799c60",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c",
"function": "dcn32_init_hw"
},
"id": "CVE-2024-49915-bf8d062d",
"signature_type": "Function",
"signature_version": "v1"
}
]