CVE-2025-40035

Source
https://cve.org/CVERecord?id=CVE-2025-40035
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40035.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40035
Downstream
Related
Published
2025-10-28T11:48:17.030Z
Modified
2026-03-20T12:43:09.072852Z
Summary
Input: uinput - zero-initialize uinput_ff_upload_compat to avoid info leak
Details

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

Input: uinput - zero-initialize uinputffupload_compat to avoid info leak

Struct ffeffectcompat is embedded twice inside uinputffuploadcompat, contains internal padding. In particular, there is a hole after struct ffreplay to satisfy alignment requirements for the following union member. Without clearing the structure, copytouser() may leak stack data to userspace.

Initialize ffupcompat to zero before filling valid fields.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40035.json",
    "cna_assigner": "Linux"
}
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
2d56f3a32c0e62f99c043d2579840f9731fe5855
Fixed
1b317796013f666ae5040edbf0f230ec61496d42
Fixed
877172b97786ed1678640dff0b2d35abb328844c
Fixed
e63aade22a33e77b93c98c9f02db504d897a76b4
Fixed
933b87c4590b42500299f00ff55f555903056803
Fixed
fd8a23ecbc602d00e47b27f20b07350867d0ebe5
Fixed
48c96b7e9e03516936d6deba54b5553097eae817
Fixed
f5e1f3b85aadce74268c46676772c3e9fa79897e
Fixed
d3366a04770eea807f2826cbdb96934dd8c9bf79

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40035.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.29
Fixed
5.4.301
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.246
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.195
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.156
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.112
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.53
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40035.json"