Skip to content
Heist/ feed
Back to feed
UnratedFix available

drm/amd/display: Add NULL check for clk_mgr and clk_mgr->funcs in dcn30_init_hw

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add NULL check for clk_mgr and clk_mgr->funcs in dcn30_init_hw 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/dcn30_hwseq.c:789 dcn30_init_hw() error: we previously assumed 'dc->clk_mgr' could be null (see line 628)

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.120, 6.10.14, 6.11.3, 6.6.64
CVEs
CVE-2024-49917
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 19:06 UTC · Revision 1

Source evidence

drm/amd/display: Add NULL check for clk_mgr and clk_mgr->funcs in dcn30_init_hw

core-osv · Original source

Published 21 Oct 2024, 18:01 UTC

In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add NULL check for clk_mgr and clk_mgr->funcs in dcn30_init_hw 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/dcn30_hwseq.c:789 dcn30_init_hw() error: we previously assumed 'dc->clk_mgr' could be null (see line 628)

osv:CVE-2024-49917

Kernel

Fixed versions: 6.1.120, 6.6.64, 6.10.14, 6.11.3

Complete source record
{
  "id": "96c910502e87ea492f5b76a802e6650184bd60fb4a2df5920068d53ac377fae2",
  "url": "https://osv.dev/vulnerability/CVE-2024-49917",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "drm/amd/display: Add NULL check for clk_mgr and clk_mgr->funcs in dcn30_init_hw",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add NULL check for clk_mgr and clk_mgr->funcs in dcn30_init_hw 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/dcn30_hwseq.c:789 dcn30_init_hw() error: we previously assumed 'dc->clk_mgr' could be null (see line 628)",
    "evidence": "osv:CVE-2024-49917",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.120",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.64",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.10.14",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.11.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-49917",
      "aliases": [
        "CVE-2024-49917"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c"
                },
                {
                  "fixed": "23cb6139543580dc36743586ca86fbb3f7ab2c9d"
                },
                {
                  "fixed": "205e3b96cc9aa9211fd2c849a16245cf236b2d36"
                },
                {
                  "fixed": "5443c83eb8fd2f88c71ced38848fbf744d6206a2"
                },
                {
                  "fixed": "56c326577971adc3a230f29dfd3aa3abdd505f5d"
                },
                {
                  "fixed": "cba7fec864172dadd953daefdd26e01742b71a6a"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49917.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.15.0"
                },
                {
                  "fixed": "6.1.120"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.64"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.10.14"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.11.0"
                },
                {
                  "fixed": "6.11.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49917.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.930946142Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/205e3b96cc9aa9211fd2c849a16245cf236b2d36",
        "https://git.kernel.org/stable/c/23cb6139543580dc36743586ca86fbb3f7ab2c9d",
        "https://git.kernel.org/stable/c/5443c83eb8fd2f88c71ced38848fbf744d6206a2",
        "https://git.kernel.org/stable/c/56c326577971adc3a230f29dfd3aa3abdd505f5d",
        "https://git.kernel.org/stable/c/cba7fec864172dadd953daefdd26e01742b71a6a",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49917.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-49917",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49917.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-49917",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 505990,
  "published_at": "2024-10-21T18:01:44.295+00:00"
}