HID: hid-thrustmaster: fix stack-out-of-bounds read in usb_check_int_endpoints()
In the Linux kernel, the following vulnerability has been resolved: HID: hid-thrustmaster: fix stack-out-of-bounds read in usb_check_int_endpoints() Syzbot[1] has detected a stack-out-of-bounds read of the ep_addr array from hid-thrustmaster driver. This array is passed to usb_check_int_endpoints 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
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.16, 6.13.4, 6.6.79
- CVEs
- CVE-2025-21794
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 13:28 UTC · Revision 1
Source evidence
HID: hid-thrustmaster: fix stack-out-of-bounds read in usb_check_int_endpoints()
core-osv · Original sourcePublished 27 Feb 2025, 02:18 UTC
In the Linux kernel, the following vulnerability has been resolved: HID: hid-thrustmaster: fix stack-out-of-bounds read in usb_check_int_endpoints() Syzbot[1] has detected a stack-out-of-bounds read of the ep_addr array from hid-thrustmaster driver. This array is passed to usb_check_int_endpoints 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
osv:CVE-2025-21794
Kernel
Fixed versions: 6.6.79, 6.12.16, 6.13.4
Complete source record
{
"id": "9609bdc848d4fd0cf29bc5545b0311ed9d058ae64d68fccb2a767b9e54c555e5",
"url": "https://osv.dev/vulnerability/CVE-2025-21794",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "HID: hid-thrustmaster: fix stack-out-of-bounds read in usb_check_int_endpoints()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: HID: hid-thrustmaster: fix stack-out-of-bounds read in usb_check_int_endpoints() Syzbot[1] has detected a stack-out-of-bounds read of the ep_addr array from hid-thrustmaster driver. This array is passed to usb_check_int_endpoints 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",
"evidence": "osv:CVE-2025-21794",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.6.79",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.16",
"evidence": "/affected/1/ranges"
},
{
"value": "6.13.4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2025-21794",
"aliases": [
"CVE-2025-21794"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "220883fba32549a34f0734e4859d07f4dcd56992"
},
{
"fixed": "436f48c864186e9413d1b7c6e91767cc9e1a65b8"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "ae730deded66150204c494282969bfa98dc3ae67"
},
{
"fixed": "f3ce05283f6cb6e19c220f5382def43dc5bd56b9"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "e5bcae4212a6a4b4204f46a1b8bcba08909d2007"
},
{
"fixed": "cdd9a1ea23ff1a272547217100663e8de4eada40"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "816e84602900f7f951458d743fa12769635ebfd5"
},
{
"fixed": "73e36a699b9f46322ffb81f072a24e64f728dba7"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "50420d7c79c37a3efe4010ff9b1bb14bc61ebccf"
},
{
"fixed": "0b43d98ff29be3144e86294486b1373b5df74c0e"
}
]
}
],
"versions": [
"v6.6.78",
"v6.6.77",
"v6.6.76",
"v6.12.15",
"v6.12.14",
"v6.12.13",
"v6.13.3",
"v6.13.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21794.json"
}
},
{
"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"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21794.json"
}
}
],
"modified": "2026-10-28T02:30:35.811882868Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0b43d98ff29be3144e86294486b1373b5df74c0e",
"https://git.kernel.org/stable/c/436f48c864186e9413d1b7c6e91767cc9e1a65b8",
"https://git.kernel.org/stable/c/73e36a699b9f46322ffb81f072a24e64f728dba7",
"https://git.kernel.org/stable/c/cdd9a1ea23ff1a272547217100663e8de4eada40",
"https://git.kernel.org/stable/c/f3ce05283f6cb6e19c220f5382def43dc5bd56b9",
"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21794.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-21794",
"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/2025/21xxx/CVE-2025-21794.json"
}
},
"related_cves": [
{
"value": "CVE-2025-21794",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 503120,
"published_at": "2025-02-27T02:18:30.907+00:00"
}