GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2026-80575 (GCVE-0-2026-80575)

Vulnerability from cvelistv5 – Published: 2026-08-26 14:37 – Updated: 2026-08-27 05:01
VLAI
Title
Input: cs40l50-vibra - validate custom data from user space
Summary
In the Linux kernel, the following vulnerability has been resolved: Input: cs40l50-vibra - validate custom data from user space cs40l50_add() copies the custom data of an FF_PERIODIC/FF_CUSTOM effect straight from the ff_effect the user passed to EVIOCSFF, without requiring it to hold anything: work_data.custom_data = memdup_array_user(periodic->custom_data, periodic->custom_len, sizeof(s16)); work_data.custom_len = periodic->custom_len; The driver then reads two words out of that buffer: custom_data[0] as the waveform bank in cs40l50_effect_bank_set(), and custom_data[1] as the index within the bank in cs40l50_effect_index_set(). Neither read is covered by a length check, and custom_len is fully user controlled: - custom_len == 0 makes memdup_array_user() call memdup_user() with a length of zero, which returns ZERO_SIZE_PTR rather than an error, so custom_data[0] dereferences it. - custom_len == 1 allocates two bytes. A bank of ROM or RAM keeps effect->type out of the OWT case, and custom_data[1] is then read one word past the allocation. The bank value itself is also mishandled. It is masked with CS40L50_CUSTOM_DATA_MASK (0xffff) but stored in an s16, so a custom_data[0] of 0x8000 or above wraps to a negative value that passes the "bank_type >= CS40L50_WVFRM_BANK_NUM" test. cs40l50_effect_index_set() indexes vib->dsp.banks[] with it before the switch statement's default case gets a chance to reject it: base_index = vib->dsp.banks[effect->type].base_index; max_index = vib->dsp.banks[effect->type].max_index; Require the two words the driver reads to be present, and hold the masked bank in a u32 so the existing upper-bound test covers the whole range. The da7280 haptic driver already range checks custom_len this way.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: c38fe1bb5d21c2ce0857965ee06174ee587d6b42 , < 3855b6a11f8a7aceb8181cc08c99afef58517006 (git)
Affected: c38fe1bb5d21c2ce0857965ee06174ee587d6b42 , < 52a818c586ae2c36b7324bfaefb547f5e866a8ae (git)
Affected: c38fe1bb5d21c2ce0857965ee06174ee587d6b42 , < d38554602a0b04e85fad28ce72c7500cf50d419b (git)
Affected: c38fe1bb5d21c2ce0857965ee06174ee587d6b42 , < 7d5c576cb1c86047b1fcb1aa9532e17fc5e46c1d (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.11
Unaffected: 0 , < 6.11 (semver)
Unaffected: 6.12.105 , ≤ 6.12.* (semver)
Unaffected: 6.18.46 , ≤ 6.18.* (semver)
Unaffected: 7.1.10 , ≤ 7.1.* (semver)
Unaffected: 7.2 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/input/misc/cs40l50-vibra.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "3855b6a11f8a7aceb8181cc08c99afef58517006",
              "status": "affected",
              "version": "c38fe1bb5d21c2ce0857965ee06174ee587d6b42",
              "versionType": "git"
            },
            {
              "lessThan": "52a818c586ae2c36b7324bfaefb547f5e866a8ae",
              "status": "affected",
              "version": "c38fe1bb5d21c2ce0857965ee06174ee587d6b42",
              "versionType": "git"
            },
            {
              "lessThan": "d38554602a0b04e85fad28ce72c7500cf50d419b",
              "status": "affected",
              "version": "c38fe1bb5d21c2ce0857965ee06174ee587d6b42",
              "versionType": "git"
            },
            {
              "lessThan": "7d5c576cb1c86047b1fcb1aa9532e17fc5e46c1d",
              "status": "affected",
              "version": "c38fe1bb5d21c2ce0857965ee06174ee587d6b42",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/input/misc/cs40l50-vibra.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.11"
            },
            {
              "lessThan": "6.11",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.105",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.46",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.10",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.105",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.46",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.10",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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\u0027s 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."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - Exploitation requires a local EVIOCSFF ioctl on the cs40l50_vibra evdev node (/dev/input/event*), traversing evdev_do_ioctl(), input_ff_upload(), and cs40l50_add(); there is no network, adjacent-radio, or physical-insertion path to this driver.\nAC:L - The attacker fully controls ff_effect fields (custom_len, custom_data[0]/[1], waveform type) passed through EVIOCSFF, so custom_len==0, custom_len==1, or bank values \u003e=0x8000 deterministically trigger the missing checks without races or uncontrollable layout.\nPR:L - No capability check exists on the EVIOCSFF path beyond opening the input device; on Android phones, Chromebooks, kiosks, and desktops, logged-in users or session uaccess ACLs commonly grant local access to haptic/input event nodes without init-namespace root.\nUI:N - Once the attacker can open the cs40l50_vibra event device, they issue EVIOCSFF themselves with crafted FF_PERIODIC/FF_CUSTOM parameters; no separate victim mount, plug-in, or interactive action is required.\nS:U - Impact is confined to kernel memory handling and haptic-driver state within the local host kernel; it does not cross VM, container, IOMMU, or other security-scope boundaries.\nC:H - custom_len==1 forces a kmalloc heap out-of-bounds read of custom_data[1], and s16 bank sign-wrap indexes dsp.banks[] out of bounds before validation, leaking adjacent kernel memory; custom_len==0 dereferences ZERO_SIZE_PTR on read.\nI:H - Unchecked custom_len and sign-wrapped bank values cause out-of-bounds kernel memory accesses in the force-feedback upload path; per CNA guidance such heap/array boundary violations in ioctl handlers are scored High because they can corrupt subsequent kernel arithmetic and device register programming.\nA:H - custom_len==0 makes memdup_array_user return ZERO_SIZE_PTR and cs40l50_effect_bank_set dereferences it, and the heap/array out-of-bounds reads can trigger kernel oops/panic or KASAN faults on affected CS40L50 haptic devices."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-27T05:01:57.416Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/3855b6a11f8a7aceb8181cc08c99afef58517006"
        },
        {
          "url": "https://git.kernel.org/stable/c/52a818c586ae2c36b7324bfaefb547f5e866a8ae"
        },
        {
          "url": "https://git.kernel.org/stable/c/d38554602a0b04e85fad28ce72c7500cf50d419b"
        },
        {
          "url": "https://git.kernel.org/stable/c/7d5c576cb1c86047b1fcb1aa9532e17fc5e46c1d"
        }
      ],
      "title": "Input: cs40l50-vibra - validate custom data from user space",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-80575",
    "datePublished": "2026-08-26T14:37:34.942Z",
    "dateReserved": "2026-08-26T14:34:25.768Z",
    "dateUpdated": "2026-08-27T05:01:57.416Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-80575",
      "date": "2026-09-17",
      "epss": "0.0012",
      "percentile": "0.02058"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-80575\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-08-26T15:17:13.530\",\"lastModified\":\"2026-08-27T06:17:43.243\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"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\u0027s 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.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/input/misc/cs40l50-vibra.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"c38fe1bb5d21c2ce0857965ee06174ee587d6b42\",\"lessThan\":\"3855b6a11f8a7aceb8181cc08c99afef58517006\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"c38fe1bb5d21c2ce0857965ee06174ee587d6b42\",\"lessThan\":\"52a818c586ae2c36b7324bfaefb547f5e866a8ae\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"c38fe1bb5d21c2ce0857965ee06174ee587d6b42\",\"lessThan\":\"d38554602a0b04e85fad28ce72c7500cf50d419b\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"c38fe1bb5d21c2ce0857965ee06174ee587d6b42\",\"lessThan\":\"7d5c576cb1c86047b1fcb1aa9532e17fc5e46c1d\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/input/misc/cs40l50-vibra.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.11\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.11\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.105\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.46\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1.10\",\"lessThanOrEqual\":\"7.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.2\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/3855b6a11f8a7aceb8181cc08c99afef58517006\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/52a818c586ae2c36b7324bfaefb547f5e866a8ae\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/7d5c576cb1c86047b1fcb1aa9532e17fc5e46c1d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d38554602a0b04e85fad28ce72c7500cf50d419b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-27T06:49:52+00:00",
      "cve": "CVE-2026-80575",
      "id": "CVE-2026-80575",
      "initial_release_date": "2026-08-26T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: Input: cs40l50-vibra - validate custom data from user space",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-80575.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-08-28T16:37:25Z",
      "cve": "CVE-2026-80575",
      "id": "CVE-2026-80575",
      "initial_release_date": "2026-08-28T16:37:25Z",
      "product_status:known_not_affected": "353",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-80575",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2026-80575.json",
      "version": "2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…