In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Add null check for toppipetoprogram in commitplanesforstream
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 commitplanesforstream() error: we previously assumed 'toppipetoprogram' could be null (see line 3906)
[
    {
        "id": "CVE-2024-49913-0b7164e7",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "158209787002786058381581326101379436810",
                "67388869434297064680768095277677597978",
                "280360173721593342957417258541725977616",
                "294321438166046732093028274234024301438"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "drivers/gpu/drm/amd/display/dc/core/dc.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1ebfa6663807c144be8c8b6727375012409d2356"
    },
    {
        "id": "CVE-2024-49913-0fb7f1c9",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "197282418047060926150547054311221227846",
                "55475931431879177025656987968037770137",
                "280360173721593342957417258541725977616",
                "294321438166046732093028274234024301438"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "drivers/gpu/drm/amd/display/dc/core/dc.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@66d71a72539e173a9b00ca0b1852cbaa5f5bf1ad"
    },
    {
        "id": "CVE-2024-49913-44cd8b62",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "113482906276126736256852488117520074703",
            "length": 7101.0
        },
        "target": {
            "file": "drivers/gpu/drm/amd/display/dc/core/dc.c",
            "function": "commit_planes_for_stream"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8ab59527852a6f7780aad6185729550ca0569122"
    },
    {
        "id": "CVE-2024-49913-4ddc270b",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "144280653338735225896953082325680540417",
            "length": 9405.0
        },
        "target": {
            "file": "drivers/gpu/drm/amd/display/dc/core/dc.c",
            "function": "commit_planes_for_stream"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@40193ff73630adf76bc0d82398f7d90fb576dba4"
    },
    {
        "id": "CVE-2024-49913-4de6a251",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "120218404988421202704154410245979026253",
            "length": 9368.0
        },
        "target": {
            "file": "drivers/gpu/drm/amd/display/dc/core/dc.c",
            "function": "commit_planes_for_stream"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3929e382e4758aff42da0102a60d13337c99d3b8"
    },
    {
        "id": "CVE-2024-49913-74339f30",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "246451710793238049304577147701026450061",
            "length": 9110.0
        },
        "target": {
            "file": "drivers/gpu/drm/amd/display/dc/core/dc.c",
            "function": "commit_planes_for_stream"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e47e563c6f0db7d792a559301862c19ead0dfc2f"
    },
    {
        "id": "CVE-2024-49913-77567fde",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "248165541729937966963169592868450881277",
            "length": 10660.0
        },
        "target": {
            "file": "drivers/gpu/drm/amd/display/dc/core/dc.c",
            "function": "commit_planes_for_stream"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@66d71a72539e173a9b00ca0b1852cbaa5f5bf1ad"
    },
    {
        "id": "CVE-2024-49913-95b532c2",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "272513761105783588451881073051794983967",
            "length": 7125.0
        },
        "target": {
            "file": "drivers/gpu/drm/amd/display/dc/core/dc.c",
            "function": "commit_planes_for_stream"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1ebfa6663807c144be8c8b6727375012409d2356"
    },
    {
        "id": "CVE-2024-49913-9c5cc931",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "197282418047060926150547054311221227846",
                "55475931431879177025656987968037770137",
                "280360173721593342957417258541725977616",
                "294321438166046732093028274234024301438"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "drivers/gpu/drm/amd/display/dc/core/dc.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3929e382e4758aff42da0102a60d13337c99d3b8"
    },
    {
        "id": "CVE-2024-49913-c930d240",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "96053734040392416133342795912933255595",
            "length": 10623.0
        },
        "target": {
            "file": "drivers/gpu/drm/amd/display/dc/core/dc.c",
            "function": "commit_planes_for_stream"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@73efd2a611b62fee71a7b7f27d9d08bb60da8a72"
    },
    {
        "id": "CVE-2024-49913-de109123",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "197282418047060926150547054311221227846",
                "55475931431879177025656987968037770137",
                "280360173721593342957417258541725977616",
                "294321438166046732093028274234024301438"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "drivers/gpu/drm/amd/display/dc/core/dc.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@73efd2a611b62fee71a7b7f27d9d08bb60da8a72"
    },
    {
        "id": "CVE-2024-49913-ef3886d6",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "197282418047060926150547054311221227846",
                "55475931431879177025656987968037770137",
                "280360173721593342957417258541725977616",
                "294321438166046732093028274234024301438"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "drivers/gpu/drm/amd/display/dc/core/dc.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@40193ff73630adf76bc0d82398f7d90fb576dba4"
    },
    {
        "id": "CVE-2024-49913-f28d08d9",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "197282418047060926150547054311221227846",
                "55475931431879177025656987968037770137",
                "280360173721593342957417258541725977616",
                "294321438166046732093028274234024301438"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "drivers/gpu/drm/amd/display/dc/core/dc.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e47e563c6f0db7d792a559301862c19ead0dfc2f"
    },
    {
        "id": "CVE-2024-49913-f7d9af9d",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "158209787002786058381581326101379436810",
                "67388869434297064680768095277677597978",
                "280360173721593342957417258541725977616",
                "294321438166046732093028274234024301438"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "drivers/gpu/drm/amd/display/dc/core/dc.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8ab59527852a6f7780aad6185729550ca0569122"
    }
]