← Back to CVE Explorer

CVE-2026-98201

Full vulnerability record from the local CVENow database.

Description

In the Linux kernel, the following vulnerability has been resolved: Input: zero ff_effect before compat copy in input_ff_effect_from_user In the compat path input_ff_effect_from_user() aliases the caller's native struct ff_effect with the smaller struct ff_effect_compat and copies only the compat sized prefix: compat_effect = (struct ff_effect_compat *)effect; if (copy_from_user(compat_effect, buffer, sizeof(struct ff_effect_compat))) The tail of the native structure is never written. Callers pass an uninitialized on-stack object, for example evdev_do_ioctl() for EVIOCSFF, so those bytes keep their previous stack contents. input_ff_upload() then stores the full native structure in ff->effects[id], from where a uinput based force feedback daemon can read it back via UI_BEGIN_FF_UPLOAD, disclosing kernel stack memory to userspace. Zero the effect before the compat copy.

Severity
Not scored
CVSS score
Not available
Vulnerability status
Received
Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2026-10-06 09:18:05.900000
Last modified
2026-10-19 10:18:20.737000
View original CVE JSON
{
  "id": "CVE-2026-98201",
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "published": "2026-10-06T09:18:05.900",
  "lastModified": "2026-10-19T10:18:20.737",
  "vulnStatus": "Received",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nInput: zero ff_effect before compat copy in input_ff_effect_from_user\n\nIn the compat path input_ff_effect_from_user() aliases the caller's\nnative struct ff_effect with the smaller struct ff_effect_compat and\ncopies only the compat sized prefix:\n\n\tcompat_effect = (struct ff_effect_compat *)effect;\n\n\tif (copy_from_user(compat_effect, buffer,\n\t\t\t   sizeof(struct ff_effect_compat)))\n\nThe tail of the native structure is never written. Callers pass an\nuninitialized on-stack object, for example evdev_do_ioctl() for\nEVIOCSFF, so those bytes keep their previous stack contents.\ninput_ff_upload() then stores the full native structure in\nff->effects[id], from where a uinput based force feedback daemon can\nread it back via UI_BEGIN_FF_UPLOAD, disclosing kernel stack memory to\nuserspace.\n\nZero the effect before the compat copy."
    }
  ],
  "affected": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "affectedData": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "programFiles": [
            "drivers/input/input-compat.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "2d56f3a32c0e62f99c043d2579840f9731fe5855",
              "lessThan": "ed0905fda39682d3da7937184397d3276abbffa8",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "2d56f3a32c0e62f99c043d2579840f9731fe5855",
              "lessThan": "ec174c2ab1abb76b20fa167c6db848c3d97aa838",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "2d56f3a32c0e62f99c043d2579840f9731fe5855",
              "lessThan": "6c26681c5668c973bd0e951407d670ac60d9cd66",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "2d56f3a32c0e62f99c043d2579840f9731fe5855",
              "lessThan": "c5e573bb095d502be7cbbaa99c26a20984111c6d",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "2d56f3a32c0e62f99c043d2579840f9731fe5855",
              "lessThan": "b878720e8bcaa4cf7163a5081f904dd6baf11b2c",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "2d56f3a32c0e62f99c043d2579840f9731fe5855",
              "lessThan": "0d05b43b55d4784a42ce8fb318175f8ad7d9af5a",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "2d56f3a32c0e62f99c043d2579840f9731fe5855",
              "lessThan": "ed0406e490f48ed180df140fe2a81be26bccb1a9",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "2d56f3a32c0e62f99c043d2579840f9731fe5855",
              "lessThan": "f84819ef8d66931ee3998fee3c4f03230f4cb6cc",
              "versionType": "git",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "programFiles": [
            "drivers/input/input-compat.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "2.6.29",
              "status": "affected"
            },
            {
              "version": "0",
              "lessThan": "2.6.29",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.10.271",
              "lessThanOrEqual": "5.10.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.15.222",
              "lessThanOrEqual": "5.15.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.1.189",
              "lessThanOrEqual": "6.1.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.6.158",
              "lessThanOrEqual": "6.6.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.12.112",
              "lessThanOrEqual": "6.12.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.18.54",
              "lessThanOrEqual": "6.18.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.2.8",
              "lessThanOrEqual": "7.2.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.3",
              "lessThanOrEqual": "*",
              "versionType": "original_commit_for_fix",
              "status": "unaffected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {},
  "references": [
    {
      "url": "https://git.kernel.org/stable/c/0d05b43b55d4784a42ce8fb318175f8ad7d9af5a",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/6c26681c5668c973bd0e951407d670ac60d9cd66",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/b878720e8bcaa4cf7163a5081f904dd6baf11b2c",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/c5e573bb095d502be7cbbaa99c26a20984111c6d",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/ec174c2ab1abb76b20fa167c6db848c3d97aa838",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/ed0406e490f48ed180df140fe2a81be26bccb1a9",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/ed0905fda39682d3da7937184397d3276abbffa8",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/f84819ef8d66931ee3998fee3c4f03230f4cb6cc",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ]
}