CVE-2025-21794
HID: hid-thrustmaster: fix stack-out-of-bounds read in usb_check_int_endpoints()
Check your servers for CVE-2025-21794
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-21794 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 1 Oct 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-125 Out-of-bounds Read
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 220883fba32549a34f0734e4859d07f4dcd56992, before 436f48c864186e9413d1b7c6e91767cc9e1a65b8 affected from ae730deded66150204c494282969bfa98dc3ae67, before f3ce05283f6cb6e19c220f5382def43dc5bd56b9 affected from e5bcae4212a6a4b4204f46a1b8bcba08909d2007, before cdd9a1ea23ff1a272547217100663e8de4eada40 affected from 816e84602900f7f951458d743fa12769635ebfd5, before 73e36a699b9f46322ffb81f072a24e64f728dba7 affected from 50420d7c79c37a3efe4010ff9b1bb14bc61ebccf, before 0b43d98ff29be3144e86294486b1373b5df74c0e
Other versions: unaffected
|
| Linux |
affected from 6.6.76, before 6.6.79 affected from 6.12.13, before 6.12.16 affected from 6.13.2, before 6.13.4
Other versions: unaffected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-21794 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-21794
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-21794
trivy image --scanners vuln IMAGE | grep CVE-2025-21794
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/436f48c864186e9413d1b7c6e91767cc9e1a65b8 git.kernel.org
- https://git.kernel.org/stable/c/f3ce05283f6cb6e19c220f5382def43dc5bd56b9 git.kernel.org
- https://git.kernel.org/stable/c/cdd9a1ea23ff1a272547217100663e8de4eada40 git.kernel.org
- https://git.kernel.org/stable/c/73e36a699b9f46322ffb81f072a24e64f728dba7 git.kernel.org
- https://git.kernel.org/stable/c/0b43d98ff29be3144e86294486b1373b5df74c0e git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html lists.debian.org
Source: the record CVE-2025-21794 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse