CVE-2026-64366 (GCVE-0-2026-64366)
Vulnerability from cvelistv5
Published
2026-07-25 08:50
Modified
2026-10-19 20:38
Summary
In the Linux kernel, the following vulnerability has been resolved: HID: wacom: fix slab-out-of-bounds write in wacom_wac_queue_insert wacom_wac_queue_insert() calls kfifo_skip() in a loop when the kfifo doesn't have enough space for the incoming report. If the kfifo is empty, kfifo_skip() reads stale data left in the kmalloc'd buffer via __kfifo_peek_n() and interprets it as a record length, advancing fifo->out by that garbage value. This corrupts the internal kfifo state, causing kfifo_unused() to return a value much larger than the actual buffer size, which bypasses __kfifo_in_r()'s guard: if (len + recsize > kfifo_unused(fifo)) return 0; kfifo_copy_in() then performs an out-of-bounds memcpy, writing up to 3842 bytes past the 256-byte buffer. Add a !kfifo_is_empty() condition to the while loop so kfifo_skip() is never called on an empty fifo, and check the return value of kfifo_in() to reject reports that are too large for the fifo.
Impacted products
Vendor Product Version
Linux Linux Version: 5e013ad206895e72d7da41bc1ae89d8cb499c3aa
Version: 5e013ad206895e72d7da41bc1ae89d8cb499c3aa
Version: 5e013ad206895e72d7da41bc1ae89d8cb499c3aa
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2026-64366",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-10-16T15:39:29.451436Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "cweId": "CWE-787",
                "description": "CWE-787 Out-of-bounds Write",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-10-19T20:38:24.864Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/hid/wacom_sys.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "ca899a926c11a59211b764b0155d9a1cdcc32b81",
              "status": "affected",
              "version": "5e013ad206895e72d7da41bc1ae89d8cb499c3aa",
              "versionType": "git"
            },
            {
              "lessThan": "57bdd10ad50d68341f500a7b330f0d8949e510ec",
              "status": "affected",
              "version": "5e013ad206895e72d7da41bc1ae89d8cb499c3aa",
              "versionType": "git"
            },
            {
              "lessThan": "6b3014ec0e9a390ca563030b2d7689921f0daef5",
              "status": "affected",
              "version": "5e013ad206895e72d7da41bc1ae89d8cb499c3aa",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/hid/wacom_sys.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.15"
            },
            {
              "lessThan": "6.15",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.39",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.4",
              "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.18.39",
                  "versionStartIncluding": "6.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.4",
                  "versionStartIncluding": "6.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2",
                  "versionStartIncluding": "6.15",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nHID: wacom: fix slab-out-of-bounds write in wacom_wac_queue_insert\n\nwacom_wac_queue_insert() calls kfifo_skip() in a loop when the kfifo\ndoesn\u0027t have enough space for the incoming report. If the kfifo is\nempty, kfifo_skip() reads stale data left in the kmalloc\u0027d buffer\nvia __kfifo_peek_n() and interprets it as a record length, advancing\nfifo-\u003eout by that garbage value. This corrupts the internal kfifo\nstate, causing kfifo_unused() to return a value much larger than the\nactual buffer size, which bypasses __kfifo_in_r()\u0027s guard:\n\n  if (len + recsize \u003e kfifo_unused(fifo))\n      return 0;\n\nkfifo_copy_in() then performs an out-of-bounds memcpy, writing up to\n3842 bytes past the 256-byte buffer.\n\nAdd a !kfifo_is_empty() condition to the while loop so kfifo_skip()\nis never called on an empty fifo, and check the return value of\nkfifo_in() to reject reports that are too large for the fifo."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 8.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:A - The Wacom driver accepts Bluetooth HID devices, whose attacker-controlled descriptors and reports reach wacom_raw_event through HIDP or UHID. A malicious peripheral within Bluetooth range can therefore trigger the flaw.\nAC:L - A single oversized crafted report can deterministically corrupt the empty FIFO state and trigger the overwrite. No race or condition outside the attacker\u0027s control is required.\nPR:N - A connected malicious Bluetooth peripheral needs no account or kernel capability on the target. The report-processing path contains no privilege or authentication check.\nUI:N - Once the malicious peripheral is connected, it can transmit the triggering report without any concurrent victim action.\nS:U - The corruption occurs inside the host kernel and compromises resources governed by that same security authority; it does not inherently cross a VM or IOMMU boundary.\nC:H - The large attacker-controlled heap overwrite can corrupt adjacent kernel objects and be developed into code-execution or arbitrary-memory-access primitives, exposing kernel and process memory.\nI:H - The report supplies thousands of attacker-controlled bytes beyond a small slab object, enabling corruption of adjacent objects and potential kernel control-flow hijacking.\nA:H - The extensive slab overwrite can immediately cause a kernel oops or panic, and the triggering report can be sent repeatedly."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-17T04:54:14.203Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/ca899a926c11a59211b764b0155d9a1cdcc32b81"
        },
        {
          "url": "https://git.kernel.org/stable/c/57bdd10ad50d68341f500a7b330f0d8949e510ec"
        },
        {
          "url": "https://git.kernel.org/stable/c/6b3014ec0e9a390ca563030b2d7689921f0daef5"
        }
      ],
      "title": "HID: wacom: fix slab-out-of-bounds write in wacom_wac_queue_insert",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-64366",
    "datePublished": "2026-07-25T08:50:20.612Z",
    "dateReserved": "2026-07-19T15:36:31.783Z",
    "dateUpdated": "2026-10-19T20:38:24.864Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2026-64366\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2026-10-16T15:39:29.451436Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-787\", \"description\": \"CWE-787 Out-of-bounds Write\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2026-10-16T15:39:30.107Z\"}}], \"cna\": {\"title\": \"HID: wacom: fix slab-out-of-bounds write in wacom_wac_queue_insert\", \"metrics\": [{\"cvssV3_1\": {\"version\": \"3.1\", \"baseScore\": 8.8, \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"AV:A - The Wacom driver accepts Bluetooth HID devices, whose attacker-controlled descriptors and reports reach wacom_raw_event through HIDP or UHID. A malicious peripheral within Bluetooth range can therefore trigger the flaw.\\nAC:L - A single oversized crafted report can deterministically corrupt the empty FIFO state and trigger the overwrite. No race or condition outside the attacker\u0027s control is required.\\nPR:N - A connected malicious Bluetooth peripheral needs no account or kernel capability on the target. The report-processing path contains no privilege or authentication check.\\nUI:N - Once the malicious peripheral is connected, it can transmit the triggering report without any concurrent victim action.\\nS:U - The corruption occurs inside the host kernel and compromises resources governed by that same security authority; it does not inherently cross a VM or IOMMU boundary.\\nC:H - The large attacker-controlled heap overwrite can corrupt adjacent kernel objects and be developed into code-execution or arbitrary-memory-access primitives, exposing kernel and process memory.\\nI:H - The report supplies thousands of attacker-controlled bytes beyond a small slab object, enabling corruption of adjacent objects and potential kernel control-flow hijacking.\\nA:H - The extensive slab overwrite can immediately cause a kernel oops or panic, and the triggering report can be sent repeatedly.\"}]}], \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5e013ad206895e72d7da41bc1ae89d8cb499c3aa\", \"lessThan\": \"ca899a926c11a59211b764b0155d9a1cdcc32b81\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"5e013ad206895e72d7da41bc1ae89d8cb499c3aa\", \"lessThan\": \"57bdd10ad50d68341f500a7b330f0d8949e510ec\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"5e013ad206895e72d7da41bc1ae89d8cb499c3aa\", \"lessThan\": \"6b3014ec0e9a390ca563030b2d7689921f0daef5\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/hid/wacom_sys.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"6.15\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"6.15\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.18.39\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.18.*\"}, {\"status\": \"unaffected\", \"version\": \"7.1.4\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"7.1.*\"}, {\"status\": \"unaffected\", \"version\": \"7.2\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/hid/wacom_sys.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/ca899a926c11a59211b764b0155d9a1cdcc32b81\"}, {\"url\": \"https://git.kernel.org/stable/c/57bdd10ad50d68341f500a7b330f0d8949e510ec\"}, {\"url\": \"https://git.kernel.org/stable/c/6b3014ec0e9a390ca563030b2d7689921f0daef5\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nHID: wacom: fix slab-out-of-bounds write in wacom_wac_queue_insert\\n\\nwacom_wac_queue_insert() calls kfifo_skip() in a loop when the kfifo\\ndoesn\u0027t have enough space for the incoming report. If the kfifo is\\nempty, kfifo_skip() reads stale data left in the kmalloc\u0027d buffer\\nvia __kfifo_peek_n() and interprets it as a record length, advancing\\nfifo-\u003eout by that garbage value. This corrupts the internal kfifo\\nstate, causing kfifo_unused() to return a value much larger than the\\nactual buffer size, which bypasses __kfifo_in_r()\u0027s guard:\\n\\n  if (len + recsize \u003e kfifo_unused(fifo))\\n      return 0;\\n\\nkfifo_copy_in() then performs an out-of-bounds memcpy, writing up to\\n3842 bytes past the 256-byte buffer.\\n\\nAdd a !kfifo_is_empty() condition to the while loop so kfifo_skip()\\nis never called on an empty fifo, and check the return value of\\nkfifo_in() to reject reports that are too large for the fifo.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.18.39\", \"versionStartIncluding\": \"6.15\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"7.1.4\", \"versionStartIncluding\": \"6.15\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"7.2\", \"versionStartIncluding\": \"6.15\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-08-17T04:54:14.203Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2026-64366\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-10-19T20:38:24.864Z\", \"dateReserved\": \"2026-07-19T15:36:31.783Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2026-07-25T08:50:20.612Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…