CVE-2025-40035
Input: uinput - zero-initialize uinput_ff_upload_compat to avoid info leak
Check your servers for CVE-2025-40035
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-40035 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:
Input: uinput - zero-initialize uinput_ff_upload_compat to avoid info leak
Struct ff_effect_compat is embedded twice inside uinput_ff_upload_compat, contains internal padding. In particular, there is a hole after struct ff_replay to satisfy alignment requirements for the following union member. Without clearing the structure, copy_to_user() may leak stack data to userspace.
Initialize ff_up_compat to zero before filling valid fields.
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.0% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 2d56f3a32c0e62f99c043d2579840f9731fe5855, before 1b317796013f666ae5040edbf0f230ec61496d42 affected from 2d56f3a32c0e62f99c043d2579840f9731fe5855, before 877172b97786ed1678640dff0b2d35abb328844c affected from 2d56f3a32c0e62f99c043d2579840f9731fe5855, before e63aade22a33e77b93c98c9f02db504d897a76b4 affected from 2d56f3a32c0e62f99c043d2579840f9731fe5855, before 933b87c4590b42500299f00ff55f555903056803 affected from 2d56f3a32c0e62f99c043d2579840f9731fe5855, before fd8a23ecbc602d00e47b27f20b07350867d0ebe5 affected from 2d56f3a32c0e62f99c043d2579840f9731fe5855, before 48c96b7e9e03516936d6deba54b5553097eae817 affected from 2d56f3a32c0e62f99c043d2579840f9731fe5855, before f5e1f3b85aadce74268c46676772c3e9fa79897e affected from 2d56f3a32c0e62f99c043d2579840f9731fe5855, before d3366a04770eea807f2826cbdb96934dd8c9bf79
Other versions: unaffected
|
| Linux |
affected 2.6.29 unaffected before 2.6.29 unaffected from 5.4.301 up to and including 5.4.* unaffected from 5.10.246 up to and including 5.10.* unaffected from 5.15.195 up to and including 5.15.* unaffected from 6.1.156 up to and including 6.1.* unaffected from 6.6.112 up to and including 6.6.* unaffected from 6.12.53 up to and including 6.12.* unaffected from 6.17.3 up to and including 6.17.* unaffected 6.18 and later
Other versions: affected
|
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-40035 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40035
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-40035
trivy image --scanners vuln IMAGE | grep CVE-2025-40035
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/1b317796013f666ae5040edbf0f230ec61496d42 git.kernel.org
- https://git.kernel.org/stable/c/877172b97786ed1678640dff0b2d35abb328844c git.kernel.org
- https://git.kernel.org/stable/c/e63aade22a33e77b93c98c9f02db504d897a76b4 git.kernel.org
- https://git.kernel.org/stable/c/933b87c4590b42500299f00ff55f555903056803 git.kernel.org
- https://git.kernel.org/stable/c/fd8a23ecbc602d00e47b27f20b07350867d0ebe5 git.kernel.org
- https://git.kernel.org/stable/c/48c96b7e9e03516936d6deba54b5553097eae817 git.kernel.org
- https://git.kernel.org/stable/c/f5e1f3b85aadce74268c46676772c3e9fa79897e git.kernel.org
- https://git.kernel.org/stable/c/d3366a04770eea807f2826cbdb96934dd8c9bf79 git.kernel.org
Source: the record CVE-2025-40035 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse