{"id":"CVE-2025-40035","summary":"Input: uinput - zero-initialize uinput_ff_upload_compat to avoid info leak","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nInput: uinput - zero-initialize uinput_ff_upload_compat to avoid info leak\n\nStruct ff_effect_compat is embedded twice inside\nuinput_ff_upload_compat, contains internal padding. In particular, there\nis a hole after struct ff_replay to satisfy alignment requirements for\nthe following union member. Without clearing the structure,\ncopy_to_user() may leak stack data to userspace.\n\nInitialize ff_up_compat to zero before filling valid fields.","modified":"2026-04-16T00:06:54.714221481Z","published":"2025-10-28T11:48:17.030Z","related":["SUSE-SU-2025:21040-1","SUSE-SU-2025:21052-1","SUSE-SU-2025:21056-1","SUSE-SU-2025:21064-1","SUSE-SU-2025:21080-1","SUSE-SU-2025:21147-1","SUSE-SU-2025:21180-1","SUSE-SU-2025:4057-1","SUSE-SU-2025:4128-1","SUSE-SU-2025:4132-1","SUSE-SU-2025:4140-1","SUSE-SU-2025:4141-1","SUSE-SU-2025:4301-1","SUSE-SU-2026:0316-1","openSUSE-SU-2025:15702-1","openSUSE-SU-2025:20091-1","openSUSE-SU-2026:10301-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40035.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1b317796013f666ae5040edbf0f230ec61496d42"},{"type":"WEB","url":"https://git.kernel.org/stable/c/48c96b7e9e03516936d6deba54b5553097eae817"},{"type":"WEB","url":"https://git.kernel.org/stable/c/877172b97786ed1678640dff0b2d35abb328844c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/933b87c4590b42500299f00ff55f555903056803"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d3366a04770eea807f2826cbdb96934dd8c9bf79"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e63aade22a33e77b93c98c9f02db504d897a76b4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f5e1f3b85aadce74268c46676772c3e9fa79897e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fd8a23ecbc602d00e47b27f20b07350867d0ebe5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40035.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40035"},{"type":"PACKAGE","url":"https://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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"schema_version":"1.7.5"}