CVE-2025-21794

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-21794
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21794.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21794
Downstream
Related
Published
2025-02-27T02:18:30Z
Modified
2025-10-17T21:56:36.382173Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H CVSS Calculator
Summary
HID: hid-thrustmaster: fix stack-out-of-bounds read in usb_check_int_endpoints()
Details

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

HID: hid-thrustmaster: fix stack-out-of-bounds read in usbcheckint_endpoints()

Syzbot[1] has detected a stack-out-of-bounds read of the epaddr array from hid-thrustmaster driver. This array is passed to usbcheckintendpoints function from usb.c core driver, which executes a for loop that iterates over the elements of the passed array. Not finding a null element at the end of the array, it tries to read the next, non-existent element, crashing the kernel.

To fix this, a 0 element was added at the end of the array to break the for loop.

[1] https://syzkaller.appspot.com/bug?extid=9c9179ac46169c56c1ad

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
220883fba32549a34f0734e4859d07f4dcd56992
Fixed
436f48c864186e9413d1b7c6e91767cc9e1a65b8
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ae730deded66150204c494282969bfa98dc3ae67
Fixed
f3ce05283f6cb6e19c220f5382def43dc5bd56b9
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
e5bcae4212a6a4b4204f46a1b8bcba08909d2007
Fixed
cdd9a1ea23ff1a272547217100663e8de4eada40
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
816e84602900f7f951458d743fa12769635ebfd5
Fixed
73e36a699b9f46322ffb81f072a24e64f728dba7
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
50420d7c79c37a3efe4010ff9b1bb14bc61ebccf
Fixed
0b43d98ff29be3144e86294486b1373b5df74c0e

Affected versions

v6.*

v6.12.13
v6.12.14
v6.12.15
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.2
v6.13.3
v6.6.76
v6.6.77
v6.6.78

Database specific

vanir_signatures

[
    {
        "deprecated": false,
        "id": "CVE-2025-21794-04da431f",
        "signature_version": "v1",
        "digest": {
            "length": 1038.0,
            "function_hash": "150091722595509584580156301246069327167"
        },
        "target": {
            "function": "thrustmaster_interrupts",
            "file": "drivers/hid/hid-thrustmaster.c"
        },
        "signature_type": "Function",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cdd9a1ea23ff1a272547217100663e8de4eada40"
    },
    {
        "deprecated": false,
        "id": "CVE-2025-21794-2b34d805",
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "116844897117645231856871965190838321794",
                "41354705181971740096072284861644679929",
                "249294460705041522879718103794522271655",
                "152078724232082283899389975303684215504"
            ]
        },
        "target": {
            "file": "drivers/hid/hid-thrustmaster.c"
        },
        "signature_type": "Line",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@436f48c864186e9413d1b7c6e91767cc9e1a65b8"
    },
    {
        "deprecated": false,
        "id": "CVE-2025-21794-3aee25f2",
        "signature_version": "v1",
        "digest": {
            "length": 1038.0,
            "function_hash": "150091722595509584580156301246069327167"
        },
        "target": {
            "function": "thrustmaster_interrupts",
            "file": "drivers/hid/hid-thrustmaster.c"
        },
        "signature_type": "Function",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f3ce05283f6cb6e19c220f5382def43dc5bd56b9"
    },
    {
        "deprecated": false,
        "id": "CVE-2025-21794-501d8f15",
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "116844897117645231856871965190838321794",
                "41354705181971740096072284861644679929",
                "249294460705041522879718103794522271655",
                "152078724232082283899389975303684215504"
            ]
        },
        "target": {
            "file": "drivers/hid/hid-thrustmaster.c"
        },
        "signature_type": "Line",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0b43d98ff29be3144e86294486b1373b5df74c0e"
    },
    {
        "deprecated": false,
        "id": "CVE-2025-21794-8e5a6c99",
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "116844897117645231856871965190838321794",
                "41354705181971740096072284861644679929",
                "249294460705041522879718103794522271655",
                "152078724232082283899389975303684215504"
            ]
        },
        "target": {
            "file": "drivers/hid/hid-thrustmaster.c"
        },
        "signature_type": "Line",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cdd9a1ea23ff1a272547217100663e8de4eada40"
    },
    {
        "deprecated": false,
        "id": "CVE-2025-21794-91f771e0",
        "signature_version": "v1",
        "digest": {
            "length": 1038.0,
            "function_hash": "150091722595509584580156301246069327167"
        },
        "target": {
            "function": "thrustmaster_interrupts",
            "file": "drivers/hid/hid-thrustmaster.c"
        },
        "signature_type": "Function",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@73e36a699b9f46322ffb81f072a24e64f728dba7"
    },
    {
        "deprecated": false,
        "id": "CVE-2025-21794-c3cf748a",
        "signature_version": "v1",
        "digest": {
            "length": 1038.0,
            "function_hash": "150091722595509584580156301246069327167"
        },
        "target": {
            "function": "thrustmaster_interrupts",
            "file": "drivers/hid/hid-thrustmaster.c"
        },
        "signature_type": "Function",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@436f48c864186e9413d1b7c6e91767cc9e1a65b8"
    },
    {
        "deprecated": false,
        "id": "CVE-2025-21794-d9e4db2c",
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "116844897117645231856871965190838321794",
                "41354705181971740096072284861644679929",
                "249294460705041522879718103794522271655",
                "152078724232082283899389975303684215504"
            ]
        },
        "target": {
            "file": "drivers/hid/hid-thrustmaster.c"
        },
        "signature_type": "Line",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f3ce05283f6cb6e19c220f5382def43dc5bd56b9"
    },
    {
        "deprecated": false,
        "id": "CVE-2025-21794-e95b7416",
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "116844897117645231856871965190838321794",
                "41354705181971740096072284861644679929",
                "249294460705041522879718103794522271655",
                "152078724232082283899389975303684215504"
            ]
        },
        "target": {
            "file": "drivers/hid/hid-thrustmaster.c"
        },
        "signature_type": "Line",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@73e36a699b9f46322ffb81f072a24e64f728dba7"
    },
    {
        "deprecated": false,
        "id": "CVE-2025-21794-fb84b4af",
        "signature_version": "v1",
        "digest": {
            "length": 1038.0,
            "function_hash": "150091722595509584580156301246069327167"
        },
        "target": {
            "function": "thrustmaster_interrupts",
            "file": "drivers/hid/hid-thrustmaster.c"
        },
        "signature_type": "Function",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0b43d98ff29be3144e86294486b1373b5df74c0e"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.6.76
Fixed
6.6.79
Type
ECOSYSTEM
Events
Introduced
6.12.13
Fixed
6.12.16
Type
ECOSYSTEM
Events
Introduced
6.13.2
Fixed
6.13.4