CVE-2025-38021

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-38021
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38021.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-38021
Downstream
Published
2025-06-18T09:28:28.563Z
Modified
2025-11-20T08:50:55.594379Z
Summary
drm/amd/display: Fix null check of pipe_ctx->plane_state for update_dchubp_dpp
Details

In the Linux kernel, the following vulnerability has been resolved:

drm/amd/display: Fix null check of pipectx->planestate for updatedchubpdpp

Similar to commit 6a057072ddd1 ("drm/amd/display: Fix null check for pipectx->planestate in dcn20programpipe") that addresses a null pointer dereference on dcn20updatedchubpdpp. This is the same function hooked for updatedchubpdpp in dcn401, with the same issue. Fix possible null pointer deference on dcn401program_pipe too.

(cherry picked from commit d8d47f739752227957d8efc0cb894761bfe1d879)

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
63ab80d9ac0adae2066b140ec30481ba4648140d
Fixed
4679061fb25344d6010ce7b9bebac21c91a0b75a
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
63ab80d9ac0adae2066b140ec30481ba4648140d
Fixed
a3b7e65b6be59e686e163fa1ceb0922f996897c2

Affected versions

v6.*

v6.13
v6.13-rc2
v6.13-rc3
v6.13-rc4
v6.13-rc5
v6.13-rc6
v6.13-rc7
v6.14
v6.14-rc1
v6.14-rc2
v6.14-rc3
v6.14-rc4
v6.14-rc5
v6.14-rc6
v6.14-rc7
v6.14.1
v6.14.2
v6.14.3
v6.14.4
v6.14.5
v6.14.6
v6.14.7
v6.15-rc1
v6.15-rc2
v6.15-rc3
v6.15-rc4
v6.15-rc5
v6.15-rc6

Database specific

vanir_signatures

[
    {
        "signature_type": "Function",
        "deprecated": false,
        "digest": {
            "length": 4184.0,
            "function_hash": "229528578506396970172452301517112859384"
        },
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4679061fb25344d6010ce7b9bebac21c91a0b75a",
        "target": {
            "file": "drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c",
            "function": "dcn401_program_pipe"
        },
        "id": "CVE-2025-38021-06422a99"
    },
    {
        "signature_type": "Line",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "7795272596555870877568253784572674350",
                "159795334985428590193270215848262451198",
                "42338638149140493183133632883257287184",
                "35214311422230525631979042846773431417",
                "118192317554345359693640515680400958117",
                "106716875743360132932676724341854273986"
            ],
            "threshold": 0.9
        },
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a3b7e65b6be59e686e163fa1ceb0922f996897c2",
        "target": {
            "file": "drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c"
        },
        "id": "CVE-2025-38021-2af8233f"
    },
    {
        "signature_type": "Function",
        "deprecated": false,
        "digest": {
            "length": 4177.0,
            "function_hash": "296891908377230400352228319291627793800"
        },
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a3b7e65b6be59e686e163fa1ceb0922f996897c2",
        "target": {
            "file": "drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c",
            "function": "dcn401_program_pipe"
        },
        "id": "CVE-2025-38021-b0586b9e"
    },
    {
        "signature_type": "Line",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "7795272596555870877568253784572674350",
                "159795334985428590193270215848262451198",
                "42338638149140493183133632883257287184",
                "35214311422230525631979042846773431417",
                "118192317554345359693640515680400958117",
                "106716875743360132932676724341854273986"
            ],
            "threshold": 0.9
        },
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4679061fb25344d6010ce7b9bebac21c91a0b75a",
        "target": {
            "file": "drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c"
        },
        "id": "CVE-2025-38021-bcfce489"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.14.0
Fixed
6.14.8