HID: intel-thc-hid: intel-quickspi: validate report size before copy
In the Linux kernel, the following vulnerability has been resolved: HID: intel-thc-hid: intel-quickspi: validate report size before copy write_cmd_to_txdma() builds an output report in qsdev->report_buf, a heap buffer allocated in quickspi_alloc_report_buf() to the device-descriptor derived max_report_len (a few hundred bytes for a touch controller). It copies the caller-supplied report into that buffer: memcpy(write_buf->content, report_buf, report_buf_len); The HID core caps a report at HID_MAX_BUFFER_SIZE (16384) by default, and quickspi_hid_ll_driver does not set max_buffer_size, so the length reaches the driver unbounded. A hidraw SET_REPORT/SET_FEATURE ioctl carrying a report larger than max_report_len therefore overflows report_buf with attacker-controlled length and content. Record the report_buf allocation size and reject reports that do not fit before copying, matching the equivalent guard in the intel-quicki2c sibling (quicki2c_init_write_buf()) and the hid-goodix-spi fix. write_cmd_to_txdma() writes the output report header ahead of the content in the same buffer, so size the allocation to cover the header as well. That keeps the added bound from rejecting a maximum-sized report.
CVE-2026-89620
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-89620
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "9d8d51735a3af40b722346931a6a1e50227df4b5",
"lessThan": "6fcefe71aeb524f6e77fe586fe85d873745e917c",
"versionType": "git"
},
{
"status": "affected",
"version": "9d8d51735a3af40b722346931a6a1e50227df4b5",
"lessThan": "ee8ad1bb1e96164d51089b1182f1bd5f187e7baa",
"versionType": "git"
},
{
"status": "affected",
"version": "9d8d51735a3af40b722346931a6a1e50227df4b5",
"lessThan": "a59cf84441f9a17323c89452cec2bf16724c48a9",
"versionType": "git"
}
],
"programFiles": [
"drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c",
"drivers/hid/intel-thc-hid/intel-quickspi/quickspi-dev.h",
"drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.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.14"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.14",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.18.50",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.4",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c",
"drivers/hid/intel-thc-hid/intel-quickspi/quickspi-dev.h",
"drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-89620
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #35126 · Revision 1
- Added to Heist Feed
- Publisher date