Skip to content
Heist/ feed
Back to feed
UnratedFix available

drm/amd/display: Add null check for top_pipe_to_program in commit_planes_for_stream

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add null check for top_pipe_to_program in commit_planes_for_stream This commit addresses a null pointer dereference issue in the `commit_planes_for_stream` function at line 4140. The issue could occur when `top_pipe_to_program` is null. The fix adds a check to ensure `top_pipe_to_program` is not null before accessing its stream_res. This prevents a null pointer dereference. Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:4140 commit_planes_for_stream() error: we previously assumed 'top_pipe_to_program' could be null (see line 3906)

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.227, 5.15.168, 6.1.113, 6.10.14, 6.11.3, 6.6.55
CVEs
CVE-2024-49913
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 04:24 UTC · Revision 1

Source evidence

drm/amd/display: Add null check for top_pipe_to_program in commit_planes_for_stream

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 top_pipe_to_program in commit_planes_for_stream This commit addresses a null pointer dereference issue in the `commit_planes_for_stream` function at line 4140. The issue could occur when `top_pipe_to_program` is null. The fix adds a check to ensure `top_pipe_to_program` is not null before accessing its stream_res. This prevents a null pointer dereference. Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:4140 commit_planes_for_stream() error: we previously assumed 'top_pipe_to_program' could be null (see line 3906)

osv:CVE-2024-49913

Kernel

Fixed versions: 5.10.227, 5.15.168, 6.1.113, 6.6.55, 6.10.14, 6.11.3

Complete source record
{
  "id": "e01f1754b415c34df274db128793d72347b6f32e1965732d543ee0b6abb5541a",
  "url": "https://osv.dev/vulnerability/CVE-2024-49913",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "drm/amd/display: Add null check for top_pipe_to_program in commit_planes_for_stream",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add null check for top_pipe_to_program in commit_planes_for_stream This commit addresses a null pointer dereference issue in the `commit_planes_for_stream` function at line 4140. The issue could occur when `top_pipe_to_program` is null. The fix adds a check to ensure `top_pipe_to_program` is not null before accessing its stream_res. This prevents a null pointer dereference. Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:4140 commit_planes_for_stream() error: we previously assumed 'top_pipe_to_program' could be null (see line 3906)",
    "evidence": "osv:CVE-2024-49913",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.227",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.168",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.113",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.55",
            "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-49913",
      "aliases": [
        "CVE-2024-49913"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c"
                },
                {
                  "fixed": "1ebfa6663807c144be8c8b6727375012409d2356"
                },
                {
                  "fixed": "8ab59527852a6f7780aad6185729550ca0569122"
                },
                {
                  "fixed": "40193ff73630adf76bc0d82398f7d90fb576dba4"
                },
                {
                  "fixed": "e47e563c6f0db7d792a559301862c19ead0dfc2f"
                },
                {
                  "fixed": "3929e382e4758aff42da0102a60d13337c99d3b8"
                },
                {
                  "fixed": "73efd2a611b62fee71a7b7f27d9d08bb60da8a72"
                },
                {
                  "fixed": "66d71a72539e173a9b00ca0b1852cbaa5f5bf1ad"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49913.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.15.0"
                },
                {
                  "fixed": "5.10.227"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.168"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.113"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.55"
                }
              ]
            },
            {
              "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-49913.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:42.823018910Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/1ebfa6663807c144be8c8b6727375012409d2356",
        "https://git.kernel.org/stable/c/3929e382e4758aff42da0102a60d13337c99d3b8",
        "https://git.kernel.org/stable/c/40193ff73630adf76bc0d82398f7d90fb576dba4",
        "https://git.kernel.org/stable/c/66d71a72539e173a9b00ca0b1852cbaa5f5bf1ad",
        "https://git.kernel.org/stable/c/73efd2a611b62fee71a7b7f27d9d08bb60da8a72",
        "https://git.kernel.org/stable/c/8ab59527852a6f7780aad6185729550ca0569122",
        "https://git.kernel.org/stable/c/e47e563c6f0db7d792a559301862c19ead0dfc2f",
        "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49913.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-49913",
        "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-49913.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-49913",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 510261,
  "published_at": "2024-10-21T18:01:41.551+00:00"
}