{
  "id": "CVE-2026-80575",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-80575",
  "published_at": "2026-08-26T14:37:34.942Z",
  "title": "Input: cs40l50-vibra - validate custom data from user space",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nInput: cs40l50-vibra - validate custom data from user space\n\ncs40l50_add() copies the custom data of an FF_PERIODIC/FF_CUSTOM effect\nstraight from the ff_effect the user passed to EVIOCSFF, without\nrequiring it to hold anything:\n\n    work_data.custom_data = memdup_array_user(periodic-\u003ecustom_data,\n                                              periodic-\u003ecustom_len,\n                                              sizeof(s16));\n    work_data.custom_len = periodic-\u003ecustom_len;\n\nThe driver then reads two words out of that buffer: custom_data[0] as the\nwaveform bank in cs40l50_effect_bank_set(), and custom_data[1] as the\nindex within the bank in cs40l50_effect_index_set().  Neither read is\ncovered by a length check, and custom_len is fully user controlled:\n\n  - custom_len == 0 makes memdup_array_user() call memdup_user() with a\n    length of zero, which returns ZERO_SIZE_PTR rather than an error, so\n    custom_data[0] dereferences it.\n\n  - custom_len == 1 allocates two bytes.  A bank of ROM or RAM keeps\n    effect-\u003etype out of the OWT case, and custom_data[1] is then read one\n    word past the allocation.\n\nThe bank value itself is also mishandled.  It is masked with\nCS40L50_CUSTOM_DATA_MASK (0xffff) but stored in an s16, so a\ncustom_data[0] of 0x8000 or above wraps to a negative value that passes\nthe \"bank_type \u003e= CS40L50_WVFRM_BANK_NUM\" test.\ncs40l50_effect_index_set() indexes vib-\u003edsp.banks[] with it before the\nswitch statement's default case gets a chance to reject it:\n\n    base_index = vib-\u003edsp.banks[effect-\u003etype].base_index;\n    max_index = vib-\u003edsp.banks[effect-\u003etype].max_index;\n\nRequire the two words the driver reads to be present, and hold the masked\nbank in a u32 so the existing upper-bound test covers the whole range.\nThe da7280 haptic driver already range checks custom_len this way.",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= c38fe1bb5d21c2ce0857965ee06174ee587d6b42, \u003c 3855b6a11f8a7aceb8181cc08c99afef58517006",
          "\u003e= c38fe1bb5d21c2ce0857965ee06174ee587d6b42, \u003c 52a818c586ae2c36b7324bfaefb547f5e866a8ae",
          "\u003e= c38fe1bb5d21c2ce0857965ee06174ee587d6b42, \u003c d38554602a0b04e85fad28ce72c7500cf50d419b",
          "\u003e= c38fe1bb5d21c2ce0857965ee06174ee587d6b42, \u003c 7d5c576cb1c86047b1fcb1aa9532e17fc5e46c1d"
        ],
        "fixed_in": [
          "3855b6a11f8a7aceb8181cc08c99afef58517006",
          "52a818c586ae2c36b7324bfaefb547f5e866a8ae",
          "d38554602a0b04e85fad28ce72c7500cf50d419b",
          "7d5c576cb1c86047b1fcb1aa9532e17fc5e46c1d"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.11"
        ],
        "fixed_in": [
          "0",
          "6.12.105",
          "6.18.46",
          "7.1.10",
          "7.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 3855b6a11f8a7aceb8181cc08c99afef58517006 or 52a818c586ae2c36b7324bfaefb547f5e866a8ae or d38554602a0b04e85fad28ce72c7500cf50d419b or 7d5c576cb1c86047b1fcb1aa9532e17fc5e46c1d or later.",
      "Upgrade Linux to 0 or 6.12.105 or 6.18.46 or 7.1.10 or 7.2 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
