CVE-2025-21940

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-21940
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21940.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-21940
Downstream
Published
2025-04-01T15:41:05.977Z
Modified
2025-11-20T08:18:35.222083Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
drm/amdkfd: Fix NULL Pointer Dereference in KFD queue
Details

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

drm/amdkfd: Fix NULL Pointer Dereference in KFD queue

Through KFD IOCTL Fuzzing we encountered a NULL pointer derefrence when calling kfdqueueacquire_buffers.

(cherry picked from commit 049e5bf3c8406f87c3d8e1958e0a16804fa1d530)

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
629568d25fea8ece4f65073f039aeef4e240ab67
Fixed
c3cbeafb4e0001d9146df50b470885e02664f3c7
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
629568d25fea8ece4f65073f039aeef4e240ab67
Fixed
33eb8041c5d6c19d46e7bfd23a031844336afd80
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
629568d25fea8ece4f65073f039aeef4e240ab67
Fixed
fd617ea3b79d2116d53f76cdb5a3601c0ba6e42f

Affected versions

v6.*

v6.10
v6.10-rc7
v6.11
v6.11-rc1
v6.11-rc2
v6.11-rc3
v6.11-rc4
v6.11-rc5
v6.11-rc6
v6.11-rc7
v6.12
v6.12-rc1
v6.12-rc2
v6.12-rc3
v6.12-rc4
v6.12-rc5
v6.12-rc6
v6.12-rc7
v6.12.1
v6.12.10
v6.12.11
v6.12.12
v6.12.13
v6.12.14
v6.12.15
v6.12.16
v6.12.17
v6.12.18
v6.12.2
v6.12.3
v6.12.4
v6.12.5
v6.12.6
v6.12.7
v6.12.8
v6.12.9
v6.13
v6.13-rc1
v6.13-rc2
v6.13-rc3
v6.13-rc4
v6.13-rc5
v6.13-rc6
v6.13-rc7
v6.13.1
v6.13.2
v6.13.3
v6.13.4
v6.13.5
v6.13.6
v6.14-rc1
v6.14-rc2
v6.14-rc3
v6.14-rc4
v6.14-rc5

Database specific

vanir_signatures

[
    {
        "id": "CVE-2025-21940-489e76d5",
        "target": {
            "file": "drivers/gpu/drm/amd/amdkfd/kfd_queue.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "332259538634731211479694531293717190252",
                "284659801446127432723526932675466045844",
                "282694220640049581017855932013167367279",
                "224816612749001447653441641478313123038",
                "250379903037343580730924974762398172802"
            ]
        },
        "deprecated": false,
        "signature_type": "Line",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c3cbeafb4e0001d9146df50b470885e02664f3c7",
        "signature_version": "v1"
    },
    {
        "id": "CVE-2025-21940-4fe1f479",
        "target": {
            "file": "drivers/gpu/drm/amd/amdkfd/kfd_queue.c",
            "function": "kfd_queue_acquire_buffers"
        },
        "digest": {
            "function_hash": "205297316692493292028558447020031118457",
            "length": 2387.0
        },
        "deprecated": false,
        "signature_type": "Function",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@33eb8041c5d6c19d46e7bfd23a031844336afd80",
        "signature_version": "v1"
    },
    {
        "id": "CVE-2025-21940-83d67043",
        "target": {
            "file": "drivers/gpu/drm/amd/amdkfd/kfd_queue.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "332259538634731211479694531293717190252",
                "284659801446127432723526932675466045844",
                "282694220640049581017855932013167367279",
                "224816612749001447653441641478313123038",
                "250379903037343580730924974762398172802"
            ]
        },
        "deprecated": false,
        "signature_type": "Line",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@33eb8041c5d6c19d46e7bfd23a031844336afd80",
        "signature_version": "v1"
    },
    {
        "id": "CVE-2025-21940-c957444e",
        "target": {
            "file": "drivers/gpu/drm/amd/amdkfd/kfd_queue.c",
            "function": "kfd_queue_acquire_buffers"
        },
        "digest": {
            "function_hash": "205297316692493292028558447020031118457",
            "length": 2387.0
        },
        "deprecated": false,
        "signature_type": "Function",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c3cbeafb4e0001d9146df50b470885e02664f3c7",
        "signature_version": "v1"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.12.0
Fixed
6.12.19
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.13.7