Skip to content
Heist/ feed
Back to feed
UnratedFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.246, 5.15.195, 5.4.301, 6.1.156, 6.12.53, 6.17.3, 6.6.112
CVEs
CVE-2025-40035
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 22:38 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 28 Oct 2025, 11:48 UTC

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.

osv:CVE-2025-40035

Kernel

Fixed versions: 5.4.301, 5.10.246, 5.15.195, 6.1.156, 6.6.112, 6.12.53, 6.17.3

Complete source record
{
  "id": "41d86f33c2b00baf81d9f086352017da22fca199b8377bf753ea4eaa45581ffe",
  "url": "https://osv.dev/vulnerability/CVE-2025-40035",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Input: uinput - zero-initialize uinput_ff_upload_compat to avoid info leak",
    "summary": "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.",
    "evidence": "osv:CVE-2025-40035",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.301",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.246",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.195",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.156",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.112",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.53",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.17.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-40035",
      "aliases": [
        "CVE-2025-40035"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "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/cve-osv-conversion/osv-output/CVE-2025-40035.json"
          }
        },
        {
          "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"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40035.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:31.942792324Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/1b317796013f666ae5040edbf0f230ec61496d42",
        "https://git.kernel.org/stable/c/48c96b7e9e03516936d6deba54b5553097eae817",
        "https://git.kernel.org/stable/c/877172b97786ed1678640dff0b2d35abb328844c",
        "https://git.kernel.org/stable/c/933b87c4590b42500299f00ff55f555903056803",
        "https://git.kernel.org/stable/c/d3366a04770eea807f2826cbdb96934dd8c9bf79",
        "https://git.kernel.org/stable/c/e63aade22a33e77b93c98c9f02db504d897a76b4",
        "https://git.kernel.org/stable/c/f5e1f3b85aadce74268c46676772c3e9fa79897e",
        "https://git.kernel.org/stable/c/fd8a23ecbc602d00e47b27f20b07350867d0ebe5",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40035.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-40035",
        "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/40xxx/CVE-2025-40035.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-40035",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 499166,
  "published_at": "2025-10-28T11:48:17.03+00:00"
}