Description
In the Linux kernel, the following vulnerability has been resolved:

HID: hid-goodix-spi: validate report size to prevent stack buffer overflow

goodix_hid_set_raw_report() builds a protocol frame in a 128-byte stack
buffer (tmp_buf), writing an 11-12 byte header followed by the
caller-supplied report data. The HID core caps report size at
HID_MAX_BUFFER_SIZE (16384) by default, while the driver does not set
hid_ll_driver.max_buffer_size and performs no bounds checking before
copying the payload:

memcpy(tmp_buf + tx_len, buf, len);

A hidraw SET_REPORT ioctl with a report larger than ~116 bytes
overflows the stack buffer.

Add a size check after constructing the header, rejecting reports that
would exceed the buffer capacity.

Discovered by Atuin - Automated Vulnerability Discovery Engine.
Published: 2026-07-25
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A stack buffer overflow in the Linux kernel’s hid-goodix-spi driver occurs when it copies user‑supplied HID report data into a 128‑byte stack buffer without validating the payload size. If an attacker sends a report larger than about 116 bytes via the hidraw SET_REPORT ioctl, the overflow can corrupt the kernel stack, potentially allowing execution of arbitrary code with kernel privileges. This flaw is a classic buffer‑overflow weakness that can compromise the entire system and is included in the kernel driver, making its impact widespread if exploited.

Affected Systems

All Linux kernel releases that ship with the hid-goodix-spi driver are affected, as the issue is located within the driver’s core code. The vulnerability is not tied to a specific kernel version in the provided data, so it applies to any kernel using this driver until the patch is applied.

Risk and Exploitability

The CVSS score of 7.8 indicates a high severity, while the EPSS score indicates a very low probability of exploitation (<1%). The flaw is not listed in the CISA KEV catalog. Nevertheless, because the flaw can lead to kernel‑level code execution, the potential impact is high. The likely attack vector is a malicious or compromised HID device that sends a large report over USB. Exploitation requires the device to trigger the offending ioctl, which can be achieved by a user with local access or by remotely installing a malicious HID device.

Generated by OpenCVE AI on August 3, 2026 at 19:02 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply an updated Linux kernel that includes the patched hid-goodix-spi driver, which adds a size check to prevent the overflow.
  • If a kernel update is not immediately possible, disable the hid-goodix-spi driver or remove the HID device from the system to eliminate the attack surface.
  • As an additional precaution, restrict HID device access on the host using tools such as UsbGuard or kernel udev rules so that only trusted devices can invoke the hidraw interface.

Generated by OpenCVE AI on August 3, 2026 at 19:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4724-1 linux-6.12 new package
History

Wed, 29 Jul 2026 12:15:00 +0000


Mon, 27 Jul 2026 05:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Sun, 26 Jul 2026 02:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-120

Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: HID: hid-goodix-spi: validate report size to prevent stack buffer overflow goodix_hid_set_raw_report() builds a protocol frame in a 128-byte stack buffer (tmp_buf), writing an 11-12 byte header followed by the caller-supplied report data. The HID core caps report size at HID_MAX_BUFFER_SIZE (16384) by default, while the driver does not set hid_ll_driver.max_buffer_size and performs no bounds checking before copying the payload: memcpy(tmp_buf + tx_len, buf, len); A hidraw SET_REPORT ioctl with a report larger than ~116 bytes overflows the stack buffer. Add a size check after constructing the header, rejecting reports that would exceed the buffer capacity. Discovered by Atuin - Automated Vulnerability Discovery Engine.
Title HID: hid-goodix-spi: validate report size to prevent stack buffer overflow
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:41:08.659Z

Reserved: 2026-07-19T15:36:31.783Z

Link: CVE-2026-64367

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-25T10:17:19.510

Modified: 2026-08-11T15:01:50.637

Link: CVE-2026-64367

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-25T00:00:00Z

Links: CVE-2026-64367 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T19:15:04Z

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')